Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4DETECTORS_PHG4ENVELOPESTEPPINGACTION_H
0004 #define G4DETECTORS_PHG4ENVELOPESTEPPINGACTION_H
0005 
0006 #include <g4main/PHG4SteppingAction.h>
0007 
0008 class G4Step;
0009 class PHCompositeNode;
0010 class PHG4EnvelopeDetector;
0011 class PHG4Hit;
0012 class PHG4HitContainer;
0013 
0014 class PHG4EnvelopeSteppingAction : public PHG4SteppingAction
0015 {
0016  public:
0017   // Constructor
0018   explicit PHG4EnvelopeSteppingAction(PHG4EnvelopeDetector*);
0019 
0020   // Destructor
0021   ~PHG4EnvelopeSteppingAction() override
0022   {
0023   }
0024 
0025   // Stepping Action
0026   bool UserSteppingAction(const G4Step*, bool) override;
0027 
0028   // reimplemented from base class
0029   void SetInterfacePointers(PHCompositeNode*) override;
0030 
0031  private:
0032   // pointer to the detector
0033   PHG4EnvelopeDetector* detector_;
0034 
0035   // pointer to hit container
0036   PHG4HitContainer* hits_;
0037   PHG4Hit* hit;
0038 };
0039 
0040 #endif  // PHG4EnvelopeSteppingAction_h