Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 // $$Id: PHG4SpacalPrototypeSteppingAction.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_PHG4SPACALPROTOTYPESTEPPINGACTION_H
0014 #define G4CALOPROTOTYPE_PHG4SPACALPROTOTYPESTEPPINGACTION_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 PHG4SpacalPrototypeDetector;
0024 
0025 class PHG4SpacalPrototypeSteppingAction : public PHG4SteppingAction
0026 {
0027 
0028 public:
0029 
0030   //! constructor
0031   explicit PHG4SpacalPrototypeSteppingAction(PHG4SpacalPrototypeDetector*);
0032 
0033   //! destroctor
0034   virtual
0035   ~PHG4SpacalPrototypeSteppingAction()
0036   {
0037   }
0038 
0039   //! stepping action
0040   virtual bool
0041   UserSteppingAction(const G4Step*, bool);
0042 
0043   //! reimplemented from base class
0044   virtual void
0045   SetInterfacePointers(PHCompositeNode*);
0046 
0047   double
0048   get_zmin();
0049 
0050   double
0051   get_zmax();
0052 private:
0053 
0054   //! pointer to the detector
0055   PHG4SpacalPrototypeDetector* detector_;
0056 
0057 //! pointer to hit container
0058   PHG4HitContainer * hits_;
0059   PHG4HitContainer * absorberhits_;
0060   PHG4Hit *hit;
0061   PHG4HitContainer *savehitcontainer;
0062   PHG4Shower *saveshower;
0063 };
0064 
0065 #endif // PHG4SpacalPrototypeSteppingAction_h