Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:20:43

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4CALOPROTOTYPE_PHG4PROTOTYPE2HCALCELLRECO_H
0004 #define G4CALOPROTOTYPE_PHG4PROTOTYPE2HCALCELLRECO_H
0005 
0006 #include <phparameter/PHParameterInterface.h>
0007 
0008 #include <fun4all/SubsysReco.h>
0009 #include <string>
0010 
0011 class PHCompositeNode;
0012 
0013 class PHG4Prototype2HcalCellReco : public SubsysReco, public PHParameterInterface
0014 {
0015  public:
0016   PHG4Prototype2HcalCellReco(const std::string &name = "Prototype2HcalCELLRECO");
0017 
0018   virtual ~PHG4Prototype2HcalCellReco() {}
0019   //! module initialization
0020   int InitRun(PHCompositeNode *topNode);
0021 
0022   //! event processing
0023   int process_event(PHCompositeNode *topNode);
0024 
0025   void SetDefaultParameters();
0026 
0027   void Detector(const std::string &d) { m_Detector = d; }
0028   void checkenergy(const int i = 1) { m_CheckEnergyConservationFlag = i; }
0029   void set_timing_window(const double tmi, const double tma);
0030 
0031  private:
0032   int CheckEnergy(PHCompositeNode *topNode);
0033   std::string m_Detector;
0034   std::string m_HitNodeName;
0035   std::string m_CellNodeName;
0036   int m_CheckEnergyConservationFlag;
0037 
0038   double m_Tmin;
0039   double m_Tmax;
0040 };
0041 
0042 #endif  // G4DETECTORS_PHG4PROTOTYPE2HCALCELLRECO_H