BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/CalibData/CalibData-00-01-18/CalibData/Tof/TofCalibData.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/CalibData/Tof/TofCalibData.h,v 1.17 2016/05/20 13:32:27 sunss Exp $
2#ifndef CalibData_TofCalibData_h
3#define CalibData_TofCalibData_h
4
5#include "GaudiKernel/DataObject.h"
6#include "CalibData/CalibModel.h"
7#include "CalibData/CalibBase1.h"
8#include "CalibData/Tof/bTofCalibBase.h"
9#include "CalibData/Tof/bTofCommonCalibBase.h"
10#include "CalibData/Tof/eTofCalibBase.h"
11#include "CalibData/Tof/etfCalibBase.h"
12#include "CalibData/Tof/etfBunchCalibBase.h"
13#include "CalibData/Tof/tofCalibInfoBase.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 bTofCalibBase getBTof(int cnt) const;
44 double getBTofAtten(int index,int pardex);
45 double getBTofSpeed(int index,int pardex);
46
47 double getBTofPleft(int index,int pardex);
48 double getBTofPright(int index,int pardex);
49
50 double getBTofPoffleft_bunch0(int index,int pardex);
51 double getBTofPoffright_bunch0(int index,int pardex);
52 double getBTofPoffleft_bunch1(int index,int pardex);
53 double getBTofPoffright_bunch1(int index,int pardex);
54 double getBTofPoffleft_bunch2(int index,int pardex);
55 double getBTofPoffright_bunch2(int index,int pardex);
56 double getBTofPoffleft_bunch3(int index,int pardex);
57 double getBTofPoffright_bunch3(int index,int pardex);
58
59 double getBTofFleft(int index,int pardex);
60 double getBTofFright(int index,int pardex);
61 double getBTofFcounter(int index,int pardex);
62
64 double getBTofOffset(int pardex);
65 double getBTofSigmaCorr(int pardex);
66
67 eTofCalibBase getETof(int cnt) const;
68 double getETofAtten(int index,int pardex);
69 double getETofSpeed(int index,int pardex);
70 double getETofP(int index,int pardex);
71 double getETofFP(int index,int pardex);
72
73 etfCalibBase getEtf(int cnt, int strip) const;
74 double getEtfSpeed(int index,int strip,int pardex);
75 double getEtfPcombine(int index,int strip,int pardex);
76 double getEtfPleft(int index,int strip,int pardex);
77 double getEtfPright(int index,int strip,int pardex);
78
80 double getEtfPBunch(int pardex);
81
83 int getRunBegin();
84 int getRunEnd();
85 int getVersion();
86
87 int getQCorr();
88 int getQElec();
89 int getMisLable();
90
91 int getBrEast(int index);
92 int getBrWest(int index);
93 int getEndcap(int index);
94 int getEtf(int index);
95
96 private:
97 bool m_hasEtf, m_hasEtfBunch;
98 std::vector<bTofCalibBase>* m_bTofCalibData;
99 std::vector<bTofCommonCalibBase>* m_bTofCommonCalibData;
100 std::vector<eTofCalibBase>* m_eTofCalibData;
101 std::vector<etfCalibBase>* m_etfCalibData;
102 std::vector<etfBunchCalibBase>* m_etfBunchCalibData;
103 std::vector<tofCalibInfoBase>* m_tofCalibInfoData;
104 };
105}
106
107
108#endif
double getETofFP(int index, int pardex)
etfBunchCalibBase getEtfBunch() const
double getBTofPoffleft_bunch1(int index, int pardex)
double getBTofPoffleft_bunch3(int index, int pardex)
double getBTofSpeed(int index, int pardex)
double getETofP(int index, int pardex)
double getBTofPoffright_bunch3(int index, int pardex)
bTofCommonCalibBase getBTofCom() const
double getBTofPoffright_bunch2(int index, int pardex)
double getBTofSigmaCorr(int pardex)
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)
tofCalibInfoBase getTofInfo() const
double getBTofFright(int index, int pardex)
double getBTofFcounter(int index, int pardex)
int getBrWest(int index)
double getBTofPoffleft_bunch2(int index, int pardex)
double getEtfPleft(int index, int strip, int pardex)
double getEtfPcombine(int index, int strip, int pardex)
double getETofAtten(int index, int pardex)
double getBTofAtten(int index, int pardex)
int getBrEast(int index)
int getEtf(int index)
int getEndcap(int index)
double getEtfPBunch(int pardex)
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 getBTofOffset(int pardex)
double getETofSpeed(int index, int pardex)
double getBTofPright(int index, int pardex)