BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcCalibData.h
Go to the documentation of this file.
1#ifndef CalibData_EmcCalibData_h
2#define CalibData_EmcCalibData_h
3
4/* @class CalibData_EmcCalibData_h
5
6 calibration data class
7 calibration infrastructure
8
9 @author ChunXiu Liu
10*/
11
14#include <vector>
15
16using namespace std;
17
18namespace CalibData {
19 class EmcCalibData: public CalibBase1{
20
21 public:
23 virtual ~EmcCalibData(){
24 if(m_DigiCalibConst) delete m_DigiCalibConst;
25 if(m_IxtalNumber) delete m_IxtalNumber;
26 }
27
28
29 // Re-implemented from DataObject
30 inline virtual const CLID& clID() const { return classID(); }
31
32 inline static const CLID& classID() { return CLID_Calib_EmcCal; }
33
34 virtual StatusCode update(CalibBase1& other, MsgStream* log);
35
36 //set the Calibdata of Emc
37 void setDigiCalibConst(const vector<double>* DigiCalibConst);
38
39 //set the Calibdata of Emc
40 void setIxtalNumber(const vector<int>* IxtalNumber);
41
42 //get the CalibData of Emc
43 // const vector<double>* getDigiCalibConst() const { return m_DigiCalibConst;}
44 // const vector<double>* getEnCoeff() const { return m_EnCoeff;}
45 // const vector<double>* getPosCoeff() const { return m_PosCoeff;}
46
47 double getDigiCalibConst(int No) const { return *((m_DigiCalibConst->begin())+No);}
48
49 double getIxtalNumber(int No) const { return *((m_IxtalNumber->begin())+No);}
50
51 //get the size of the vectors
52 int getDigiCalibConstNo() { return m_DigiCalibConst -> size();}
53
54 //get the size of the vectors
55 int getIxtalNumberNo() { return m_IxtalNumber -> size();}
56
57 private:
58 vector<double>* m_DigiCalibConst;
59 vector<int>* m_IxtalNumber;
60 };
61}
62
63
64#endif //CalibData_EmcCalibData_h
const CLID CLID_Calib_EmcCal
Definition: CalibModel.h:47
virtual const CLID & clID() const
Definition: EmcCalibData.h:30
static const CLID & classID()
Definition: EmcCalibData.h:32
double getIxtalNumber(int No) const
Definition: EmcCalibData.h:49
double getDigiCalibConst(int No) const
Definition: EmcCalibData.h:47
void setDigiCalibConst(const vector< double > *DigiCalibConst)
void setIxtalNumber(const vector< int > *IxtalNumber)