virtual bool keepParticle(Particle &particle)
Callback to be answered if the particle MUST be kept during recombination step.
Geant4Action to collect the MC particle information.
virtual void generate(G4Event *event, Geant4ParticleHandler *handler)
Event generation action callback.
double m_kinEnergyCut
Property: Energy cut below which particles are not collected, but assigned to the parent.
virtual ~Geant4UserParticleHandler()
Default destructor.
Geant4UserParticleHandler(Geant4Context *context, const std::string &nam)
Standard constructor.
virtual void step(const G4Step *step, G4SteppingManager *mgr, Particle &particle)
User stepping callback.
Geant4ParticleHandler user extension action called by the particle handler.
virtual void begin(const G4Track *track, Particle &particle)
Pre-track action callback.
virtual void combine(Particle &to_be_deleted, Particle &remaining_parent)
Callback when parent should be combined.
virtual void end(const G4Event *event)
Post-event action callback.
virtual void begin(const G4Event *event)
Pre-event action callback.
virtual void end(const G4Track *track, Particle &particle)
Post-track action callback.
Data structure to store the MC particle information.
Generic context to extend user, run and event information.