File indexing completed on 2025-08-06 08:19:02
0001
0002
0003 #ifndef G4DETECTORS_PHG4PSTOFSTEPPINGACTION_H
0004 #define G4DETECTORS_PHG4PSTOFSTEPPINGACTION_H
0005
0006 #include <g4main/PHG4SteppingAction.h>
0007
0008 class G4Step;
0009 class G4VPhysicalVolume;
0010 class PHCompositeNode;
0011 class PHG4PSTOFDetector;
0012 class PHG4Hit;
0013 class PHG4HitContainer;
0014 class PHParametersContainer;
0015
0016 class PHG4PSTOFSteppingAction : public PHG4SteppingAction
0017 {
0018 public:
0019
0020 PHG4PSTOFSteppingAction(PHG4PSTOFDetector*, const PHParametersContainer*);
0021
0022
0023 ~PHG4PSTOFSteppingAction() override;
0024
0025
0026 bool UserSteppingAction(const G4Step*, bool) override;
0027
0028
0029 void SetInterfacePointers(PHCompositeNode*) override;
0030
0031 private:
0032
0033 PHG4PSTOFDetector* detector_ = nullptr;
0034
0035 PHG4HitContainer* hits_ = nullptr;
0036 PHG4Hit* hit = nullptr;
0037 PHG4HitContainer* savehitcontainer = nullptr;
0038
0039 G4VPhysicalVolume* savevolpre = nullptr;
0040 G4VPhysicalVolume* savevolpost = nullptr;
0041 int savetrackid = -1;
0042 int saveprestepstatus = -1;
0043 int savepoststepstatus = -1;
0044 double edepsum = 0.;
0045 double eionsum = 0.;
0046 };
0047
0048 #endif