File indexing completed on 2025-08-05 08:17:53
0001
0002
0003
0004
0005 #ifndef G4EPD_PHG4EPDSTEPPINGACTION_H
0006 #define G4EPD_PHG4EPDSTEPPINGACTION_H
0007
0008 #include <g4main/PHG4SteppingAction.h>
0009
0010 #include <Geant4/G4StepStatus.hh>
0011
0012 #include <string>
0013
0014 class G4Step;
0015 class PHCompositeNode;
0016 class PHG4EPDDetector;
0017 class PHG4Hit;
0018 class PHG4HitContainer;
0019 class PHParameters;
0020
0021 class PHG4EPDSteppingAction : public PHG4SteppingAction
0022 {
0023 public:
0024 PHG4EPDSteppingAction(PHG4EPDDetector*, const PHParameters* parameters);
0025 ~PHG4EPDSteppingAction() override;
0026
0027 bool UserSteppingAction(const G4Step*, bool) override;
0028
0029 void SetInterfacePointers(PHCompositeNode*) override;
0030
0031 void SetHitNodeName(const std::string& type, const std::string& name) override;
0032
0033 private:
0034 PHG4EPDDetector* m_Detector = nullptr;
0035
0036 PHG4HitContainer* m_HitContainer = nullptr;
0037 PHG4HitContainer* m_SupportHitContainer = nullptr;
0038 PHG4Hit* m_Hit = nullptr;
0039
0040 G4StepStatus m_SavePostStepStatus = G4StepStatus::fUndefined;
0041
0042 std::string m_HitNodeName;
0043 std::string m_SupportNodeName;
0044 };
0045
0046 #endif