Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4DETECTORS_PHG4SPHENIXMAGNETSTEPPINGACTION_H
0004 #define G4DETECTORS_PHG4SPHENIXMAGNETSTEPPINGACTION_H
0005 
0006 #include <g4main/PHG4SteppingAction.h>
0007 
0008 class G4Step;
0009 class G4VPhysicalVolume;
0010 class PHCompositeNode;
0011 class PHG4sPHENIXMagnetDetector;
0012 class PHG4Hit;
0013 class PHG4HitContainer;
0014 class PHParameters;
0015 class PHG4Shower;
0016 
0017 class PHG4sPHENIXMagnetSteppingAction : public PHG4SteppingAction
0018 {
0019  public:
0020   //! constructor
0021   PHG4sPHENIXMagnetSteppingAction(PHG4sPHENIXMagnetDetector *, const PHParameters *parameters);
0022 
0023   //! destructor
0024   ~PHG4sPHENIXMagnetSteppingAction() override;
0025 
0026   //! stepping action
0027   bool UserSteppingAction(const G4Step *, bool) override;
0028 
0029   //! reimplemented from base class
0030   void SetInterfacePointers(PHCompositeNode *) override;
0031 
0032  private:
0033   //! pointer to the detector
0034   PHG4sPHENIXMagnetDetector *m_Detector;
0035   const PHParameters *m_Params;
0036   //! pointer to hit container
0037   PHG4HitContainer *m_HitContainer;
0038   PHG4Hit *m_Hit;
0039   PHG4Shower *m_SaveShower;
0040   G4VPhysicalVolume *m_SaveVolPre;
0041   G4VPhysicalVolume *m_SaveVolPost;
0042   int m_SaveTrackId;
0043   int m_SavePreStepStatus;
0044   int m_SavePostStepStatus;
0045   int m_ActiveFlag;
0046   int m_BlackHoleFlag;
0047 
0048   int m_UseG4StepsFlag;
0049 };
0050 
0051 #endif  //__G4PHPHYTHIAREADER_H__