Particle name of parent track

Dear all,

Is there any possible way to get the particle name of parent track?

Whether using G4UserStepAction class or another class would be fine for me.

I’d greatly happy and appreciate any help you can offer.


Not directly. Once the parent track is finished (which is normally the case if your SteppingAction is seeing the daughter), the parent is deleted from memory.

If you set up your application to save the G4Trajectory for each track (this is typically done for visualization with /tracking/storeTrajectory 1), then you could collect and store each trajectory in a table using your TrackingAction, and interrogate that from your SteppingAction.