BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::TofCalibData Class Reference

#include <TofCalibData.h>

+ Inheritance diagram for CalibData::TofCalibData:

Public Member Functions

 TofCalibData ()
 
 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)
 
 TofCalibData (std::vector< bTofCalibBase > *bTofCal, std::vector< bTofCommonCalibBase > *bTofComCal, std::vector< eTofCalibBase > *eTofCal, std::vector< etfCalibBase > *etfCal, std::vector< tofCalibInfoBase > *tofInfoCal)
 
 TofCalibData (std::vector< bTofCalibBase > *bTofCal, std::vector< bTofCommonCalibBase > *bTofComCal, std::vector< eTofCalibBase > *eTofCal, std::vector< tofCalibInfoBase > *tofInfoCal)
 
virtual ~TofCalibData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
bool hasEtf ()
 
bTofCalibBase getBTof (int cnt) const
 
double getBTofAtten (int index, int pardex)
 
double getBTofSpeed (int index, int pardex)
 
double getBTofPleft (int index, int pardex)
 
double getBTofPright (int index, int pardex)
 
double getBTofPoffleft_bunch0 (int index, int pardex)
 
double getBTofPoffright_bunch0 (int index, int pardex)
 
double getBTofPoffleft_bunch1 (int index, int pardex)
 
double getBTofPoffright_bunch1 (int index, int pardex)
 
double getBTofPoffleft_bunch2 (int index, int pardex)
 
double getBTofPoffright_bunch2 (int index, int pardex)
 
double getBTofPoffleft_bunch3 (int index, int pardex)
 
double getBTofPoffright_bunch3 (int index, int pardex)
 
double getBTofFleft (int index, int pardex)
 
double getBTofFright (int index, int pardex)
 
double getBTofFcounter (int index, int pardex)
 
bTofCommonCalibBase getBTofCom () const
 
double getBTofOffset (int pardex)
 
double getBTofSigmaCorr (int pardex)
 
eTofCalibBase getETof (int cnt) const
 
double getETofAtten (int index, int pardex)
 
double getETofSpeed (int index, int pardex)
 
double getETofP (int index, int pardex)
 
double getETofFP (int index, int pardex)
 
etfCalibBase getEtf (int cnt, int strip) const
 
double getEtfSpeed (int index, int strip, int pardex)
 
double getEtfPcombine (int index, int strip, int pardex)
 
double getEtfPleft (int index, int strip, int pardex)
 
double getEtfPright (int index, int strip, int pardex)
 
etfBunchCalibBase getEtfBunch () const
 
double getEtfPBunch (int pardex)
 
tofCalibInfoBase getTofInfo () const
 
int getRunBegin ()
 
int getRunEnd ()
 
int getVersion ()
 
int getQCorr ()
 
int getQElec ()
 
int getMisLable ()
 
int getBrEast (int index)
 
int getBrWest (int index)
 
int getEndcap (int index)
 
int getEtf (int index)
 
 TofCalibData ()
 
 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)
 
 TofCalibData (std::vector< bTofCalibBase > *bTofCal, std::vector< bTofCommonCalibBase > *bTofComCal, std::vector< eTofCalibBase > *eTofCal, std::vector< etfCalibBase > *etfCal, std::vector< tofCalibInfoBase > *tofInfoCal)
 
 TofCalibData (std::vector< bTofCalibBase > *bTofCal, std::vector< bTofCommonCalibBase > *bTofComCal, std::vector< eTofCalibBase > *eTofCal, std::vector< tofCalibInfoBase > *tofInfoCal)
 
virtual ~TofCalibData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
bool hasEtf ()
 
bTofCalibBase getBTof (int cnt) const
 
double getBTofAtten (int index, int pardex)
 
double getBTofSpeed (int index, int pardex)
 
double getBTofPleft (int index, int pardex)
 
double getBTofPright (int index, int pardex)
 
double getBTofPoffleft_bunch0 (int index, int pardex)
 
double getBTofPoffright_bunch0 (int index, int pardex)
 
double getBTofPoffleft_bunch1 (int index, int pardex)
 
double getBTofPoffright_bunch1 (int index, int pardex)
 
double getBTofPoffleft_bunch2 (int index, int pardex)
 
double getBTofPoffright_bunch2 (int index, int pardex)
 
double getBTofPoffleft_bunch3 (int index, int pardex)
 
double getBTofPoffright_bunch3 (int index, int pardex)
 
double getBTofFleft (int index, int pardex)
 
double getBTofFright (int index, int pardex)
 
double getBTofFcounter (int index, int pardex)
 
bTofCommonCalibBase getBTofCom () const
 
