I’d like to extract the particle type and the positions of tracks in each event. It looks like there are two ways to do this:
- In SteppingAction::UserTrackingAction(), use step->GetPreStepPoint()->GetPosition().
- In TrackingAction::PreUserTrackingAction() or TrackingAction::PostUserTrackingAction(), use
The first option allows for extracting position, momentum, kinetic energy, etc. (but not the particle type) of a step point (pre or post). The second option looks to extract about the same information about the track. As a step is a delta information of track, the pre or post step points should provide the same information as the tracks. Is this correct? Is there a preferred way for any reason?