EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4PhenixSteppingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4PhenixSteppingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MAIN_PHG4PHENIXSTEPPINGACTION_H
4 #define G4MAIN_PHG4PHENIXSTEPPINGACTION_H
5 
6 #include <Geant4/G4UserSteppingAction.hh>
7 #include <list>
8 
9 class G4Step;
10 class PHG4SteppingAction;
11 
12 class PHG4PhenixSteppingAction : public G4UserSteppingAction
13 {
14 
15  public:
17  {}
18 
19  ~PHG4PhenixSteppingAction() override;
20 
21 
23  void AddAction( PHG4SteppingAction* action )
24  {
25  if (action)
26  {
27  actions_.push_back( action );
28  }
29  }
30 
31  void UserSteppingAction(const G4Step*) override;
32 
33  private:
34 
36  typedef std::list<PHG4SteppingAction*> ActionList;
38 
39 };
40 
41 
42 #endif