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 (UserAction *eventAction) |
Register a user action of type EventAction with this class. | |
Private Attributes | |
std::vector< UserAction * > | eventActions_ |
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 25 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 35 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.