double getBTofOffset (int pardex)
 
double getBTofSigmaCorr (int pardex)
 
eTofCalibBase getETof (int cnt) const
 
double getETofAtten (int index, int pardex)
 
double getETofSpeed (int index, int pardex)
 
double getETofP (int index, int pardex)
 
double getETofFP (int index, int pardex)
 
etfCalibBase getEtf (int cnt, int strip) const
 
double getEtfSpeed (int index, int strip, int pardex)
 
double getEtfPcombine (int index, int strip, int pardex)
 
double getEtfPleft (int index, int strip, int pardex)
 
double getEtfPright (int index, int strip, int pardex)
 
etfBunchCalibBase getEtfBunch () const
 
double getEtfPBunch (int pardex)
 
tofCalibInfoBase getTofInfo () const
 
int getRunBegin ()
 
int getRunEnd ()
 
int getVersion ()
 
int getQCorr ()
 
int getQElec ()
 
int getMisLable ()
 
int getBrEast (int index)
 
int getBrWest (int index)
 
int getEndcap (int index)
 
int getEtf (int index)
 
- Public Member Functions inherited from CalibData::CalibBase1
 CalibBase1 ()
 
 CalibBase1 (int serNo, int runfrm, int runto)
 
 CalibBase1 (int runfrm, int runto)
 
 CalibBase1 (const CalibBase1 &obj)
 
virtual StatusCode update (CalibBase1 &obj, MsgStream *)
 
virtual int getSerNo () const
 Following is intended for deep copy.
 
virtual int getrunfrm () const
 
virtual int getrunto () const
 
void setSerNo (int ser)
 
void setrunfrm (int runfrm)
 
void setrunto (int runto)
 
 CalibBase1 ()
 
 CalibBase1 (int serNo, int runfrm, int runto)
 
 CalibBase1 (int runfrm, int runto)
 
 CalibBase1 (const CalibBase1 &obj)
 
virtual StatusCode update (CalibBase1 &obj, MsgStream *)
 
virtual int getSerNo () const
 Following is intended for deep copy.
 
virtual int getrunfrm () const
 
virtual int getrunto () const
 
void setSerNo (int ser)
 
void setrunfrm (int runfrm)
 
void setrunto (int runto)
 

Static Public Member Functions

static const CLID & classID ()
 
static const CLID & classID ()
 

Additional Inherited Members

- Protected Attributes inherited from CalibData::CalibBase1
int m_serNo
 
int m_runfrm
 
int m_runto
 

Detailed Description

Constructor & Destructor Documentation

◆ TofCalibData() [1/8]

CalibData::TofCalibData::TofCalibData ( )
inline

◆ TofCalibData() [2/8]

CalibData::TofCalibData::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 
)

Definition at line 10 of file TofCalibData.cxx.

10 {
11 if(bTofCal){
12 m_bTofCalibData = new std::vector<bTofCalibBase>(*bTofCal);
13 }
14 if(bTofComCal){
15 m_bTofCommonCalibData = new std::vector<bTofCommonCalibBase>(*bTofComCal);
16 }
17 if(eTofCal){
18 m_eTofCalibData = new std::vector<eTofCalibBase>(*eTofCal);
19 }
20
21 m_hasEtf = false;
22 m_etfCalibData = NULL;
23 if( etfCal->size() > 0 ) {
24 m_hasEtf = true;
25 m_etfCalibData = new std::vector<etfCalibBase>(*etfCal);
26 }
27 m_hasEtfBunch = false;
28 m_etfBunchCalibData = NULL;
29 if( etfBunchCal->size() > 0 ) {
30 m_hasEtfBunch = true;
31 m_etfBunchCalibData = new std::vector<etfBunchCalibBase>(*etfBunchCal);
32 }
33
34 if(tofInfoCal){
35 m_tofCalibInfoData = new std::vector<tofCalibInfoBase>(*tofInfoCal);
36 }
37 }

◆ TofCalibData() [3/8]

CalibData::TofCalibData::TofCalibData ( std::vector< bTofCalibBase > *  bTofCal,
std::vector< bTofCommonCalibBase > *  bTofComCal,
std::vector< eTofCalibBase > *  eTofCal,
std::vector< etfCalibBase > *  etfCal,
std::vector< tofCalibInfoBase > *  tofInfoCal 
)

Definition at line 39 of file TofCalibData.cxx.

