Message: Relation between physical particles and G4Tracks Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Relation between physical particles and G4Tracks 

Forum: Event and Track Management
Date: 02 Jul, 2012
From: Erik Dietz-Laursonn <Erik Dietz-Laursonn>

Dear experts. I have a question concerning the relation between physical particles (and their trajectory, respectively) and the G4Track objects created for them. As far as I understood it until last week, particles and G4Tracks should be equivalent, i.e. each track belongs to exactly one particle and each particle owns exactly one G4Track.

Acting on the assumption, I tried to determine the energy deposit of the primary particles in my simulation by checking each G4Track's parentID in my SteppingAction (which inherits from G4UserSteppingAction) and for parentID = 0 adding up the result of aStep->GetTotalEnergyDeposit() in my UserTrackInformation (which inherits from G4VUserTrackInformation and is created for each G4Track). Doing this, I get the total energy deposit (I am not quite sure, if GetTotalEnergyDeposit() is the right function, or if I should use GetNonIonizingEnergyDeposit() or the sum of both) of each G4Track belonging to a primary particle.

Now my problem is: Against my expectations, that did not give me the total energy deposit of my primary particles. After adding several "cout"s, I found out that there were several G4Track belonging to the same particle. All G4Tracks belonging to the same particle have the same trackID, parentID,..., but contain different G4Steps of the particle's trajectory (e.g. G4Track 1: G4Step 1-3; G4Track 2: G4Step 4-5; G4Track 3: G4Step 6;...). An new G4Track (belonging to a particle that already has G4Tracks) seems always to emerge when the particle creates new particles i.e. G4Tracks (e.g. a muon creating photons by scintillation).

So my question is: Is it correct, that a particle also creates a new G4Track for itself when creating new particles (e.g. a muon creating photons by scintillation seems to create the photons' G4Tracks as well as a new muon G4Track, having the same trackID, parentID,... as the original muon G4Track)? This seems to be very unintuitive to me, why is it like this? And if it is like this (and should be like this), what is an easy possibility to determine the energy deposit by particle and not by event, as shown in the examples?

Best regards, Erik

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: Relation between physical particles and G4Tracks   (Gumplinger Peter - 03 Jul, 2012)
1 None: Re: Relation between physical particles and G4Tracks   (Erik Dietz-Laursonn - 04 Jul, 2012)
(_ None: Re: Relation between physical particles and G4Tracks   (Marc Verderi - 04 Jul, 2012)
(_ Agree: Re: Relation between physical particles and G4Tracks   (Gumplinger Peter - 04 Jul, 2012)
(_ None: Re: Relation between physical particles and G4Tracks   (Erik Dietz-Laursonn - 05 Jul, 2012)
(_ Feedback: Re: Relation between physical particles and G4Tracks   (Gumplinger Peter - 05 Jul, 2012)
2 Question: Re: Relation between physical particles and G4Tracks   (Marcus O'Flaherty - 01 Dec, 2015)
1 Feedback: Re: Relation between physical particles and G4Tracks   (Gumplinger Peter - 01 Dec, 2015)
2 Warning: Re: Relation between physical particles and G4Tracks   (Marcus O'Flaherty - 02 Dec, 2015)
1 Ok: Re: Relation between physical particles and G4Tracks   (Marcus O'Flaherty - 04 Dec, 2015)
2 Ok: Re: Relation between physical particles and G4Tracks   (Marcus O'Flaherty - 04 Dec, 2015)
3 Question: Re: Relation between physical particles and G4Tracks   (KL001 - 24 Jan, 2017)
1 Feedback: Re: Relation between physical particles and G4Tracks   (Gumplinger Peter - 24 Jan, 2017)
 Add Message Add Message
to: "Relation between physical particles and G4Tracks"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]