remage
Simulation framework for HPGe-based experiments
Loading...
Searching...
No Matches
RMGGeneratorGPS Class Reference

RMGVGenerator wrapper around Geant4's General Particle Source. More...

#include <RMGGeneratorGPS.hh>

Inheritance diagram for RMGGeneratorGPS:
Collaboration diagram for RMGGeneratorGPS:

Public Member Functions

void GeneratePrimaries (G4Event *event) override
 Generate a primary vertex from the GPS, optionally overriding the vertex position.
void SetParticlePosition (G4ThreeVector vec) override
 Translate every GPS primary vertex to vec for the next event.
Public Member Functions inherited from RMGVGenerator
 RMGVGenerator (std::string name)
 RMGVGenerator (RMGVGenerator const &)=delete
RMGVGeneratoroperator= (RMGVGenerator const &)=delete
 RMGVGenerator (RMGVGenerator &&)=delete
RMGVGeneratoroperator= (RMGVGenerator &&)=delete
virtual void BeginOfRunAction (const G4Run *)
 Called at the beginning of a run.
virtual void EndOfRunAction (const G4Run *)
 Called at the end of a run.
void SetReportingFrequency (int freq)
std::string GetGeneratorName ()

Additional Inherited Members

Protected Attributes inherited from RMGVGenerator
std::string fGeneratorName
std::unique_ptr< G4UImessengerfMessenger
int fReportingFrequency = 1000

Detailed Description

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.

Member Function Documentation

◆ GeneratePrimaries()

void RMGGeneratorGPS::GeneratePrimaries ( G4Event * event)
inlineoverridevirtual

Generate a primary vertex from the GPS, optionally overriding the vertex position.

Implements RMGVGenerator.

◆ SetParticlePosition()

void RMGGeneratorGPS::SetParticlePosition ( G4ThreeVector vec)
inlineoverridevirtual

Translate every GPS primary vertex to vec for the next event.

Implements RMGVGenerator.


The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/remage/checkouts/latest/include/RMGGeneratorGPS.hh