bool m_standalone
Property: Standalone mode: includes interaction merging and primary generation.
Implementation of a particle gun using Geant4Particles.
bool m_isotrop
Property: Isotrope particles?
Geant4ParticleGun(Geant4Context *context, const std::string &name)
Standard constructor.
virtual void operator()(G4Event *event)
Callback to generate primary particles.
bool m_print
Property: Enable printout.
virtual ~Geant4ParticleGun()
Default destructor.
virtual void getParticleDirection(int, ROOT::Math::XYZVector &direction, double &momentum) const
Particle modification. Caller presets defaults to: ( direction = m_direction, momentum = [m_momentumM...
Generic context to extend user, run and event information.