00001 // 00002 // Package: TofEnergyRec 00003 // BESIII Tof Energy Reconstruction Algorithm 00004 // Created by He Miao (EPC IHEP) 00005 // 00006 #ifndef TOF_ENERGY_REC_A_H 00007 #define TOF_ENERGY_REC_A_H 00008 00009 #include "GaudiKernel/Algorithm.h" 00010 #include "GaudiKernel/NTuple.h" 00011 #include <string> 00012 00013 class TofShower; 00014 00015 class TofEnergyRec : public Algorithm { 00016 00017 public: 00018 TofEnergyRec(const std::string& name, ISvcLocator* pSvcLocator); 00019 StatusCode initialize(); 00020 StatusCode execute(); 00021 StatusCode finalize(); 00022 00023 private: 00024 int m_event; 00025 int m_eventNb; //for output; 00026 double m_calibConst; //energy calibration constant 00027 double m_isData; //data or MC flag 00028 TofShower *m_tofShower; 00029 00030 00031 private: 00032 bool m_output; 00033 NTuple::Tuple* m_tuple; 00034 NTuple::Tuple* m_tuple1; 00035 NTuple::Tuple* m_tuple2; 00036 }; 00037 #endif // Tof_ENERGY_REC_A_H