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.
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.
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.
static bool defaultKeepParticle(Particle &particle)
Default callback to be answered if the particle should be kept if NO user handler is installed.
virtual void begin(const G4Event *event)
Pre-event action callback.
Generic context to extend user, run and event information.