Message: Re: Storing info on process that have generate particle Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Storing info on process that have generate particle 

Forum: Event and Track Management
Re: None Storing info on process that have generate particle (Ivan Sinopoli)
Date: 01 Mar, 2005
From: Gumplinger Peter <Gumplinger Peter>

Hi Ivan,

Have a look at the /examples/extended/optical/LXe and in particular, the LXeStackingAction.cc. You'll find:

if(aTrack->GetCreatorProcess()->GetProcessName()=="Scintillation")

and:

G4int pid = aTrack->GetParentID()

Now, I also don't know how to get the name of the parent particle from parent's track ID. In fact, it seems, the ID really doesn't get you anything except distinguish between primary and secondary particles.

I think you as a user have to store G4Trajectories to keep G4Track information throughout the event. Can the experts comment, please?

For similar questions try:

http://wwwasd.web.cern.ch/wwwasd/geant4/support/faq.html

and

http://geant4.slac.stanford.edu/Tips/

Peter

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

 Add Message Add Message
to: "Re: Storing info on process that have generate particle"

 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 ]