BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TofCalibData.cxx
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/src/Tof/TofCalibData.cxx,v 1.12 2012/11/06 07:49:40 sunss Exp $
2
3/** @class Mdctxpar
4 * Implementation of Mdcspres calibration TCDS class
5 */
6
7
8#include "GaudiKernel/MsgStream.h"
13
14namespace CalibData {
15
16 TofCalibData::TofCalibData(std::vector<bTofCalibBase>* bTofCal,std::vector<bTofCommonCalibBase>* bTofComCal,std::vector<eTofCalibBase>* eTofCal,std::vector<tofCalibInfoBase>* tofInfoCal){
17 if(bTofCal){
18 m_bTofCalibData = new std::vector<bTofCalibBase>(*bTofCal);
19 }
20 if(bTofComCal){
21 m_bTofCommonCalibData = new std::vector<bTofCommonCalibBase>(*bTofComCal);
22 }
23 if(eTofCal){
24 m_eTofCalibData = new std::vector<eTofCalibBase>(*eTofCal);
25 }
26 if(tofInfoCal){
27 m_tofCalibInfoData = new std::vector<tofCalibInfoBase>(*tofInfoCal);
28 }
29 }
30
31 StatusCode TofCalibData::update(CalibBase1& other, MsgStream* log)
32 {
33 TofCalibData& other1 = dynamic_cast<TofCalibData& >(other);
34 std::cout<<"========================================"<<"\n"<<"here is the update in the TofCalibData"<<"\n"<<"=================================================="<<std::endl;
35 CalibBase1::update(other, log);
36 delete m_bTofCalibData;
37 m_bTofCalibData = new std::vector<bTofCalibBase>(*(other1.m_bTofCalibData));
38 delete m_bTofCommonCalibData;
39 m_bTofCommonCalibData = new std::vector<bTofCommonCalibBase>(*(other1.m_bTofCommonCalibData));
40 delete m_eTofCalibData;
41 m_eTofCalibData = new std::vector<eTofCalibBase>(*(other1.m_eTofCalibData));
42 delete m_tofCalibInfoData;
43 m_tofCalibInfoData = new std::vector<tofCalibInfoBase>(*(other1.m_tofCalibInfoData));
44 return StatusCode::SUCCESS;
45}
46
47 //get the CalibData
48
50 std::vector<bTofCalibBase>::iterator it = m_bTofCalibData->begin();
51 for(int i=0;i!=cnt;i++,it++)
52 {
53 }
54 return *it;
55 }
56
58 std::vector<bTofCommonCalibBase>::iterator it = m_bTofCommonCalibData->begin();
59 return *it;
60 }
61
63 std::vector<eTofCalibBase>::iterator it = m_eTofCalibData->begin();
64 for(int i=0;i!=cnt;i++,it++)
65 {
66 }
67 return *it;
68 }
69
71 std::vector<tofCalibInfoBase>::iterator it = m_tofCalibInfoData->begin();
72 return *it;
73 }
74
75 double TofCalibData::getBTofAtten(int index,int pardex){
76 bTofCalibBase bTof = getBTof(index);
77 return bTof.getAtten(pardex);
78 }
79
80 double TofCalibData::getBTofSpeed(int index,int pardex){
81 bTofCalibBase bTof = getBTof(index);
82 return bTof.getSpeed(pardex);
83 }
84
85 double TofCalibData::getBTofPleft(int index,int pardex){
86 bTofCalibBase bTof = getBTof(index);
87 return bTof.getP1(pardex);
88 }
89
90 double TofCalibData::getBTofPright(int index,int pardex){
91 bTofCalibBase bTof = getBTof(index);
92 return bTof.getP2(pardex);
93 }
94
95 double TofCalibData::getBTofPoffleft_bunch0(int index,int pardex){
96 bTofCalibBase bTof = getBTof(index);
97 return bTof.getPoff1_bunch0(pardex);
98 }
99
100 double TofCalibData::getBTofPoffright_bunch0(int index,int pardex){
101 bTofCalibBase bTof = getBTof(index);
102 return bTof.getPoff2_bunch0(pardex);
103 }
104
105 double TofCalibData::getBTofPoffleft_bunch1(int index,int pardex){
106 bTofCalibBase bTof = getBTof(index);
107 return bTof.getPoff1_bunch1(pardex);
108 }
109
110 double TofCalibData::getBTofPoffright_bunch1(int index,int pardex){
111 bTofCalibBase bTof = getBTof(index);
112 return bTof.getPoff2_bunch1(pardex);
113 }
114
115 double TofCalibData::getBTofPoffleft_bunch2(int index,int pardex){
116 bTofCalibBase bTof = getBTof(index);
117 return bTof.getPoff1_bunch2(pardex);
118 }
119
120 double TofCalibData::getBTofPoffright_bunch2(int index,int pardex){
121 bTofCalibBase bTof = getBTof(index);
122 return bTof.getPoff2_bunch2(pardex);
123 }
124
125 double TofCalibData::getBTofPoffleft_bunch3(int index,int pardex){
126 bTofCalibBase bTof = getBTof(index);
127 return bTof.getPoff1_bunch3(pardex);
128 }
129
130 double TofCalibData::getBTofPoffright_bunch3(int index,int pardex){
131 bTofCalibBase bTof = getBTof(index);
132 return bTof.getPoff2_bunch3(pardex);
133 }
134
135 double TofCalibData::getBTofFleft(int index,int pardex){
136 bTofCalibBase bTof = getBTof(index);
137 return bTof.getFleft(pardex);
138 }
139
140 double TofCalibData::getBTofFright(int index,int pardex){
141 bTofCalibBase bTof = getBTof(index);
142 return bTof.getFright(pardex);
143 }
144
145 double TofCalibData::getBTofFcounter(int index,int pardex){
146 bTofCalibBase bTof = getBTof(index);
147 return bTof.getFcounter(pardex);
148 }
149
150 double TofCalibData::getBTofOffset(int pardex){
152 return bTofCom.getOffset(pardex);
153 }
154
157 return bTofCom.getSigmaCorr(pardex);
158 }
159
160 double TofCalibData::getETofAtten(int index,int pardex){
161 eTofCalibBase eTof = getETof(index);
162 return eTof.getAtten(pardex);
163 }
164
165 double TofCalibData::getETofSpeed(int index,int pardex){
166 eTofCalibBase eTof = getETof(index);
167 return eTof.getSpeed(pardex);
168 }
169
170 double TofCalibData::getETofP(int index,int pardex){
171 eTofCalibBase eTof = getETof(index);
172 return eTof.getP(pardex);
173 }
174
175 double TofCalibData::getETofFP(int index,int pardex){
176 eTofCalibBase eTof = getETof(index);
177 return eTof.getFP(pardex);
178 }
179
181 tofCalibInfoBase tofInfo = getTofInfo();
182 return tofInfo.getRunBegin();
183 }
184
186 tofCalibInfoBase tofInfo = getTofInfo();
187 return tofInfo.getRunEnd();
188 }
189
191 tofCalibInfoBase tofInfo = getTofInfo();
192 return tofInfo.getVersion();
193 }
194
196 tofCalibInfoBase tofInfo = getTofInfo();
197 return tofInfo.getQCorr();
198 }
199
201 tofCalibInfoBase tofInfo = getTofInfo();
202 return tofInfo.getQElec();
203 }
204
206 tofCalibInfoBase tofInfo = getTofInfo();
207 return tofInfo.getMisLable();
208 }
209
211 tofCalibInfoBase tofInfo = getTofInfo();
212 return tofInfo.getBrEast(index);
213 }
214
216 tofCalibInfoBase tofInfo = getTofInfo();
217 return tofInfo.getBrWest(index);
218 }
219
221 tofCalibInfoBase tofInfo = getTofInfo();
222 return tofInfo.getEndcap(index);
223 }
224
225 }
226
227
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
double getETofFP(int index, int pardex)
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)
eTofCalibBase getETof(int cnt) const
double getBTofPoffright_bunch1(int index, 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 getETofAtten(int index, int pardex)
double getBTofAtten(int index, int pardex)
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
int getBrEast(int index)
int getEndcap(int index)
double getBTofPoffleft_bunch0(int index, 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)
double getPoff1_bunch2(int No) const
Definition: bTofCalibBase.h:56
double getFcounter(int No) const
Definition: bTofCalibBase.h:63
double getP2(int No) const
Definition: bTofCalibBase.h:50
double getPoff2_bunch3(int No) const
Definition: bTofCalibBase.h:59
double getP1(int No) const
Definition: bTofCalibBase.h:49
double getFleft(int No) const
Definition: bTofCalibBase.h:61
double getFright(int No) const
Definition: bTofCalibBase.h:62
double getPoff1_bunch1(int No) const
Definition: bTofCalibBase.h:54
double getPoff1_bunch3(int No) const
Definition: bTofCalibBase.h:58
double getAtten(int No) const
Definition: bTofCalibBase.h:46
double getSpeed(int No) const
Definition: bTofCalibBase.h:47
double getPoff2_bunch1(int No) const
Definition: bTofCalibBase.h:55
double getPoff1_bunch0(int No) const
Definition: bTofCalibBase.h:52
double getPoff2_bunch2(int No) const
Definition: bTofCalibBase.h:57
double getPoff2_bunch0(int No) const
Definition: bTofCalibBase.h:53
double getSpeed(int No) const
Definition: eTofCalibBase.h:33
double getAtten(int No) const
Definition: eTofCalibBase.h:32
double getFP(int No) const
Definition: eTofCalibBase.h:35
double getP(int No) const
Definition: eTofCalibBase.h:34