BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCalibData.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/CalibData/Tof/TofCalibData.h,v 1.18 2019/09/20 06:51:51 sunss Exp $
2#ifndef CalibData_TofCalibData_h
3#define CalibData_TofCalibData_h
4
5#include "GaudiKernel/DataObject.h"
14
15namespace CalibData {
16 class TofCalibData: public CalibBase1{
17
18 public:
20 TofCalibData(std::vector<bTofCalibBase>* bTofCal,std::vector<bTofCommonCalibBase>* bTofComCal,std::vector<eTofCalibBase>* eTofCal,std::vector<etfCalibBase>* etfCal,std::vector<etfBunchCalibBase>* etfBunchCal,std::vector<tofCalibInfoBase>* tofInfoCal);
21 TofCalibData(std::vector<bTofCalibBase>* bTofCal,std::vector<bTofCommonCalibBase>* bTofComCal,std::vector<eTofCalibBase>* eTofCal,std::vector<etfCalibBase>* etfCal,std::vector<tofCalibInfoBase>* tofInfoCal);
22 TofCalibData(std::vector<bTofCalibBase>* bTofCal,std::vector<bTofCommonCalibBase>* bTofComCal,std::vector<eTofCalibBase>* eTofCal,std::vector<tofCalibInfoBase>* tofInfoCal);
23
24 virtual ~TofCalibData() {
25 delete m_bTofCalibData;
26 delete m_bTofCommonCalibData;
27 delete m_eTofCalibData;
28 if( m_etfCalibData ) { delete m_etfCalibData; }
29 if( m_etfBunchCalibData ) { delete m_etfBunchCalibData; }
30 delete m_tofCalibInfoData;
31 }
32
33 // Re-implemented from DataObject
34 inline virtual const CLID& clID() const { return classID(); }
35
36 inline static const CLID& classID() { return CLID_Calib_TofCal; }
37
38 virtual StatusCode update(CalibBase1& other, MsgStream* log);
39
40 bool hasEtf() { return m_hasEtf; }
41
42 //get the Calibration Data
43 unsigned int getBTofSize() const;
44 bTofCalibBase getBTof(int cnt) const;
45 double getBTofAtten(int index,int pardex);
46 double getBTofSpeed(int index,int pardex);
47
48 double getBTofPleft(int index,int pardex);
49 double getBTofPright(int index,int pardex);
50
51 double getBTofPoffleft_bunch0(int index,int pardex);
52 double getBTofPoffright_bunch0(int index,int pardex);
53 double getBTofPoffleft_bunch1(int index,int pardex);
54 double getBTofPoffright_bunch1(int index,int pardex);
55 double getBTofPoffleft_bunch2(int index,int pardex);
56 double getBTofPoffright_bunch2(int index,int pardex);
57 double getBTofPoffleft_bunch3(int index,int pardex);
58 double getBTofPoffright_bunch3(int index,int pardex);
59
60 double getBTofFleft(int index,int pardex);
61 double getBTofFright(int index,int pardex);
62 double getBTofFcounter(int index,int pardex);
63
64 int getBTofComSize() const;
65 bTofCommonCalibBase getBTofCom(int cnt) const;
66 double getBTofOffset(int cnt, int pardex);
67 double getBTofSigmaCorr(int cnt, int pardex);
68
69 unsigned int getETofSize() const;
70 eTofCalibBase getETof(int cnt) const;
71 double getETofAtten(int index,int pardex);
72 double getETofSpeed(int index,int pardex);
73 double getETofP(int index,int pardex);
74 double getETofFP(int index,int pardex);
75
76 unsigned int getEtfSize() const;
77 etfCalibBase getEtf(int cnt, int strip) const;
78 double getEtfSpeed(int index,int strip,int pardex);
79 double getEtfPcombine(int index,int strip,int pardex);
80 double getEtfPleft(int index,int strip,int pardex);
81 double getEtfPright(int index,int strip,int pardex);
82
83 unsigned int getEtfBunchSize() const;
84 etfBunchCalibBase getEtfBunch(int cnt) const;
85 double getEtfPBunch(int cnx, int pardex);
86
87 unsigned int getTofInfoSize() const;
88 tofCalibInfoBase getTofInfo(int cnt) const;
89 int getRunBegin(int cnt);
90 int getRunEnd(int cnt);
91 int getVersion(int cnt);
92
93 int getQCorr(int cnt);
94 int getQElec(int cnt);
95 int getMisLable(int cnt);
96
97 int getBrEast(int cnt, int index);
98 int getBrWest(int cnt, int index);
99 int getEndcap(int cnt, int index);
100
101 int getRunFrom(int cnt);
102 int getRunTo(int cnt);
103 int getEventFrom(int cnt);
104 int getEventTo(int cnt);
105
106 private:
107 bool m_hasEtf, m_hasEtfBunch;
108 std::vector<bTofCalibBase>* m_bTofCalibData;
109 std::vector<bTofCommonCalibBase>* m_bTofCommonCalibData;
110 std::vector<eTofCalibBase>* m_eTofCalibData;
111 std::vector<etfCalibBase>* m_etfCalibData;
112 std::vector<etfBunchCalibBase>* m_etfBunchCalibData;
113 std::vector<tofCalibInfoBase>* m_tofCalibInfoData;
114 };
115}
116
117
118#endif
const CLID CLID_Calib_TofCal
Definition CalibModel.h:43
double getETofFP(int index, int pardex)
double getBTofPoffleft_bunch1(int index, int pardex)
unsigned int getEtfBunchSize() const
unsigned int getEtfSize() const
double getBTofPoffleft_bunch3(int index, int pardex)
double getBTofSpeed(int index, int pardex)
double getBTofOffset(int cnt, int pardex)
double getETofP(int index, int pardex)
double getBTofPoffright_bunch3(int index, int pardex)
unsigned int getETofSize() const
double getEtfPBunch(int cnx, int pardex)
unsigned int getTofInfoSize() const
double getBTofSigmaCorr(int cnt, int pardex)
virtual const CLID & clID() const
tofCalibInfoBase getTofInfo(int cnt) const
double getBTofPoffright_bunch2(int index, int pardex)
int getBrWest(int cnt, int index)
double getBTofFleft(int index, int pardex)
double getBTofPoffright_bunch0(int index, int pardex)
etfCalibBase getEtf(int cnt, int strip) const
eTofCalibBase getETof(int cnt) const
double getBTofPoffright_bunch1(int index, int pardex)
double getEtfSpeed(int index, int strip, int pardex)
double getBTofFright(int index, int pardex)
double getBTofFcounter(int index, int pardex)
int getEndcap(int cnt, int index)
double getBTofPoffleft_bunch2(int index, int pardex)
etfBunchCalibBase getEtfBunch(int cnt) const
double getEtfPleft(int index, int strip, int pardex)
static const CLID & classID()
double getEtfPcombine(int index, int strip, int pardex)
double getETofAtten(int index, int pardex)
double getBTofAtten(int index, int pardex)
int getBrEast(int cnt, int index)
bTofCommonCalibBase getBTofCom(int cnt) const
unsigned int getBTofSize() const
double getBTofPoffleft_bunch0(int index, int pardex)
double getEtfPright(int index, int strip, int pardex)
double getBTofPleft(int index, int pardex)
bTofCalibBase getBTof(int cnt) const
double getETofSpeed(int index, int pardex)
double getBTofPright(int index, int pardex)