Message: get secondary particle info from track Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question get secondary particle info from track 

Forum: Event and Track Management
Date: 17 Apr, 2010
From: Dragos Constantin <Dragos Constantin>

Dear All,

I have to distinguish between primary particles and secondaries. The way I did it in Geant4.9.3 is:

#G4Step* theStep;
#G4int* isPrimary = theStep->GetTrack()->GetParrentID();

(ignore the # in front of the code lines)

From what I have understood isPrimary~=0 if the particle is not a primary. Is this correct? Do I have to test anything else to conclude that a particle is a secondary?

Thank you for your help.

Dragos

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

1 Agree: Re: get secondary particle info from track   (Gumplinger Peter - 19 Apr, 2010)
(_ Question: Re: get secondary particle info from track   (Dragos Constantin - 20 Apr, 2010)
(_ None: Re: get secondary particle info from track   (Robert D. Penny - 20 Apr, 2010)
(_ Agree: Re: get secondary particle info from track   (Gumplinger Peter - 20 Apr, 2010)
 Add Message Add Message
to: "get secondary particle info from track"

 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 ]