39 {
40 if(bTofCal){
41 m_bTofCalibData = new std::vector<bTofCalibBase>(*bTofCal);
42 }
43 if(bTofComCal){
44 m_bTofCommonCalibData = new std::vector<bTofCommonCalibBase>(*bTofComCal);
45 }
46 if(eTofCal){
47 m_eTofCalibData = new std::vector<eTofCalibBase>(*eTofCal);
48 }
49
50 m_hasEtf = false;
51 m_etfCalibData = NULL;
52 if( etfCal->size() > 0 ) {
53 m_hasEtf = true;
54 m_etfCalibData = new std::vector<etfCalibBase>(*etfCal);
55 }
56 m_hasEtfBunch = false;
57 m_etfBunchCalibData = NULL;
58
59 if(tofInfoCal){
60 m_tofCalibInfoData = new std::vector<tofCalibInfoBase>(*tofInfoCal);
61 }
62 }

◆ TofCalibData() [4/8]

CalibData::TofCalibData::TofCalibData ( std::vector< bTofCalibBase > *  bTofCal,
std::vector< bTofCommonCalibBase > *  bTofComCal,
std::vector< eTofCalibBase > *  eTofCal,
std::vector< tofCalibInfoBase > *  tofInfoCal 
)

Definition at line 64 of file TofCalibData.cxx.

64 {
65 if(bTofCal){
66 m_bTofCalibData = new std::vector<bTofCalibBase>(*bTofCal);
67 }
68 if(bTofComCal){
69 m_bTofCommonCalibData = new std::vector<bTofCommonCalibBase>(*bTofComCal);
70 }
71 if(eTofCal){
72 m_eTofCalibData = new std::vector<eTofCalibBase>(*eTofCal);
73 }
74 if(tofInfoCal){
75 m_tofCalibInfoData = new std::vector<tofCalibInfoBase>(*tofInfoCal);
76 }
77 m_hasEtf = false;
78 m_etfCalibData = NULL;
79 m_hasEtfBunch = false;
80 m_etfBunchCalibData = NULL;
81 }

◆ ~TofCalibData() [1/2]

virtual CalibData::TofCalibData::~TofCalibData ( )
inlinevirtual

Definition at line 24 of file Calibration/CalibData/CalibData-00-01-18/CalibData/Tof/TofCalibData.h.

24 {
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 }

◆ TofCalibData() [5/8]

CalibData::TofCalibData::TofCalibData ( )
inline

◆ TofCalibData() [6/8]

CalibData::TofCalibData::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 
)

◆ TofCalibData() [7/8]

CalibData::TofCalibData::TofCalibData ( std::vector< bTofCalibBase > *  bTofCal,
std::vector< bTofCommonCalibBase > *  bTofComCal,
std::vector< eTofCalibBase > *  eTofCal,
std::vector< etfCalibBase > *  etfCal,
std::vector< tofCalibInfoBase > *  tofInfoCal 
)

◆ TofCalibData() [8/8]

CalibData::TofCalibData::TofCalibData ( std::vector< bTofCalibBase > *  bTofCal,
std::vector< bTofCommonCalibBase > *  bTofComCal,
std::vector< eTofCalibBase > *  eTofCal,
std::vector< tofCalibInfoBase > *  tofInfoCal 
)

◆ ~TofCalibData() [2/2]

virtual CalibData::TofCalibData::~TofCalibData ( )
inlinevirtual

Definition at line 24 of file InstallArea/include/CalibData/CalibData/Tof/TofCalibData.h.

24 {
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 }

Member Function Documentation

◆ classID() [1/2]

static const CLID & CalibData::TofCalibData::classID ( )
inlinestatic

◆ classID() [2/2]

static const CLID & CalibData::TofCalibData::classID ( )
inlinestatic

◆ clID() [1/2]

virtual const CLID & CalibData::TofCalibData::clID ( ) const
inlinevirtual

◆ clID() [2/2]

virtual const CLID & CalibData::TofCalibData::clID ( ) const
inlinevirtual

Definition at line 34 of file InstallArea/include/CalibData/CalibData/Tof/TofCalibData.h.

34{ return classID(); }

◆ getBrEast() [1/2]

int CalibData::TofCalibData::getBrEast ( int  index)

Definition at line 331 of file TofCalibData.cxx.

331 {
332 tofCalibInfoBase tofInfo = getTofInfo();
333 return tofInfo.getBrEast(index);
334 }
tofCalibInfoBase getTofInfo() const

◆ getBrEast() [2/2]

int CalibData::TofCalibData::getBrEast ( int  index)

◆ getBrWest() [1/2]

int CalibData::TofCalibData::getBrWest ( int  index)

Definition at line 336 of file TofCalibData.cxx.

336 {
337 tofCalibInfoBase tofInfo = getTofInfo();
338 return tofInfo.getBrWest(index);
339 }

