|
LDMX Software
|
Implementation of user event action hook. More...
#include <EventAction.h>
Public Member Functions | |
| EventAction ()=default | |
| Class constructor. | |
| virtual | ~EventAction ()=default |
| Class destructor. | |
| void | BeginOfEventAction (const G4Event *event) |
| Implementation of begin of event hook. | |
| void | EndOfEventAction (const G4Event *event) |
| Implementation of end of event hook. | |
| void | registerAction (std::shared_ptr< UserAction > eventAction) |
| Register a user action of type EventAction with this class. | |
Private Attributes | |
| std::vector< std::shared_ptr< UserAction > > | event_actions_ |
Implementation of user event action hook.
Definition at line 44 of file EventAction.h.
| void simcore::g4user::EventAction::BeginOfEventAction | ( | const G4Event * | event | ) |
Implementation of begin of event hook.
| event | The Geant4 event. |
Definition at line 23 of file EventAction.cxx.
References simcore::TrackMap::clear(), simcore::g4user::TrackingAction::get(), and simcore::g4user::TrackingAction::getTrackMap().
| void simcore::g4user::EventAction::EndOfEventAction | ( | const G4Event * | event | ) |
Implementation of end of event hook.
| event | The Geant4 event. |
Definition at line 33 of file EventAction.cxx.
|
inline |
Register a user action of type EventAction with this class.
| action | User action of type EventAction |
Definition at line 73 of file EventAction.h.
|
private |
Definition at line 78 of file EventAction.h.