Definition ParticleHistoryAction.h:17
void PreUserTrackingAction(const G4Track *aTrack)
empty action - particles are only saved at the end of track
Definition ParticleHistoryAction.cpp:12
double m_energyCut
energy threshold for secondaries to be saved
Definition ParticleHistoryAction.h:34
virtual ~ParticleHistoryAction()=default
bool selectSecondary(const G4Track &aTrack, double aEnergyCut)
Simple filter for particles to be saved, based on their energy.
Definition ParticleHistoryAction.cpp:24
ParticleHistoryAction(double energyCut)
Definition ParticleHistoryAction.cpp:10
void PostUserTrackingAction(const G4Track *aTrack)
particles are saved here, after geant4 is done simulating the track
Definition ParticleHistoryAction.cpp:22