|
actions
|
Handles event begin/end callbacks and triggers digitization + streaming. More...
#include <gEventAction.h>
Public Member Functions | |
| GEventAction (const std::shared_ptr< GOptions > &gopt, GRunAction *run_a) | |
| Constructs the event action. | |
| void | BeginOfEventAction (const G4Event *event) override |
| Called by Geant4 at the beginning of an event. | |
| void | EndOfEventAction (const G4Event *event) override |
| Called by Geant4 at the end of an event. | |
Public Member Functions inherited from GBase< GEventAction > | |
| GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="") | |
| GBase (const std::shared_ptr< GLogger > &logger) | |
| GBase (const GBase &)=default | |
| GBase (GBase &&) noexcept=default | |
| virtual | ~GBase () |
| GBase & | operator= (const GBase &)=default |
| GBase & | operator= (GBase &&) noexcept=default |
Additional Inherited Members | |
Protected Attributes inherited from GBase< GEventAction > | |
| std::shared_ptr< GLogger > | log |
Responsibilities:
Ownership:
Definition at line 54 of file gEventAction.h.
| GEventAction::GEventAction | ( | const std::shared_ptr< GOptions > & | gopt, |
| GRunAction * | run_a ) |
| gopt | Shared configuration used to construct event data containers and control logging. |
| run_a | Non-owning pointer to the thread's GRunAction instance, used to access digitization routines and the streamer map. |
Definition at line 11 of file gEventAction.cc.
|
override |
Typical usage in this module is logging and lightweight per-event bookkeeping.
| event | The Geant4 event descriptor. |
Definition at line 20 of file gEventAction.cc.
|
override |
This method performs the event-level workflow:
| event | The Geant4 event descriptor. |
Definition at line 28 of file gEventAction.cc.