Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4PhenixStackingAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4PhenixStackingAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MAIN_PHG4PHENIXSTACKINGACTION_H
4 #define G4MAIN_PHG4PHENIXSTACKINGACTION_H
5 
6 #include <Geant4/G4UserStackingAction.hh>
7 
8 #include <list>
9 
10 class G4Step;
11 class PHG4StackingAction;
12 
13 class PHG4PhenixStackingAction : public G4UserStackingAction
14 {
15 
16  public:
18  {}
19 
20  ~PHG4PhenixStackingAction() override;
21 
22 
25  {
26  if (action)
27  {
28  actions_.push_back( action );
29  }
30  }
31 
32  G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* aTrack) override;
33  void PrepareNewEvent() override;
34 
35  private:
36 
38  typedef std::list<PHG4StackingAction*> ActionList;
40 
41 };
42 
43 
44 #endif