Class RMGGeneratorGPS¶
Defined in File RMGGeneratorGPS.hh
Inheritance Relationships¶
Base Type¶
public RMGVGenerator(Class RMGVGenerator)
Class Documentation¶
-
class RMGGeneratorGPS : public RMGVGenerator¶
RMGVGenerator wrapper around Geant4’s General Particle Source.
If a vertex position has been provided via SetParticlePosition, the primary vertices produced by the GPS are translated by it after generation. The GPS position configuration will not be used in this case.
Public Functions
-
inline RMGGeneratorGPS()¶
-
~RMGGeneratorGPS() = default¶
-
inline virtual void GeneratePrimaries(G4Event *event) override¶
Generate a primary vertex from the GPS, optionally overriding the vertex position.
-
inline virtual void SetParticlePosition(G4ThreeVector vec) override¶
Translate every GPS primary vertex to
vecfor the next event.
-
inline RMGGeneratorGPS()¶