LDMX Software
RunAction.cxx
1
7#include "SimCore/G4User/RunAction.h"
8
9/*~~~~~~~~~~~~*/
10/* Geant4 */
11/*~~~~~~~~~~~~*/
12#include "G4Run.hh"
13
14namespace simcore {
15namespace g4user {
16
17void RunAction::BeginOfRunAction(const G4Run* run) {
18 // Call user run action
19 for (auto& runAction : runActions_) {
20 runAction->BeginOfRunAction(run);
21 }
22}
23
24void RunAction::EndOfRunAction(const G4Run* run) {
25 // Call user run action
26 for (auto& runAction : runActions_) {
27 runAction->EndOfRunAction(run);
28 }
29}
30
31} // namespace g4user
32} // namespace simcore
void EndOfRunAction(const G4Run *run)
Implementation of end run hook.
Definition RunAction.cxx:24
void BeginOfRunAction(const G4Run *run)
Implementation of begin run hook.
Definition RunAction.cxx:17
This namespace is meant to contain all the standard user actions that allow a Geant4 user to interfac...