SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
EventAction.hh
Go to the documentation of this file.
1 #ifndef SLIC_EVENTACTION_HH_
2 #define SLIC_EVENTACTION_HH_ 1
3 
4 // SLIC
5 #include "Module.hh"
7 
8 // LCDD
9 #include "lcdd/hits/CalorimeterHit.hh"
10 #include "lcdd/hits/TrackerHit.hh"
11 
12 // Geant4
13 #include "G4UserEventAction.hh"
14 #include "G4Timer.hh"
15 
16 class G4UImessenger;
17 
18 namespace slic {
19 
25 class EventAction: public G4UserEventAction, public Module, public PluginManagerAccessor {
26 
27  public:
28 
32  EventAction();
33 
37  virtual ~EventAction();
38 
39  public:
40 
45  void BeginOfEventAction(const G4Event *anEvent);
46 
51  virtual void EndOfEventAction(const G4Event *anEvent);
52 
57  static EventAction* getEventAction();
58 
63  void enableEventTimer(bool et = true);
64 
68  void startEventTimer();
69 
73  void stopEventTimer();
74 
75  private:
76 
81  //void printEndEventMessage(const G4Event *anEvent);
82 
83  private:
84 
86  mutable G4Timer m_eventTimer;
87 
88  G4UImessenger* m_messenger;
89 };
90 }
91 
92 #endif
Implementation of G4UserEventAction.
Definition: EventAction.hh:25
void startEventTimer()
Definition: EventAction.cc:84
G4Timer m_eventTimer
Definition: EventAction.hh:86
void BeginOfEventAction(const G4Event *anEvent)
Definition: EventAction.cc:30
static EventAction * getEventAction()
Definition: EventAction.cc:70
void enableEventTimer(bool et=true)
Definition: EventAction.cc:93
virtual void EndOfEventAction(const G4Event *anEvent)
Definition: EventAction.cc:37
virtual ~EventAction()
Definition: EventAction.cc:27
G4UImessenger * m_messenger
Definition: EventAction.hh:88
Base class for slic code modules that provides common functionality, such as logging to an output str...
Definition: Module.hh:25
Mixin for accessing the PluginManager.