CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/CalibData/CalibData-00-01-09/CalibData/EsTime/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
11#include "CalibData/CalibModel.h"
12#include "CalibData/CalibBase1.h"
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
void setToffsetb(const double toffsetb)
void setBunchTime(const int bunchtime)
void setTestCalibConst(const vector< double > *TestCalibConst)
void setToffsete(const double toffsete)