// ********************************** // * * // * StackingAction * // * * // ********************************** // #ifndef StackingAction_H #define StackingAction_H 1 #include "globals.hh" #include "G4UserStackingAction.hh" #include "G4ThreeVector.hh" #include "RunAction.hh" class G4Track; class StackingAction : public G4UserStackingAction { public: // Constructor with RunAction as a parameter to pass run-time data StackingAction(RunAction *theRunAction); // Standard destructor virtual ~StackingAction(); // Override the method for classifying new tracks virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* fTrack); private: RunAction *runAction; // Pointer to the RunAction to interact with other components }; #endif