ATLAS Offline Software
G4AtlasRunAction.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Local includes
6 #include "G4AtlasRunAction.h"
7 
8 namespace G4UA
9 {
10 
11  //---------------------------------------------------------------------------
12  // Constructor
13  //---------------------------------------------------------------------------
15  {
16  }
17 
18  //---------------------------------------------------------------------------
19  // Begin-run action
20  //---------------------------------------------------------------------------
22  {
23  // Loop over my pre-actions and apply each one in turn
24  for(auto action : m_runActions){
25  action->BeginOfRunAction(run);
26  }
27  }
28 
29  //---------------------------------------------------------------------------
30  // End-run action
31  //---------------------------------------------------------------------------
33  {
34  // Loop over my post-actions and apply each one in turn
35  for(auto action : m_runActions){
36  action->EndOfRunAction(run);
37  }
38  }
39 
40  //---------------------------------------------------------------------------
41  // Add one action to the list
42  //---------------------------------------------------------------------------
43  void G4AtlasRunAction::addRunAction(G4UserRunAction* action)
44  {
45  m_runActions.push_back(action);
46  }
47 
48 } // namespace G4UA
G4UA::G4AtlasRunAction::EndOfRunAction
void EndOfRunAction(const G4Run *run) override final
Geant4 method for post-run action.
Definition: G4AtlasRunAction.cxx:32
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::G4AtlasRunAction::G4AtlasRunAction
G4AtlasRunAction()
Constructor.
Definition: G4AtlasRunAction.cxx:14
G4UA::G4AtlasRunAction::BeginOfRunAction
void BeginOfRunAction(const G4Run *run) override final
Geant4 method for pre-run action.
Definition: G4AtlasRunAction.cxx:21
G4AtlasRunAction.h
run
Definition: run.py:1
G4UA::G4AtlasRunAction::addRunAction
void addRunAction(G4UserRunAction *action)
Add one action to the list.
Definition: G4AtlasRunAction.cxx:43
G4UA::G4AtlasRunAction::m_runActions
std::vector< G4UserRunAction * > m_runActions
List of ATLAS run actions.
Definition: G4AtlasRunAction.h:52
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77