Generates a Geant4 event from particle gun, but can have many particles.
void GeneratePrimaryVertex(G4Event *anEvent) override
Generate vertices in the Geant4 event.
G4ThreeVector mpgVertex_
The vertex position from which to fire the particles.
bool mpgEnablePoisson_
Flag denoting whether the number of incident particles should be Poisson distributed.
void RecordConfig(const std::string &id, ldmx::RunHeader &rh) override
Record the configuration of the primary generator into the run header.
int mpgPdgID_
PDG ID of the particle used by the gun.
G4ThreeVector mpgMomentum_
The initial momentum of the particles.
double mpgNParticles_
Number of particles that will be fired by the gun per event.
virtual ~MultiParticleGunPrimaryGenerator()
Destructor.