Belle II Software development
|
The Event Action class. More...
#include <EventAction.h>
Public Member Functions | |
EventAction (const std::string &mcCollectionName, MCParticleGraph &mcParticleGraph) | |
Constructor. | |
virtual | ~EventAction () |
Destructor. | |
void | BeginOfEventAction (const G4Event *event) |
This method is invoked before converting the primary particles to G4Track objects. | |
void | EndOfEventAction (const G4Event *event) |
This method is invoked at the very end of event processing. | |
std::ofstream * | getVREventStream () const |
This method gets the output stream for the event-history steps. | |
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. | |
Private Attributes | |
bool | m_writeSimSteps {false} |
Flag for writing out the simulation steps. | |
std::ofstream * | m_VREventStream {nullptr} |
Output stream for writing each step of event's history for the Virtual Reality. | |
StoreObjPtr< EventMetaData > | m_evtMetaData |
Event metadata. | |
The Event Action class.
This class is invoked by G4EventManager for each event.
Definition at line 36 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. |
Definition at line 23 of file EventAction.cc.
|
virtual |
Destructor.
Definition at line 36 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 46 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 64 of file EventAction.cc.
|
inline |
This method gets the output stream for the event-history steps.
Definition at line 68 of file EventAction.h.
|
private |
Event metadata.
Definition at line 79 of file EventAction.h.
|
protected |
The name of the MCParticle collection to which the MCParticles should be written.
Definition at line 72 of file EventAction.h.
|
protected |
Reference to the MCParticle graph which is converted to a MCParticle list by this class.
Definition at line 73 of file EventAction.h.
|
private |
Output stream for writing each step of event's history for the Virtual Reality.
Definition at line 78 of file EventAction.h.
|
private |
Flag for writing out the simulation steps.
Definition at line 77 of file EventAction.h.