BOSS 7.0.5
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 ()
 
unsigned int getBTofSize () const
 
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)
 
int getBTofComSize () const
 
bTofCommonCalibBase getBTofCom (int cnt) const
 
double getBTofOffset (int cnt, int pardex)
 
double getBTofSigmaCorr (int cnt, int pardex)
 
unsigned int getETofSize () const
 
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)
 
unsigned int getEtfSize () const
 
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)
 
unsigned int getEtfBunchSize () const
 
etfBunchCalibBase getEtfBunch (int cnt) const
 
double getEtfPBunch (int cnx, int pardex)
 
unsigned int getTofInfoSize () const
 
tofCalibInfoBase getTofInfo (int cnt) const
 
int getRunBegin (int cnt)
 
int getRunEnd (int cnt)
 
int getVersion (int cnt)
 
int getQCorr (int cnt)
 
int getQElec (int cnt)
 
int getMisLable (int cnt)
 
int getBrEast (int cnt, int index)
 
int getBrWest (int cnt, int index)
 
int getEndcap (int cnt, int index)
 
int getRunFrom (int cnt)
 
int getRunTo (int cnt)
 
int getEventFrom (int cnt)
 
int getEventTo (int cnt)
 
 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 ()
 
unsigned int getBTofSize () const
 
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)
 
int getBTofComSize () const
 
bTofCommonCalibBase getBTofCom (int cnt) const
 
double getBTofOffset (int cnt, int pardex)
 
double getBTofSigmaCorr (int cnt, int pardex)
 
unsigned int getETofSize () const
 
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)
 
unsigned int getEtfSize () const
 
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)
 
unsigned int getEtfBunchSize () const
 
etfBunchCalibBase getEtfBunch (int cnt) const
 
double getEtfPBunch (int cnx, int pardex)
 
unsigned int getTofInfoSize () const
 
tofCalibInfoBase getTofInfo (int cnt) const
 
int getRunBegin (int cnt)
 
int getRunEnd (int cnt)
 
int getVersion (int cnt)
 
int getQCorr (int cnt)
 
int getQElec (int cnt)
 
int getMisLable (int cnt)
 
int getBrEast (int cnt, int index)
 
int getBrWest (int cnt, int index)
 
int getEndcap (int cnt, int index)
 
int getRunFrom (int cnt)
 
int getRunTo (int cnt)
 
int getEventFrom (int cnt)
 
int getEventTo (int cnt)
 
- 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-22/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  cnt,
int  index 
)

Definition at line 368 of file TofCalibData.cxx.

368 {
369 tofCalibInfoBase tofInfo = getTofInfo(cnt);
370 return tofInfo.getBrEast(index);
371 }
tofCalibInfoBase getTofInfo(int cnt) const

◆ getBrEast() [2/2]

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

◆ getBrWest() [1/2]

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

Definition at line 373 of file TofCalibData.cxx.

373 {
374 tofCalibInfoBase tofInfo = getTofInfo(cnt);
375 return tofInfo.getBrWest(index);
376 }

◆ getBrWest() [2/2]

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

◆ getBTof() [1/2]

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

Definition at line 129 of file TofCalibData.cxx.

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

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 203 of file TofCalibData.cxx.

203 {
204 bTofCalibBase bTof = getBTof(index);
205 return bTof.getAtten(pardex);
206 }
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 ( int  cnt) const

Definition at line 140 of file TofCalibData.cxx.

140 {
141 std::vector<bTofCommonCalibBase>::iterator it = m_bTofCommonCalibData->begin();
142 for(int i=0;i!=cnt;i++,it++) {
143 }
144 return *it;
145 }

Referenced by getBTofOffset(), and getBTofSigmaCorr().

◆ getBTofCom() [2/2]

bTofCommonCalibBase CalibData::TofCalibData::getBTofCom ( int  cnt) const

◆ getBTofComSize() [1/2]

int CalibData::TofCalibData::getBTofComSize ( ) const

Definition at line 136 of file TofCalibData.cxx.

136 {
137 return m_bTofCommonCalibData->size();
138 }

◆ getBTofComSize() [2/2]

int CalibData::TofCalibData::getBTofComSize ( ) const

◆ getBTofFcounter() [1/2]

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

Definition at line 273 of file TofCalibData.cxx.

273 {
274 bTofCalibBase bTof = getBTof(index);
275 return bTof.getFcounter(pardex);
276 }

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 263 of file TofCalibData.cxx.

263 {
264 bTofCalibBase bTof = getBTof(index);
265 return bTof.getFleft(pardex);
266 }

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 268 of file TofCalibData.cxx.

