Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:10

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4MAIN_PHG4PHENIXSTEPPINGACTION_H
0004 #define G4MAIN_PHG4PHENIXSTEPPINGACTION_H
0005 
0006 #include <Geant4/G4UserSteppingAction.hh>
0007 #include <list>
0008 
0009 class G4Step;
0010 class PHG4SteppingAction;
0011 
0012 class PHG4PhenixSteppingAction : public G4UserSteppingAction
0013 {
0014  public:
0015   PHG4PhenixSteppingAction(void)
0016   {
0017   }
0018 
0019   ~PHG4PhenixSteppingAction() override;
0020 
0021   //! register an action. This is called in PHG4Reco::Init based on which actions are found on the tree
0022   void AddAction(PHG4SteppingAction* action)
0023   {
0024     if (action)
0025     {
0026       actions_.push_back(action);
0027     }
0028   }
0029 
0030   void UserSteppingAction(const G4Step*) override;
0031 
0032  private:
0033   //! list of subsystem specific stepping actions
0034   typedef std::list<PHG4SteppingAction*> ActionList;
0035   ActionList actions_;
0036 };
0037 
0038 #endif