00001 00008 #ifndef QSUMENERGYTOOL_H 00009 #define QSUMENERGYTOOL_H 1 00010 00011 #include "ReconAlg/IReconTool.h" 00012 #include "GaudiAlg/GaudiTool.h" 00013 00014 namespace DayaBay{ 00015 class CalibReadout; 00016 class RecTrigger; 00017 } 00018 00019 class ICableSvc; 00020 class ICalibDataSvc; 00021 00022 class QsumEnergyTool : public GaudiTool , virtual public IReconTool 00023 { 00024 public: 00025 00026 QsumEnergyTool(const std::string& type, 00027 const std::string& name, 00028 const IInterface* parent); 00029 00030 virtual ~QsumEnergyTool(); 00031 00032 virtual StatusCode reconstruct(const DayaBay::CalibReadout& readout, 00033 DayaBay::RecTrigger& recTrigger); 00034 virtual StatusCode initialize(); 00035 virtual StatusCode finalize(); 00036 00037 private: 00038 00039 // Property CableSvcName - Name of the cable service 00040 std::string m_cableSvcName; 00041 00042 // CableSvc 00043 ICableSvc* m_cableSvc; 00044 00045 // Property CalibDataSvcName - Name of the CalibData service 00046 std::string m_calibDataSvcName; 00047 00048 // Pmt calibration data Service 00049 ICalibDataSvc* m_calibDataSvc; 00050 00051 }; 00052 00053 #endif // QSUMENERGYTOOL_H