Rejects to keep particles, which are created outside a tracking cylinder.
Geant4ParticleHandler user extension action called by the particle handler.
void setSimulatorStatus(Geant4Particle &p, bool starts_in_trk_vol, bool ends_in_trk_vol)
determines if particle has ended in the tracker, calorimeter or if it is backscatter and sets simulat...
virtual ~Geant4TCUserParticleHandler()
Default destructor.
Geant4TCUserParticleHandler(Geant4Context *context, const std::string &nam)
Standard constructor.
virtual void end(const G4Track *track, Particle &particle)
Post-track action callback.
Data structure to store the MC particle information.
virtual void end(const G4Event *event)
Post-event action callback: avoid warning (...) was hidden [-Woverloaded-virtual].
Generic context to extend user, run and event information.