Implementation of user run action hook.
More...
#include <RunAction.h>
|
|
| RunAction ()=default |
| | Class constructor.
|
| |
|
virtual | ~RunAction ()=default |
| | Class destructor.
|
| |
| void | BeginOfRunAction (const G4Run *run) override |
| | Implementation of begin run hook.
|
| |
| void | EndOfRunAction (const G4Run *run) override |
| | Implementation of end run hook.
|
| |
| void | registerAction (std::shared_ptr< UserAction > runAction) |
| | Register a user action of type RunAction with this class.
|
| |
Implementation of user run action hook.
Definition at line 34 of file RunAction.h.
◆ BeginOfRunAction()
| void simcore::g4user::RunAction::BeginOfRunAction |
( |
const G4Run * | run | ) |
|
|
override |
Implementation of begin run hook.
- Parameters
-
| run | The current Geant4 run info. |
Definition at line 17 of file RunAction.cxx.
17 {
18
19 for (auto& run_action : run_actions_) {
20 run_action->beginOfRunAction(run);
21 }
22}
◆ EndOfRunAction()
| void simcore::g4user::RunAction::EndOfRunAction |
( |
const G4Run * | run | ) |
|
|
override |
Implementation of end run hook.
- Parameters
-
| run | The current Geant4 run info. |
Definition at line 24 of file RunAction.cxx.
24 {
25
26 for (auto& run_action : run_actions_) {
27 run_action->endOfRunAction(run);
28 }
29}
◆ registerAction()
| void simcore::g4user::RunAction::registerAction |
( |
std::shared_ptr< UserAction > | runAction | ) |
|
|
inline |
Register a user action of type RunAction with this class.
- Parameters
-
Definition at line 63 of file RunAction.h.
63 {
64 run_actions_.push_back(runAction);
65 }
◆ run_actions_
| std::vector<std::shared_ptr<UserAction> > simcore::g4user::RunAction::run_actions_ |
|
private |
The documentation for this class was generated from the following files: