ATLAS Offline Software
G4AtlasEventAction.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 "G4AtlasEventAction.h"
7 
8 namespace G4UA
9 {
10 
11  //---------------------------------------------------------------------------
12  // Constructor
13  //---------------------------------------------------------------------------
15  {
16  }
17 
18  //---------------------------------------------------------------------------
19  // Begin-event action
20  //---------------------------------------------------------------------------
22  {
23  // Loop over my pre-actions and apply each one in turn
24  for(auto action : m_eventActions){
25  action->BeginOfEventAction(event);
26  }
27  }
28 
29  //---------------------------------------------------------------------------
30  // End-event action
31  //---------------------------------------------------------------------------
33  {
34  // Loop over my post-actions and apply each one in turn
35  for(auto action : m_eventActions){
36  action->EndOfEventAction(event);
37  }
38  }
39 
40  //---------------------------------------------------------------------------
41  // Add one action to the list
42  //---------------------------------------------------------------------------
43  void G4AtlasEventAction::addEventAction(G4UserEventAction* action)
44  {
45  m_eventActions.push_back(action);
46  }
47 
48 } // namespace G4UA
G4AtlasEventAction.h
G4UA
for nSW
Definition: CalibrationDefaultProcessing.h:19
G4UA::G4AtlasEventAction::EndOfEventAction
void EndOfEventAction(const G4Event *event) override final
Geant4 method for post-event action.
Definition: G4AtlasEventAction.cxx:32
G4UA::G4AtlasEventAction::addEventAction
void addEventAction(G4UserEventAction *action)
Add one action to the list.
Definition: G4AtlasEventAction.cxx:43
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
G4UA::G4AtlasEventAction::G4AtlasEventAction
G4AtlasEventAction()
Constructor.
Definition: G4AtlasEventAction.cxx:14
G4UA::G4AtlasEventAction::BeginOfEventAction
void BeginOfEventAction(const G4Event *event) override final
Geant4 method for pre-event action.
Definition: G4AtlasEventAction.cxx:21
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
G4UA::G4AtlasEventAction::m_eventActions
std::vector< G4UserEventAction * > m_eventActions
List of ATLAS event actions.
Definition: G4AtlasEventAction.h:52