Class RMGGeneratorG4Gun¶
Defined in File RMGGeneratorG4Gun.hh
Inheritance Relationships¶
Base Type¶
public RMGVGenerator(Class RMGVGenerator)
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.
-
inline RMGGeneratorG4Gun()¶