Implementation of user event action hook.
More...
#include <EventAction.h>
|
|
| EventAction ()=default |
| | Class constructor.
|
| |
|
virtual | ~EventAction ()=default |
| | Class destructor.
|
| |
| void | BeginOfEventAction (const G4Event *event) override |
| | Implementation of begin of event hook.
|
| |
| void | EndOfEventAction (const G4Event *event) override |
| | Implementation of end of event hook.
|
| |
| void | registerAction (std::shared_ptr< UserAction > eventAction) |
| | Register a user action of type EventAction with this class.
|
| |
Implementation of user event action hook.
Definition at line 44 of file EventAction.h.
◆ BeginOfEventAction()
| void simcore::g4user::EventAction::BeginOfEventAction |
( |
const G4Event * | event | ) |
|
|
override |
◆ EndOfEventAction()
| void simcore::g4user::EventAction::EndOfEventAction |
( |
const G4Event * | event | ) |
|
|
override |
Implementation of end of event hook.
- Parameters
-
Definition at line 33 of file EventAction.cxx.
33 {
34
35 for (auto& event_action : event_actions_) {
36 event_action->endOfEventAction(event);
37 }
38}
◆ registerAction()
| void simcore::g4user::EventAction::registerAction |
( |
std::shared_ptr< UserAction > | eventAction | ) |
|
|
inline |
Register a user action of type EventAction with this class.
- Parameters
-
Definition at line 73 of file EventAction.h.
73 {
74 event_actions_.push_back(eventAction);
75 }
◆ event_actions_
| std::vector<std::shared_ptr<UserAction> > simcore::g4user::EventAction::event_actions_ |
|
private |
The documentation for this class was generated from the following files: