Class RMGGeneratorG4Gun

Inheritance Relationships

Base Type

Class Documentation

class RMGGeneratorG4Gun : public RMGVGenerator

Thin RMGVGenerator wrapper around Geant4’s G4ParticleGun.

Vertex sampling is delegated to a vertex generator via SetParticlePosition; particle type and kinematics are configured through the standard /gun/ macro commands.

Public Functions

inline RMGGeneratorG4Gun()
~RMGGeneratorG4Gun() = default
RMGGeneratorG4Gun(RMGGeneratorG4Gun const&) = delete
RMGGeneratorG4Gun &operator=(RMGGeneratorG4Gun const&) = delete
RMGGeneratorG4Gun(RMGGeneratorG4Gun&&) = delete
RMGGeneratorG4Gun &operator=(RMGGeneratorG4Gun&&) = delete
inline virtual void GeneratePrimaries(G4Event *event) override

Fire the configured particle gun into event.

inline virtual void SetParticlePosition(G4ThreeVector vec) override

Set the vertex position used by the next call to GeneratePrimaries.