BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/CalibData/CalibData-00-01-22/CalibData/Emc/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
12#include "CalibData/CalibModel.h"
13#include "CalibData/CalibBase1.h"
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
void setDigiCalibConst(const vector< double > *DigiCalibConst)
void setIxtalNumber(const vector< int > *IxtalNumber)