![]() |
Belle II Software
release-08-02-04
|
The Event Action class. More...
#include <EventAction.h>


Public Member Functions | |
| EventAction (const std::string &mcCollectionName, MCParticleGraph &mcParticleGraph) | |
| Constructor. More... | |
| virtual | ~EventAction () |
| Destructor. | |
| void | BeginOfEventAction (const G4Event *event) |
| This method is invoked before converting the primary particles to G4Track objects. More... | |
| void | EndOfEventAction (const G4Event *event) |
| This method is invoked at the very end of event processing. More... | |
Protected Attributes | |
| std::string | m_mcCollectionName |
| The name of the MCParticle collection to which the MCParticles should be written. | |
| MCParticleGraph & | m_mcParticleGraph |
| Reference to the MCParticle graph which is converted to a MCParticle list by this class. | |
The Event Action class.
This class is invoked by G4EventManager for each event.
Definition at line 31 of file EventAction.h.
| EventAction | ( | const std::string & | mcCollectionName, |
| MCParticleGraph & | mcParticleGraph | ||
| ) |
Constructor.
| mcCollectionName | The name of the MCParticle collection. |
| mcParticleGraph | Reference to the MCParticle graph. |
| createRelation | If set to true the relation collection Hit -> MCParticle is created. |
Definition at line 21 of file EventAction.cc.
| void BeginOfEventAction | ( | const G4Event * | event | ) |
This method is invoked before converting the primary particles to G4Track objects.
| event | Pointer to the current G4Event object. |
Definition at line 36 of file EventAction.cc.
| void EndOfEventAction | ( | const G4Event * | event | ) |
This method is invoked at the very end of event processing.
| event | The pointer to the G4Event object which allows to access trajectories, hits collections and/or digits collections. |
Definition at line 43 of file EventAction.cc.