268 {
269 bTofCalibBase bTof = getBTof(index);
270 return bTof.getFright(pardex);
271 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofFright() [2/2]

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

◆ getBTofOffset() [1/2]

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

Definition at line 278 of file TofCalibData.cxx.

278 {
279 bTofCommonCalibBase bTofCom = getBTofCom(cnt);
280 return bTofCom.getOffset(pardex);
281 }
bTofCommonCalibBase getBTofCom(int cnt) const

◆ getBTofOffset() [2/2]

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

◆ getBTofPleft() [1/2]

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

Definition at line 213 of file TofCalibData.cxx.

213 {
214 bTofCalibBase bTof = getBTof(index);
215 return bTof.getP1(pardex);
216 }

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 223 of file TofCalibData.cxx.

223 {
224 bTofCalibBase bTof = getBTof(index);
225 return bTof.getPoff1_bunch0(pardex);
226 }

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 233 of file TofCalibData.cxx.

233 {
234 bTofCalibBase bTof = getBTof(index);
235 return bTof.getPoff1_bunch1(pardex);
236 }

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 243 of file TofCalibData.cxx.

243 {
244 bTofCalibBase bTof = getBTof(index);
245 return bTof.getPoff1_bunch2(pardex);
246 }

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 253 of file TofCalibData.cxx.

253 {
254 bTofCalibBase bTof = getBTof(index);
255 return bTof.getPoff1_bunch3(pardex);
256 }

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 228 of file TofCalibData.cxx.

228 {
229 bTofCalibBase bTof = getBTof(index);
230 return bTof.getPoff2_bunch0(pardex);
231 }

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 238 of file TofCalibData.cxx.

238 {
239 bTofCalibBase bTof = getBTof(index);
240 return bTof.getPoff2_bunch1(pardex);
241 }

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 248 of file TofCalibData.cxx.

248 {
249 bTofCalibBase bTof = getBTof(index);
250 return bTof.getPoff2_bunch2(pardex);
251 }

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 258 of file TofCalibData.cxx.

258 {
259 bTofCalibBase bTof = getBTof(index);
260 return bTof.getPoff2_bunch3(pardex);
261 }

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 218 of file TofCalibData.cxx.

218 {
219 bTofCalibBase bTof = getBTof(index);
220 return bTof.getP2(pardex);
221 }

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  cnt,
int  pardex 
)

Definition at line 283 of file TofCalibData.cxx.

283 {
284 bTofCommonCalibBase bTofCom = getBTofCom(cnt);
285 return bTofCom.getSigmaCorr(pardex);
286 }

◆ getBTofSigmaCorr() [2/2]

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

◆ getBTofSize() [1/2]

unsigned int CalibData::TofCalibData::getBTofSize ( ) const

Definition at line 125 of file TofCalibData.cxx.

125 {
126 return m_bTofCalibData->size();
127 }

◆ getBTofSize() [2/2]

unsigned int CalibData::TofCalibData::getBTofSize ( ) const

◆ getBTofSpeed() [1/2]

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

Definition at line 208 of file TofCalibData.cxx.

