Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:51

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4DETECTORS_PHG4SECTORSTEPPINGACTION_H
0004 #define G4DETECTORS_PHG4SECTORSTEPPINGACTION_H
0005 
0006 #include <g4main/PHG4SteppingAction.h>
0007 
0008 class G4Step;
0009 class PHCompositeNode;
0010 class PHG4Hit;
0011 class PHG4HitContainer;
0012 class PHG4SectorDetector;
0013 class PHG4Shower;
0014 
0015 class PHG4SectorSteppingAction : public PHG4SteppingAction
0016 {
0017  public:
0018   //! constructor
0019   explicit PHG4SectorSteppingAction(PHG4SectorDetector*);
0020 
0021   //! destructor
0022   ~PHG4SectorSteppingAction() override;
0023 
0024   //! stepping action
0025   bool UserSteppingAction(const G4Step*, bool) override;
0026 
0027   //! reimplemented from base class
0028   void SetInterfacePointers(PHCompositeNode*) override;
0029 
0030  private:
0031   //! pointer to the detector
0032   PHG4SectorDetector* detector_ = nullptr;
0033 
0034   //! pointer to hit container
0035   PHG4HitContainer* hits_ = nullptr;
0036   PHG4Hit* hit = nullptr;
0037   PHG4Shower* saveshower = nullptr;
0038 
0039   int layer_id = -1;
0040 };
0041 
0042 #endif  //__G4PHPHYTHIAREADER_H__