00001 #ifndef CalibData_EsTimeCalibData_h 00002 #define CalibData_EsTimeCalibData_h 00003 00004 /* @class CalibData_EsTimeCalibData_h 00005 00006 calibration data class 00007 calibration infrastructure 00008 00009 */ 00010 00011 #include "CalibData/CalibModel.h" 00012 #include "CalibData/CalibBase1.h" 00013 #include <vector> 00014 00015 using namespace std; 00016 00017 namespace CalibData { 00018 class EsTimeCalibData: public CalibBase1{ 00019 00020 public: 00021 EsTimeCalibData(); 00022 virtual ~EsTimeCalibData(){ 00023 if(m_TestCalibConst) delete m_TestCalibConst; 00024 } 00025 00026 // Re-implemented from DataObject 00027 inline virtual const CLID& clID() const { return classID(); } 00028 00029 inline static const CLID& classID() { return CLID_Calib_EsTimeCal; } 00030 00031 virtual StatusCode update(CalibBase1& other, MsgStream* log); 00032 00033 //set the Calibdata of EsTime 00034 void setTestCalibConst(const vector<double>* TestCalibConst); 00035 void setToffsetb(const double toffsetb); 00036 void setToffsete(const double toffsete); 00037 void setBunchTime(const int bunchtime); 00038 00039 //get the CalibData of EsTime 00040 double getTestCalibConst(int No) const { return *((m_TestCalibConst->begin())+No);} 00041 //get the size of the vectors 00042 int getTestCalibConstNo() { return m_TestCalibConst -> size();} 00043 //get the time of offset for barrel 00044 double getToffsetb() const { return m_toffsetb;} 00045 //get the time of offset for endcap 00046 double getToffsete() const { return m_toffsete;} 00047 //get the time interval of each bunch 00048 double getBunchTime() const { return m_bunchtime;} 00049 00050 private: 00051 vector<double>* m_TestCalibConst; 00052 double m_toffsetb; 00053 double m_toffsete; 00054 int m_bunchtime; 00055 }; 00056 } 00057 00058 00059 #endif //CalibData_EsTimeCalibData_h