◆ getBrWest() [2/2]

int CalibData::TofCalibData::getBrWest ( int  index)

◆ getBTof() [1/2]

bTofCalibBase CalibData::TofCalibData::getBTof ( int  cnt) const

Definition at line 126 of file TofCalibData.cxx.

126 {
127 std::vector<bTofCalibBase>::iterator it = m_bTofCalibData->begin();
128 for(int i=0;i!=cnt;i++,it++) {
129 }
130 return *it;
131 }

Referenced by getBTofAtten(), getBTofFcounter(), getBTofFleft(), getBTofFright(), getBTofPleft(), getBTofPoffleft_bunch0(), getBTofPoffleft_bunch1(), getBTofPoffleft_bunch2(), getBTofPoffleft_bunch3(), getBTofPoffright_bunch0(), getBTofPoffright_bunch1(), getBTofPoffright_bunch2(), getBTofPoffright_bunch3(), getBTofPright(), and getBTofSpeed().

◆ getBTof() [2/2]

bTofCalibBase CalibData::TofCalibData::getBTof ( int  cnt) const

◆ getBTofAtten() [1/2]

double CalibData::TofCalibData::getBTofAtten ( int  index,
int  pardex 
)

Definition at line 166 of file TofCalibData.cxx.

166 {
167 bTofCalibBase bTof = getBTof(index);
168 return bTof.getAtten(pardex);
169 }
bTofCalibBase getBTof(int cnt) const

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofAtten() [2/2]

double CalibData::TofCalibData::getBTofAtten ( int  index,
int  pardex 
)

◆ getBTofCom() [1/2]

bTofCommonCalibBase CalibData::TofCalibData::getBTofCom ( ) const

Definition at line 133 of file TofCalibData.cxx.

133 {
134 std::vector<bTofCommonCalibBase>::iterator it = m_bTofCommonCalibData->begin();
135 return *it;
136 }

Referenced by getBTofOffset(), and getBTofSigmaCorr().

◆ getBTofCom() [2/2]

bTofCommonCalibBase CalibData::TofCalibData::getBTofCom ( ) const

◆ getBTofFcounter() [1/2]

double CalibData::TofCalibData::getBTofFcounter ( int  index,
int  pardex 
)

Definition at line 236 of file TofCalibData.cxx.

