Class that extends the functionality of G4GeneralParticleSource.
void RecordConfig(const std::string &id, ldmx::RunHeader &rh) override
Record the configuration of the primary generator into the run header.
std::vector< std::string > init_commands_
storage of initialization commands (for config recording)
virtual ~GeneralParticleSource()=default
Destructor.
void GeneratePrimaryVertex(G4Event *event) override
Generate the primary vertices in the Geant4 event.
G4GeneralParticleSource theG4Source_
The underlying Geant4 GPS implementation.