Belle II Software development
|
The PrimaryGeneratorAction class inherits from G4VuserPrimaryGeneratorAction and specifies how a primary event should be generated. More...
#include <PrimaryGeneratorAction.h>
Public Member Functions | |
PrimaryGeneratorAction (const std::string &mcCollectionName, MCParticleGraph &mcParticleGraph) | |
The constructor of the PrimaryGeneratorAction. | |
virtual | ~PrimaryGeneratorAction () |
The destructor of the PrimaryGeneratorAction. | |
void | GeneratePrimaries (G4Event *event) |
This method is called for each event by Geant4 and creates the primary particles by invoking the generators. | |
Protected Attributes | |
MCParticleGenerator * | m_mcParticleGenerator |
The instance of the MCParticle generator. | |
The PrimaryGeneratorAction class inherits from G4VuserPrimaryGeneratorAction and specifies how a primary event should be generated.
Actual generation of primary particles will be done by a concrete classes of G4VPrimaryGenerator. This class just arranges the way primary particles are generated.
Definition at line 34 of file PrimaryGeneratorAction.h.
PrimaryGeneratorAction | ( | const std::string & | mcCollectionName, |
MCParticleGraph & | mcParticleGraph | ||
) |
The constructor of the PrimaryGeneratorAction.
mcParticleGraph | Reference to the MCParticle Graph, which is filled by this class. |
mcCollectionName | The name of the MCParticle collection that should be used to create the MCParticle generator. |
Definition at line 19 of file PrimaryGeneratorAction.cc.
|
virtual |
The destructor of the PrimaryGeneratorAction.
Definition at line 30 of file PrimaryGeneratorAction.cc.
void GeneratePrimaries | ( | G4Event * | event | ) |
This method is called for each event by Geant4 and creates the primary particles by invoking the generators.
event | Pointer to the G4Event. |
Definition at line 36 of file PrimaryGeneratorAction.cc.
|
protected |
The instance of the MCParticle generator.
Definition at line 57 of file PrimaryGeneratorAction.h.