ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4PhenixEventAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4PhenixEventAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MAIN_PHG4PHENIXEVENTACTION_H
4 #define G4MAIN_PHG4PHENIXEVENTACTION_H
5 
6 #include <phool/PHTimeServer.h>
7 
8 #include <Geant4/G4UserEventAction.hh>
9 
10 #include <list>
11 
12 
13 class G4Event;
14 class PHG4EventAction;
15 
17 {
18 
19  public:
20  PHG4PhenixEventAction( void );
21 
22  ~PHG4PhenixEventAction() override;
23 
25  void AddAction( PHG4EventAction* action )
26  { actions_.push_back( action ); }
27 
28  void BeginOfEventAction(const G4Event*) override;
29 
30  void EndOfEventAction(const G4Event*) override;
31 
32  private:
33 
35  typedef std::list<PHG4EventAction*> ActionList;
37 
40 };
41 
42 
43 #endif