Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:22:07

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 // $$Id: PHG4SpacalPrototype4SteppingAction.h,v 1.1 2014/03/24 01:36:44 jinhuang Exp $$
0004 
0005 /*!
0006  * \file ${file_name}
0007  * \brief
0008  * \author Jin Huang <jhuang@bnl.gov>
0009  * \version $$Revision: 1.1 $$
0010  * \date $$Date: 2014/03/24 01:36:44 $$
0011  */
0012 
0013 #ifndef G4CALOPROTOTYPE_PHG4SPACALPROTOTYPE4STEPPINGACTION_H
0014 #define G4CALOPROTOTYPE_PHG4SPACALPROTOTYPE4STEPPINGACTION_H
0015 
0016 #include <g4main/PHG4SteppingAction.h>
0017 
0018 class G4Step;
0019 class PHCompositeNode;
0020 class PHG4Hit;
0021 class PHG4HitContainer;
0022 class PHG4Shower;
0023 class PHG4SpacalPrototype4Detector;
0024 
0025 class PHG4SpacalPrototype4SteppingAction : public PHG4SteppingAction
0026 {
0027  public:
0028   //! constructor
0029   explicit PHG4SpacalPrototype4SteppingAction(PHG4SpacalPrototype4Detector *);
0030 
0031   //! destroctor
0032   virtual ~PHG4SpacalPrototype4SteppingAction()
0033   {
0034   }
0035 
0036   //! stepping action
0037   virtual bool
0038   UserSteppingAction(const G4Step *, bool);
0039 
0040   //! reimplemented from base class
0041   virtual void
0042   SetInterfacePointers(PHCompositeNode *);
0043 
0044   double
0045   get_zmin();
0046 
0047   double
0048   get_zmax();
0049 
0050  private:
0051   //! pointer to the detector
0052   PHG4SpacalPrototype4Detector *detector_;
0053 
0054   //! pointer to hit container
0055   PHG4HitContainer *hits_;
0056   PHG4HitContainer *absorberhits_;
0057   PHG4Hit *hit;
0058   PHG4HitContainer *savehitcontainer;
0059   PHG4Shower *saveshower;
0060 };
0061 
0062 #endif  // PHG4SpacalPrototype4SteppingAction_h