|
LDMX Software
|
Interface that defines a simulation primary generator. More...
#include <PrimaryGenerator.h>
Public Member Functions | |
| PrimaryGenerator (const std::string &name, const framework::config::Parameters ¶meters) | |
| Constructor. | |
| DECLARE_FACTORY_WITH_WAREHOUSE (PrimaryGenerator, std::shared_ptr< PrimaryGenerator >, const std::string &, const framework::config::Parameters &) | |
| virtual | ~PrimaryGenerator ()=default |
| Destructor. | |
| virtual void | GeneratePrimaryVertex (G4Event *)=0 |
| Generate a Primary Vertex. | |
| virtual void | RecordConfig (const std::string &id, ldmx::RunHeader &rh)=0 |
| Record the configuration of the primary generator into the run header. | |
| std::string | name () |
Protected Attributes | |
| std::string | name_ {""} |
| Name of the PrimaryGenerator. | |
Interface that defines a simulation primary generator.
This class inherits from the Geant4 Primary Genertor template, and is used as a common reference for all of the other PrimaryGenerators.
Definition at line 38 of file PrimaryGenerator.h.
| simcore::PrimaryGenerator::PrimaryGenerator | ( | const std::string & | name, |
| const framework::config::Parameters & | parameters ) |
Constructor.
| name | Name given the to class instance. |
Definition at line 12 of file PrimaryGenerator.cxx.
|
pure virtual |
Generate a Primary Vertex.
This function must be defined by any other LDMX generators.
Implemented in simcore::generators::GeneralParticleSource, simcore::generators::GenieGenerator, simcore::generators::LHEPrimaryGenerator, simcore::generators::MultiParticleGunPrimaryGenerator, and simcore::generators::ParticleGun.
|
inline |
Definition at line 71 of file PrimaryGenerator.h.
|
pure virtual |
Record the configuration of the primary generator into the run header.
Implemented in simcore::generators::GeneralParticleSource, simcore::generators::GenieGenerator, simcore::generators::LHEPrimaryGenerator, simcore::generators::MultiParticleGunPrimaryGenerator, and simcore::generators::ParticleGun.
References name_.
|
protected |
Name of the PrimaryGenerator.
Definition at line 75 of file PrimaryGenerator.h.
Referenced by RecordConfig().