236 {
237 bTofCalibBase bTof = getBTof(index);
238 return bTof.getFcounter(pardex);
239 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofFcounter() [2/2]

double CalibData::TofCalibData::getBTofFcounter ( int  index,
int  pardex 
)

◆ getBTofFleft() [1/2]

double CalibData::TofCalibData::getBTofFleft ( int  index,
int  pardex 
)

Definition at line 226 of file TofCalibData.cxx.

226 {
227 bTofCalibBase bTof = getBTof(index);
228 return bTof.getFleft(pardex);
229 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofFleft() [2/2]

double CalibData::TofCalibData::getBTofFleft ( int  index,
int  pardex 
)

◆ getBTofFright() [1/2]

double CalibData::TofCalibData::getBTofFright ( int  index,
int  pardex 
)

Definition at line 231 of file TofCalibData.cxx.

231 {
232 bTofCalibBase bTof = getBTof(index);
233 return bTof.getFright(pardex);
234 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofFright() [2/2]

double CalibData::TofCalibData::getBTofFright ( int  index,
int  pardex 
)

◆ getBTofOffset() [1/2]

double CalibData::TofCalibData::getBTofOffset ( int  pardex)

Definition at line 241 of file TofCalibData.cxx.

241 {
242 bTofCommonCalibBase bTofCom = getBTofCom();
243 return bTofCom.getOffset(pardex);
244 }
bTofCommonCalibBase getBTofCom() const

◆ getBTofOffset() [2/2]

double CalibData::TofCalibData::getBTofOffset ( int  pardex)

◆ getBTofPleft() [1/2]

double CalibData::TofCalibData::getBTofPleft ( int  index,
int  pardex 
)

Definition at line 176 of file TofCalibData.cxx.

176 {
177 bTofCalibBase bTof = getBTof(index);
178 return bTof.getP1(pardex);
179 }

Referenced by RootEstTofCalibDataCnv::createRoot(), and RootTofCalibDataCnv::createRoot().

◆ getBTofPleft() [2/2]

double CalibData::TofCalibData::getBTofPleft ( int  index,
int  pardex 
)

◆ getBTofPoffleft_bunch0() [1/2]

double CalibData::TofCalibData::getBTofPoffleft_bunch0 ( int  index,
int  pardex 
)

Definition at line 186 of file TofCalibData.cxx.

186 {
187 bTofCalibBase bTof = getBTof(index);
188 return bTof.getPoff1_bunch0(pardex);
189 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffleft_bunch0() [2/2]

double CalibData::TofCalibData::getBTofPoffleft_bunch0 ( int  index,
int  pardex 
)

◆ getBTofPoffleft_bunch1() [1/2]

double CalibData::TofCalibData::getBTofPoffleft_bunch1 ( int  index,
int  pardex 
)

Definition at line 196 of file TofCalibData.cxx.

196 {
197 bTofCalibBase bTof = getBTof(index);
198 return bTof.getPoff1_bunch1(pardex);
199 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffleft_bunch1() [2/2]

double CalibData::TofCalibData::getBTofPoffleft_bunch1 ( int  index,
int  pardex 
)

◆ getBTofPoffleft_bunch2() [1/2]

double CalibData::TofCalibData::getBTofPoffleft_bunch2 ( int  index,
int  pardex 
)

Definition at line 206 of file TofCalibData.cxx.

206 {
207 bTofCalibBase bTof = getBTof(index);
208 return bTof.getPoff1_bunch2(pardex);
209 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffleft_bunch2() [2/2]

double CalibData::TofCalibData::getBTofPoffleft_bunch2 ( int  index,
int  pardex 
)

◆ getBTofPoffleft_bunch3() [1/2]

double CalibData::TofCalibData::getBTofPoffleft_bunch3 ( int  index,
int  pardex 
)

Definition at line 216 of file TofCalibData.cxx.

216 {
217 bTofCalibBase bTof = getBTof(index);
218 return bTof.getPoff1_bunch3(pardex);
219 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffleft_bunch3() [2/2]

double CalibData::TofCalibData::getBTofPoffleft_bunch3 ( int  index,
int  pardex 
)

◆ getBTofPoffright_bunch0() [1/2]

double CalibData::TofCalibData::getBTofPoffright_bunch0 ( int  index,
int  pardex 
)

Definition at line 191 of file TofCalibData.cxx.

191 {
192 bTofCalibBase bTof = getBTof(index);
193 return bTof.getPoff2_bunch0(pardex);
194 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffright_bunch0() [2/2]

double CalibData::TofCalibData::getBTofPoffright_bunch0 ( int  index,
int  pardex 
)

◆ getBTofPoffright_bunch1() [1/2]

double CalibData::TofCalibData::getBTofPoffright_bunch1 ( int  index,
int  pardex 
)

Definition at line 201 of file TofCalibData.cxx.

201 {
202 bTofCalibBase bTof = getBTof(index);
203 return bTof.getPoff2_bunch1(pardex);
204 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffright_bunch1() [2/2]

double CalibData::TofCalibData::getBTofPoffright_bunch1 ( int  index,
int  pardex 
)

◆ getBTofPoffright_bunch2() [1/2]

double CalibData::TofCalibData::getBTofPoffright_bunch2 ( int  index,
int  pardex 
)

Definition at line 211 of file TofCalibData.cxx.

211 {
212 bTofCalibBase bTof = getBTof(index);
213 return bTof.getPoff2_bunch2(pardex);
214 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffright_bunch2() [2/2]

double CalibData::TofCalibData::getBTofPoffright_bunch2 ( int  index,
int  pardex 
)

◆ getBTofPoffright_bunch3() [1/2]

double CalibData::TofCalibData::getBTofPoffright_bunch3 ( int  index,
int  pardex 
)

Definition at line 221 of file TofCalibData.cxx.

221 {
222 bTofCalibBase bTof = getBTof(index);
223 return bTof.getPoff2_bunch3(pardex);
224 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffright_bunch3() [2/2]

double CalibData::TofCalibData::getBTofPoffright_bunch3 ( int  index,
int  pardex 
)

◆ getBTofPright() [1/2]

double CalibData::TofCalibData::getBTofPright ( int  index,
int  pardex 
)

Definition at line 181 of file TofCalibData.cxx.

181 {
182 bTofCalibBase bTof = getBTof(index);
183 return bTof.getP2(pardex);
184 }

Referenced by RootEstTofCalibDataCnv::createRoot(), and RootTofCalibDataCnv::createRoot().

◆ getBTofPright() [2/2]

double CalibData::TofCalibData::getBTofPright ( int  index,
int  pardex 
)

◆ getBTofSigmaCorr() [1/2]

double CalibData::TofCalibData::getBTofSigmaCorr ( int  pardex)

Definition at line 246 of file TofCalibData.cxx.

246 {
247 bTofCommonCalibBase bTofCom = getBTofCom();
248 return bTofCom.getSigmaCorr(pardex);
249 }

◆ getBTofSigmaCorr() [2/2]

double CalibData::TofCalibData::getBTofSigmaCorr ( int  pardex)

◆ getBTofSpeed() [1/2]

double CalibData::TofCalibData::getBTofSpeed ( int  index,
int  pardex 
)

Definition at line 171 of file TofCalibData.cxx.

171 {
172 bTofCalibBase bTof = getBTof(index);
173 return bTof.getSpeed(pardex);
174 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofSpeed() [2/2]

double CalibData::TofCalibData::getBTofSpeed ( int  index,
int  pardex 
)

◆ getEndcap() [1/2]

int CalibData::TofCalibData::getEndcap ( int  index)

Definition at line 341 of file TofCalibData.cxx.

341 {
342 tofCalibInfoBase tofInfo = getTofInfo();
343 return tofInfo.getEndcap(index);
344 }

◆ getEndcap() [2/2]

int CalibData::TofCalibData::getEndcap ( int  index)

◆ getEtf() [1/4]

etfCalibBase CalibData::TofCalibData::getEtf ( int  cnt,
int  strip 
) const

Definition at line 145 of file TofCalibData.cxx.

145 {
146 std::vector<etfCalibBase>::iterator it = m_etfCalibData->begin();
147 for(int i=0;i!=cnt;i++) {
148 for( int j=0;j!=12;j++,it++) {
149 }
150 }
151 for( int j=0;j!=strip;j++,it++) {
152 }
153 return *it;
154 }

Referenced by getEtfPcombine(), getEtfPleft(), getEtfPright(), and getEtfSpeed().

◆ getEtf() [2/4]

etfCalibBase CalibData::TofCalibData::getEtf ( int  cnt,
int  strip 
) const

◆ getEtf() [3/4]

int CalibData::TofCalibData::getEtf ( int  index)

◆ getEtf() [4/4]

int CalibData::TofCalibData::getEtf ( int  index)

◆ getEtfBunch() [1/2]

etfBunchCalibBase CalibData::TofCalibData::getEtfBunch ( ) const

Definition at line 156 of file TofCalibData.cxx.

156 {
157 std::vector<etfBunchCalibBase>::iterator it = m_etfBunchCalibData->begin();
158 return *it;
159 }

Referenced by getEtfPBunch().

◆ getEtfBunch() [2/2]

etfBunchCalibBase CalibData::TofCalibData::getEtfBunch ( ) const

◆ getEtfPBunch() [1/2]

double CalibData::TofCalibData::getEtfPBunch ( int  pardex)

Definition at line 295 of file TofCalibData.cxx.

295 {
296 if( !m_hasEtfBunch ) { return 0.0; }
297 etfBunchCalibBase etfBunch = getEtfBunch();
298 return etfBunch.getPBunch(pardex);
299 }
etfBunchCalibBase getEtfBunch() const

Referenced by RootTofCalibDataCnv::createRoot().

◆ getEtfPBunch() [2/2]

double CalibData::TofCalibData::getEtfPBunch ( int  pardex)

◆ getEtfPcombine() [1/2]

double CalibData::TofCalibData::getEtfPcombine ( int  index,
int  strip,
int  pardex 
)

Definition at line 277 of file TofCalibData.cxx.

277 {
278 if( !m_hasEtf ) { return 1.0; }
279 etfCalibBase etf = getEtf(index,strip);
280 return etf.getP(pardex);
281 }
etfCalibBase getEtf(int cnt, int strip) const

Referenced by RootEstTofCalibDataCnv::createRoot(), and RootTofCalibDataCnv::createRoot().

◆ getEtfPcombine() [2/2]

double CalibData::TofCalibData::getEtfPcombine ( int  index,
int  strip,
int  pardex 
)

◆ getEtfPleft() [1/2]

double CalibData::TofCalibData::getEtfPleft ( int  index,
int  strip,
int  pardex 
)

Definition at line 283 of file TofCalibData.cxx.

283 {
284 if( !m_hasEtf ) { return 1.0; }
285 etfCalibBase etf = getEtf(index,strip);
286 return etf.getP1(pardex);
287 }

Referenced by RootEstTofCalibDataCnv::createRoot(), and RootTofCalibDataCnv::createRoot().

◆ getEtfPleft() [2/2]

double CalibData::TofCalibData::getEtfPleft ( int  index,
int  strip,
int  pardex 
)

◆ getEtfPright() [1/2]

double CalibData::TofCalibData::getEtfPright ( int  index,
int  strip,
int  pardex 
)

Definition at line 289 of file TofCalibData.cxx.

289 {
290 if( !m_hasEtf ) { return 1.0; }
291 etfCalibBase etf = getEtf(index,strip);
292 return etf.getP2(pardex);
293 }

Referenced by RootEstTofCalibDataCnv::createRoot(), and RootTofCalibDataCnv::createRoot().

◆ getEtfPright() [2/2]

double CalibData::TofCalibData::getEtfPright ( int  index,
int  strip,
int  pardex 
)

◆ getEtfSpeed() [1/2]

double CalibData::TofCalibData::getEtfSpeed ( int  index,
int  strip,
int  pardex 
)

Definition at line 271 of file TofCalibData.cxx.

271 {
272 if( !m_hasEtf ) { return 1.0; }
273 etfCalibBase etf = getEtf(index,strip);
274 return etf.getSpeed(pardex);
275 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getEtfSpeed() [2/2]

double CalibData::TofCalibData::getEtfSpeed ( int  index,
int  strip,
int  pardex 
)

◆ getETof() [1/2]

eTofCalibBase CalibData::TofCalibData::getETof ( int  cnt) const

Definition at line 138 of file TofCalibData.cxx.

138 {
139 std::vector<eTofCalibBase>::iterator it = m_eTofCalibData->begin();
140 for(int i=0;i!=cnt;i++,it++) {
141 }
142 return *it;
143 }

Referenced by getETofAtten(), getETofFP(), getETofP(), and getETofSpeed().

◆ getETof() [2/2]

eTofCalibBase CalibData::TofCalibData::getETof ( int  cnt) const

◆ getETofAtten() [1/2]

double CalibData::TofCalibData::getETofAtten ( int  index,
int  pardex 
)

Definition at line 251 of file TofCalibData.cxx.

251 {
252 eTofCalibBase eTof = getETof(index);
253 return eTof.getAtten(pardex);
254 }
eTofCalibBase getETof(int cnt) const

Referenced by RootTofCalibDataCnv::createRoot().

◆ getETofAtten() [2/2]

double CalibData::TofCalibData::getETofAtten ( int  index,
int  pardex 
)

◆ getETofFP() [1/2]

double CalibData::TofCalibData::getETofFP ( int  index,
int  pardex 
)

Definition at line 266 of file TofCalibData.cxx.

266 {
267 eTofCalibBase eTof = getETof(index);
268 return eTof.getFP(pardex);
269 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getETofFP() [2/2]

double CalibData::TofCalibData::getETofFP ( int  index,
int  pardex 
)

◆ getETofP() [1/2]

double CalibData::TofCalibData::getETofP ( int  index,
int  pardex 
)

Definition at line 261 of file TofCalibData.cxx.

261 {
262 eTofCalibBase eTof = getETof(index);
263 return eTof.getP(pardex);
264 }

Referenced by RootEstTofCalibDataCnv::createRoot(), and RootTofCalibDataCnv::createRoot().

◆ getETofP() [2/2]

double CalibData::TofCalibData::getETofP ( int  index,
int  pardex 
)

◆ getETofSpeed() [1/2]

double CalibData::TofCalibData::getETofSpeed ( int  index,
int  pardex 
)

Definition at line 256 of file TofCalibData.cxx.

256 {
257 eTofCalibBase eTof = getETof(index);
258 return eTof.getSpeed(pardex);
259 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getETofSpeed() [2/2]

double CalibData::TofCalibData::getETofSpeed ( int  index,
int  pardex 
)

◆ getMisLable() [1/2]

int CalibData::TofCalibData::getMisLable ( )

Definition at line 326 of file TofCalibData.cxx.

326 {
327 tofCalibInfoBase tofInfo = getTofInfo();
328 return tofInfo.getMisLable();
329 }

◆ getMisLable() [2/2]

int CalibData::TofCalibData::getMisLable ( )

◆ getQCorr() [1/2]

int CalibData::TofCalibData::getQCorr ( )

Definition at line 316 of file TofCalibData.cxx.

316 {
317 tofCalibInfoBase tofInfo = getTofInfo();
318 return tofInfo.getQCorr();
319 }

◆ getQCorr() [2/2]

int CalibData::TofCalibData::getQCorr ( )

◆ getQElec() [1/2]

int CalibData::TofCalibData::getQElec ( )

Definition at line 321 of file TofCalibData.cxx.

321 {
322 tofCalibInfoBase tofInfo = getTofInfo();
323 return tofInfo.getQElec();
324 }

◆ getQElec() [2/2]

int CalibData::TofCalibData::getQElec ( )

◆ getRunBegin() [1/2]

int CalibData::TofCalibData::getRunBegin ( )

Definition at line 301 of file TofCalibData.cxx.

301 {
302 tofCalibInfoBase tofInfo = getTofInfo();
303 return tofInfo.getRunBegin();
304 }

◆ getRunBegin() [2/2]

int CalibData::TofCalibData::getRunBegin ( )

◆ getRunEnd() [1/2]

int CalibData::TofCalibData::getRunEnd ( )

Definition at line 306 of file TofCalibData.cxx.

306 {
307 tofCalibInfoBase tofInfo = getTofInfo();
308 return tofInfo.getRunEnd();
309 }

◆ getRunEnd() [2/2]

int CalibData::TofCalibData::getRunEnd ( )

◆ getTofInfo() [1/2]

tofCalibInfoBase CalibData::TofCalibData::getTofInfo ( ) const

Definition at line 161 of file TofCalibData.cxx.

161 {
162 std::vector<tofCalibInfoBase>::iterator it = m_tofCalibInfoData->begin();
163 return *it;
164 }

Referenced by getBrEast(), getBrWest(), getEndcap(), getMisLable(), getQCorr(), getQElec(), getRunBegin(), getRunEnd(), and getVersion().

◆ getTofInfo() [2/2]

tofCalibInfoBase CalibData::TofCalibData::getTofInfo ( ) const

◆ getVersion() [1/2]

int CalibData::TofCalibData::getVersion ( )

Definition at line 311 of file TofCalibData.cxx.

311 {
312 tofCalibInfoBase tofInfo = getTofInfo();
313 return tofInfo.getVersion();
314 }

◆ getVersion() [2/2]

int CalibData::TofCalibData::getVersion ( )

◆ hasEtf() [1/2]

bool CalibData::TofCalibData::hasEtf ( )
inline

Definition at line 40 of file Calibration/CalibData/CalibData-00-01-18/CalibData/Tof/TofCalibData.h.

40{ return m_hasEtf; }

◆ hasEtf() [2/2]

bool CalibData::TofCalibData::hasEtf ( )
inline

Definition at line 40 of file InstallArea/include/CalibData/CalibData/Tof/TofCalibData.h.

40{ return m_hasEtf; }

◆ update() [1/2]

StatusCode CalibData::TofCalibData::update ( CalibBase1 other,
MsgStream *  log 
)
virtual

Reimplemented from CalibData::CalibBase1.

Definition at line 83 of file TofCalibData.cxx.

84 {
85 TofCalibData& other1 = dynamic_cast<TofCalibData& >(other);
86 std::cout<<"========================================"<<"\n"<<"here is the update in the TofCalibData"<<"\n"<<"========================================"<<std::endl;
87 CalibBase1::update(other, log);
88 delete m_bTofCalibData;
89 m_bTofCalibData = new std::vector<bTofCalibBase>(*(other1.m_bTofCalibData));
90 delete m_bTofCommonCalibData;
91 m_bTofCommonCalibData = new std::vector<bTofCommonCalibBase>(*(other1.m_bTofCommonCalibData));
92 delete m_eTofCalibData;
93 m_eTofCalibData = new std::vector<eTofCalibBase>(*(other1.m_eTofCalibData));
94 delete m_tofCalibInfoData;
95 m_tofCalibInfoData = new std::vector<tofCalibInfoBase>(*(other1.m_tofCalibInfoData));
96
97 if( m_etfCalibData ) { delete m_etfCalibData; }
98 if( other1.m_etfCalibData ) {
99 if( (other1.m_etfCalibData)->size() > 0 ) {
100 m_etfCalibData = new std::vector<etfCalibBase>(*(other1.m_etfCalibData));
101 m_hasEtf = true;
102 }
103 }
104 else {
105 m_etfCalibData = NULL;
106 m_hasEtf = false;
107 }
108
109 if( m_etfBunchCalibData ) { delete m_etfBunchCalibData; }
110 if( other1.m_etfBunchCalibData ) {
111 if( (other1.m_etfBunchCalibData)->size() > 0 ) {
112 m_etfBunchCalibData = new std::vector<etfBunchCalibBase>(*(other1.m_etfBunchCalibData));
113 m_hasEtfBunch = true;
114 }
115 }
116 else {
117 m_etfBunchCalibData = NULL;
118 m_hasEtfBunch = false;
119 }
120
121 return StatusCode::SUCCESS;
122 }
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

◆ update() [2/2]

virtual StatusCode CalibData::TofCalibData::update ( CalibBase1 other,
MsgStream *  log 
)
virtual

Reimplemented from CalibData::CalibBase1.


The documentation for this class was generated from the following files: