BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EsTimeCalibData.h
Go to the documentation of this file.
1#ifndef CalibData_EsTimeCalibData_h
2#define CalibData_EsTimeCalibData_h
3
4/* @class CalibData_EsTimeCalibData_h
5
6 calibration data class
7 calibration infrastructure
8
9*/
10
13#include <vector>
14
15using namespace std;
16
17namespace CalibData {
19
20 public:
22 virtual ~EsTimeCalibData(){
23 if(m_TestCalibConst) delete m_TestCalibConst;
24 }
25
26 // Re-implemented from DataObject
27 inline virtual const CLID& clID() const { return classID(); }
28
29 inline static const CLID& classID() { return CLID_Calib_EsTimeCal; }
30
31 virtual StatusCode update(CalibBase1& other, MsgStream* log);
32
33 //set the Calibdata of EsTime
34 void setTestCalibConst(const vector<double>* TestCalibConst);
35 void setToffsetb(const double toffsetb);
36 void setToffsete(const double toffsete);
37 void setBunchTime(const int bunchtime);
38
39 //get the CalibData of EsTime
40 double getTestCalibConst(int No) const { return *((m_TestCalibConst->begin())+No);}
41 //get the size of the vectors
42 int getTestCalibConstNo() { return m_TestCalibConst -> size();}
43 //get the time of offset for barrel
44 double getToffsetb() const { return m_toffsetb;}
45 //get the time of offset for endcap
46 double getToffsete() const { return m_toffsete;}
47 //get the time interval of each bunch
48 double getBunchTime() const { return m_bunchtime;}
49
50 private:
51 vector<double>* m_TestCalibConst;
52 double m_toffsetb;
53 double m_toffsete;
54 int m_bunchtime;
55 };
56}
57
58
59#endif //CalibData_EsTimeCalibData_h
const CLID CLID_Calib_EsTimeCal
Definition: CalibModel.h:51
virtual const CLID & clID() const
static const CLID & classID()
void setToffsetb(const double toffsetb)
void setBunchTime(const int bunchtime)
void setTestCalibConst(const vector< double > *TestCalibConst)
void setToffsete(const double toffsete)
double getTestCalibConst(int No) const