ATLAS Offline Software
G4AtlasEventAction.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef G4ATLASTOOLS__G4UA_G4ATLASEVENTACTION_H
6 #define G4ATLASTOOLS__G4UA_G4ATLASEVENTACTION_H
7 
8 // STL includes
9 #include <vector>
10 
11 // Geant4 includes
12 #include "G4UserEventAction.hh"
13 
14 
15 namespace G4UA
16 {
17 
28  class G4AtlasEventAction : public G4UserEventAction
29  {
30 
31  public:
32 
35 
39  void BeginOfEventAction(const G4Event* event) override final;
40 
44  void EndOfEventAction(const G4Event* event) override final;
45 
47  void addEventAction(G4UserEventAction* action);
48 
49  private:
50 
52  std::vector<G4UserEventAction*> m_eventActions;
53 
54  }; // class G4AtlasEventAction
55 
56 }
57 
58 #endif
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
G4UA::G4AtlasEventAction
ATLAS subclass of the G4 event action.
Definition: G4AtlasEventAction.h:29
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