ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace 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
void BeginOfEventAction(const G4Event *event) override final
Geant4 method for pre-event action.
std::vector< G4UserEventAction * > m_eventActions
List of ATLAS event actions.
void addEventAction(G4UserEventAction *action)
Add one action to the list.
void EndOfEventAction(const G4Event *event) override final
Geant4 method for post-event action.