208 {
209 bTofCalibBase bTof = getBTof(index);
210 return bTof.getSpeed(pardex);
211 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofSpeed() [2/2]

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

◆ getEndcap() [1/2]

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

Definition at line 378 of file TofCalibData.cxx.

378 {
379 tofCalibInfoBase tofInfo = getTofInfo(cnt);
380 return tofInfo.getEndcap(index);
381 }

◆ getEndcap() [2/2]

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

◆ getEtf() [1/2]

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

Definition at line 166 of file TofCalibData.cxx.

166 {
167 std::vector<etfCalibBase>::iterator it = m_etfCalibData->begin();
168 for(int i=0;i!=cnt;i++) {
169 for( int j=0;j!=12;j++,it++) {
170 }
171 }
172 for( int j=0;j!=strip;j++,it++) {
173 }
174 return *it;
175 }

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

◆ getEtf() [2/2]

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

◆ getEtfBunch() [1/2]

etfBunchCalibBase CalibData::TofCalibData::getEtfBunch ( int  cnt) const

Definition at line 185 of file TofCalibData.cxx.

185 {
186 std::vector<etfBunchCalibBase>::iterator it = m_etfBunchCalibData->begin();
187 for(int i=0;i!=cnt;i++,it++) {
188 }
189 return *it;
190 }

Referenced by getEtfPBunch().

◆ getEtfBunch() [2/2]

etfBunchCalibBase CalibData::TofCalibData::getEtfBunch ( int  cnt) const

◆ getEtfBunchSize() [1/2]

unsigned int CalibData::TofCalibData::getEtfBunchSize ( ) const

Definition at line 177 of file TofCalibData.cxx.

177 {
178 unsigned int size = 0;
179 if( m_hasEtfBunch ) {
180 size = m_etfBunchCalibData->size();
181 }
182 return size;
183 }

◆ getEtfBunchSize() [2/2]

unsigned int CalibData::TofCalibData::getEtfBunchSize ( ) const

◆ getEtfPBunch() [1/2]

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

Definition at line 332 of file TofCalibData.cxx.

332 {
333 if( !m_hasEtfBunch ) { return 0.0; }
334 etfBunchCalibBase etfBunch = getEtfBunch(cnt);
335 return etfBunch.getPBunch(pardex);
336 }
etfBunchCalibBase getEtfBunch(int cnt) const

Referenced by RootTofCalibDataCnv::createRoot().

◆ getEtfPBunch() [2/2]

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

◆ getEtfPcombine() [1/2]

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

Definition at line 314 of file TofCalibData.cxx.

314 {
315 if( !m_hasEtf ) { return 1.0; }
316 etfCalibBase etf = getEtf(index,strip);
317 return etf.getP(pardex);
318 }
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 320 of file TofCalibData.cxx.

320 {
321 if( !m_hasEtf ) { return 1.0; }
322 etfCalibBase etf = getEtf(index,strip);
323 return etf.getP1(pardex);
324 }

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 326 of file TofCalibData.cxx.

326 {
327 if( !m_hasEtf ) { return 1.0; }
328 etfCalibBase etf = getEtf(index,strip);
329 return etf.getP2(pardex);
330 }

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

◆ getEtfPright() [2/2]

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

◆ getEtfSize() [1/2]

unsigned int CalibData::TofCalibData::getEtfSize ( ) const

Definition at line 158 of file TofCalibData.cxx.

158 {
159 unsigned int size = 72*12;
160 if( m_hasEtf ) {
161 size = m_etfCalibData->size();
162 }
163 return size;
164 }

◆ getEtfSize() [2/2]

unsigned int CalibData::TofCalibData::getEtfSize ( ) const

◆ getEtfSpeed() [1/2]

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

Definition at line 308 of file TofCalibData.cxx.

308 {
309 if( !m_hasEtf ) { return 1.0; }
310 etfCalibBase etf = getEtf(index,strip);
311 return etf.getSpeed(pardex);
312 }

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 151 of file TofCalibData.cxx.

151 {
152 std::vector<eTofCalibBase>::iterator it = m_eTofCalibData->begin();
153 for(int i=0;i!=cnt;i++,it++) {
154 }
155 return *it;
156 }

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 288 of file TofCalibData.cxx.

288 {
289 eTofCalibBase eTof = getETof(index);
290 return eTof.getAtten(pardex);
291 }
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 303 of file TofCalibData.cxx.

303 {
304 eTofCalibBase eTof = getETof(index);
305 return eTof.getFP(pardex);
306 }

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 298 of file TofCalibData.cxx.

298 {
299 eTofCalibBase eTof = getETof(index);
300 return eTof.getP(pardex);
301 }

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

◆ getETofP() [2/2]

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

◆ getETofSize() [1/2]

unsigned int CalibData::TofCalibData::getETofSize ( ) const

Definition at line 147 of file TofCalibData.cxx.

147 {
148 return m_eTofCalibData->size();
149 }

◆ getETofSize() [2/2]

unsigned int CalibData::TofCalibData::getETofSize ( ) const

◆ getETofSpeed() [1/2]

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

Definition at line 293 of file TofCalibData.cxx.

293 {
294 eTofCalibBase eTof = getETof(index);
295 return eTof.getSpeed(pardex);
296 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getETofSpeed() [2/2]

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

◆ getEventFrom() [1/2]

int CalibData::TofCalibData::getEventFrom ( int  cnt)

Definition at line 393 of file TofCalibData.cxx.

393 {
394 tofCalibInfoBase tofInfo = getTofInfo(cnt);
395 return tofInfo.getEventFrom();
396 }

◆ getEventFrom() [2/2]

int CalibData::TofCalibData::getEventFrom ( int  cnt)

◆ getEventTo() [1/2]

int CalibData::TofCalibData::getEventTo ( int  cnt)

Definition at line 398 of file TofCalibData.cxx.

398 {
399 tofCalibInfoBase tofInfo = getTofInfo(cnt);
400 return tofInfo.getEventTo();
401 }

◆ getEventTo() [2/2]

int CalibData::TofCalibData::getEventTo ( int  cnt)

◆ getMisLable() [1/2]

int CalibData::TofCalibData::getMisLable ( int  cnt)

Definition at line 363 of file TofCalibData.cxx.

363 {
364 tofCalibInfoBase tofInfo = getTofInfo(cnt);
365 return tofInfo.getMisLable();
366 }

◆ getMisLable() [2/2]

int CalibData::TofCalibData::getMisLable ( int  cnt)

◆ getQCorr() [1/2]

int CalibData::TofCalibData::getQCorr ( int  cnt)

Definition at line 353 of file TofCalibData.cxx.

353 {
354 tofCalibInfoBase tofInfo = getTofInfo(cnt);
355 return tofInfo.getQCorr();
356 }

◆ getQCorr() [2/2]

int CalibData::TofCalibData::getQCorr ( int  cnt)

◆ getQElec() [1/2]

int CalibData::TofCalibData::getQElec ( int  cnt)

Definition at line 358 of file TofCalibData.cxx.

358 {
359 tofCalibInfoBase tofInfo = getTofInfo(cnt);
360 return tofInfo.getQElec();
361 }

◆ getQElec() [2/2]

int CalibData::TofCalibData::getQElec ( int  cnt)

◆ getRunBegin() [1/2]

int CalibData::TofCalibData::getRunBegin ( int  cnt)

Definition at line 338 of file TofCalibData.cxx.

338 {
339 tofCalibInfoBase tofInfo = getTofInfo(cnt);
340 return tofInfo.getRunBegin();
341 }

◆ getRunBegin() [2/2]

int CalibData::TofCalibData::getRunBegin ( int  cnt)

◆ getRunEnd() [1/2]

int CalibData::TofCalibData::getRunEnd ( int  cnt)

Definition at line 343 of file TofCalibData.cxx.

343 {
344 tofCalibInfoBase tofInfo = getTofInfo(cnt);
345 return tofInfo.getRunEnd();
346 }

◆ getRunEnd() [2/2]

int CalibData::TofCalibData::getRunEnd ( int  cnt)

◆ getRunFrom() [1/2]

int CalibData::TofCalibData::getRunFrom ( int  cnt)

Definition at line 383 of file TofCalibData.cxx.

383 {
384 tofCalibInfoBase tofInfo = getTofInfo(cnt);
385 return tofInfo.getRunFrom();
386 }

◆ getRunFrom() [2/2]

int CalibData::TofCalibData::getRunFrom ( int  cnt)

◆ getRunTo() [1/2]

int CalibData::TofCalibData::getRunTo ( int  cnt)

Definition at line 388 of file TofCalibData.cxx.

388 {
389 tofCalibInfoBase tofInfo = getTofInfo(cnt);
390 return tofInfo.getRunTo();
391 }

◆ getRunTo() [2/2]

int CalibData::TofCalibData::getRunTo ( int  cnt)

◆ getTofInfo() [1/2]

tofCalibInfoBase CalibData::TofCalibData::getTofInfo ( int  cnt) const

Definition at line 196 of file TofCalibData.cxx.

196 {
197 std::vector<tofCalibInfoBase>::iterator it = m_tofCalibInfoData->begin();
198 for(int i=0;i!=cnt;i++,it++) {
199 }
200 return *it;
201 }

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

◆ getTofInfo() [2/2]

tofCalibInfoBase CalibData::TofCalibData::getTofInfo ( int  cnt) const

◆ getTofInfoSize() [1/2]

unsigned int CalibData::TofCalibData::getTofInfoSize ( ) const

Definition at line 192 of file TofCalibData.cxx.

192 {
193 return m_tofCalibInfoData->size();
194 }

◆ getTofInfoSize() [2/2]

unsigned int CalibData::TofCalibData::getTofInfoSize ( ) const

◆ getVersion() [1/2]

int CalibData::TofCalibData::getVersion ( int  cnt)

Definition at line 348 of file TofCalibData.cxx.

348 {
349 tofCalibInfoBase tofInfo = getTofInfo(cnt);
350 return tofInfo.getVersion();
351 }

◆ getVersion() [2/2]

int CalibData::TofCalibData::getVersion ( int  cnt)

◆ hasEtf() [1/2]

bool CalibData::TofCalibData::hasEtf ( )
inline

Definition at line 40 of file Calibration/CalibData/CalibData-00-01-22/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: