CGEM BOSS 6.6.5.g
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< tofCalibInfoBase > *tofInfoCal)
 
virtual ~TofCalibData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
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)
 
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)
 
- 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)
 

Static Public Member Functions

static const CLID & classID ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 23 of file TofCalibData.h.

Constructor & Destructor Documentation

◆ TofCalibData() [1/2]

CalibData::TofCalibData::TofCalibData ( )
inline

Definition at line 26 of file TofCalibData.h.

26{};

◆ TofCalibData() [2/2]

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

Definition at line 16 of file TofCalibData.cxx.

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

◆ ~TofCalibData()

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

Definition at line 30 of file TofCalibData.h.

30 {
31 delete m_bTofCalibData;
32 delete m_bTofCommonCalibData;
33 delete m_eTofCalibData;
34 delete m_tofCalibInfoData;
35 }

Member Function Documentation

◆ classID()

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

Definition at line 40 of file TofCalibData.h.

40{ return CLID_Calib_TofCal; }
const CLID CLID_Calib_TofCal
Definition: CalibModel.h:43

Referenced by clID().

◆ clID()

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

Definition at line 38 of file TofCalibData.h.

38{ return classID(); }
static const CLID & classID()
Definition: TofCalibData.h:40

◆ getBrEast()

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

Definition at line 210 of file TofCalibData.cxx.

210 {
211 tofCalibInfoBase tofInfo = getTofInfo();
212 return tofInfo.getBrEast(index);
213 }
tofCalibInfoBase getTofInfo() const

◆ getBrWest()

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

Definition at line 215 of file TofCalibData.cxx.

215 {
216 tofCalibInfoBase tofInfo = getTofInfo();
217 return tofInfo.getBrWest(index);
218 }

◆ getBTof()

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

Definition at line 49 of file TofCalibData.cxx.

49 {
50 std::vector<bTofCalibBase>::iterator it = m_bTofCalibData->begin();
51 for(int i=0;i!=cnt;i++,it++)
52 {
53 }
54 return *it;
55 }

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().

◆ getBTofAtten()

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

Definition at line 75 of file TofCalibData.cxx.

75 {
76 bTofCalibBase bTof = getBTof(index);
77 return bTof.getAtten(pardex);
78 }
bTofCalibBase getBTof(int cnt) const

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofCom()

bTofCommonCalibBase CalibData::TofCalibData::getBTofCom ( ) const

Definition at line 57 of file TofCalibData.cxx.

57 {
58 std::vector<bTofCommonCalibBase>::iterator it = m_bTofCommonCalibData->begin();
59 return *it;
60 }

Referenced by getBTofOffset(), and getBTofSigmaCorr().

◆ getBTofFcounter()

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

Definition at line 145 of file TofCalibData.cxx.

145 {
146 bTofCalibBase bTof = getBTof(index);
147 return bTof.getFcounter(pardex);
148 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofFleft()

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

Definition at line 135 of file TofCalibData.cxx.

135 {
136 bTofCalibBase bTof = getBTof(index);
137 return bTof.getFleft(pardex);
138 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofFright()

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

Definition at line 140 of file TofCalibData.cxx.

140 {
141 bTofCalibBase bTof = getBTof(index);
142 return bTof.getFright(pardex);
143 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofOffset()

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

Definition at line 150 of file TofCalibData.cxx.

150 {
151 bTofCommonCalibBase bTofCom = getBTofCom();
152 return bTofCom.getOffset(pardex);
153 }
bTofCommonCalibBase getBTofCom() const

◆ getBTofPleft()

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

Definition at line 85 of file TofCalibData.cxx.

85 {
86 bTofCalibBase bTof = getBTof(index);
87 return bTof.getP1(pardex);
88 }

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

◆ getBTofPoffleft_bunch0()

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

Definition at line 95 of file TofCalibData.cxx.

95 {
96 bTofCalibBase bTof = getBTof(index);
97 return bTof.getPoff1_bunch0(pardex);
98 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffleft_bunch1()

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

Definition at line 105 of file TofCalibData.cxx.

105 {
106 bTofCalibBase bTof = getBTof(index);
107 return bTof.getPoff1_bunch1(pardex);
108 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffleft_bunch2()

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

Definition at line 115 of file TofCalibData.cxx.

115 {
116 bTofCalibBase bTof = getBTof(index);
117 return bTof.getPoff1_bunch2(pardex);
118 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffleft_bunch3()

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

Definition at line 125 of file TofCalibData.cxx.

125 {
126 bTofCalibBase bTof = getBTof(index);
127 return bTof.getPoff1_bunch3(pardex);
128 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffright_bunch0()

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

Definition at line 100 of file TofCalibData.cxx.

100 {
101 bTofCalibBase bTof = getBTof(index);
102 return bTof.getPoff2_bunch0(pardex);
103 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffright_bunch1()

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

Definition at line 110 of file TofCalibData.cxx.

110 {
111 bTofCalibBase bTof = getBTof(index);
112 return bTof.getPoff2_bunch1(pardex);
113 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffright_bunch2()

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

Definition at line 120 of file TofCalibData.cxx.

120 {
121 bTofCalibBase bTof = getBTof(index);
122 return bTof.getPoff2_bunch2(pardex);
123 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPoffright_bunch3()

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

Definition at line 130 of file TofCalibData.cxx.

130 {
131 bTofCalibBase bTof = getBTof(index);
132 return bTof.getPoff2_bunch3(pardex);
133 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getBTofPright()

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

Definition at line 90 of file TofCalibData.cxx.

90 {
91 bTofCalibBase bTof = getBTof(index);
92 return bTof.getP2(pardex);
93 }

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

◆ getBTofSigmaCorr()

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

Definition at line 155 of file TofCalibData.cxx.

155 {
156 bTofCommonCalibBase bTofCom = getBTofCom();
157 return bTofCom.getSigmaCorr(pardex);
158 }

◆ getBTofSpeed()

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

Definition at line 80 of file TofCalibData.cxx.

80 {
81 bTofCalibBase bTof = getBTof(index);
82 return bTof.getSpeed(pardex);
83 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getEndcap()

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

Definition at line 220 of file TofCalibData.cxx.

220 {
221 tofCalibInfoBase tofInfo = getTofInfo();
222 return tofInfo.getEndcap(index);
223 }

◆ getETof()

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

Definition at line 62 of file TofCalibData.cxx.

62 {
63 std::vector<eTofCalibBase>::iterator it = m_eTofCalibData->begin();
64 for(int i=0;i!=cnt;i++,it++)
65 {
66 }
67 return *it;
68 }

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

◆ getETofAtten()

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

Definition at line 160 of file TofCalibData.cxx.

160 {
161 eTofCalibBase eTof = getETof(index);
162 return eTof.getAtten(pardex);
163 }
eTofCalibBase getETof(int cnt) const

Referenced by RootTofCalibDataCnv::createRoot().

◆ getETofFP()

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

Definition at line 175 of file TofCalibData.cxx.

175 {
176 eTofCalibBase eTof = getETof(index);
177 return eTof.getFP(pardex);
178 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getETofP()

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

Definition at line 170 of file TofCalibData.cxx.

170 {
171 eTofCalibBase eTof = getETof(index);
172 return eTof.getP(pardex);
173 }

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

◆ getETofSpeed()

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

Definition at line 165 of file TofCalibData.cxx.

165 {
166 eTofCalibBase eTof = getETof(index);
167 return eTof.getSpeed(pardex);
168 }

Referenced by RootTofCalibDataCnv::createRoot().

◆ getMisLable()

int CalibData::TofCalibData::getMisLable ( )

Definition at line 205 of file TofCalibData.cxx.

205 {
206 tofCalibInfoBase tofInfo = getTofInfo();
207 return tofInfo.getMisLable();
208 }

◆ getQCorr()

int CalibData::TofCalibData::getQCorr ( )

Definition at line 195 of file TofCalibData.cxx.

195 {
196 tofCalibInfoBase tofInfo = getTofInfo();
197 return tofInfo.getQCorr();
198 }

◆ getQElec()

int CalibData::TofCalibData::getQElec ( )

Definition at line 200 of file TofCalibData.cxx.

200 {
201 tofCalibInfoBase tofInfo = getTofInfo();
202 return tofInfo.getQElec();
203 }

◆ getRunBegin()

int CalibData::TofCalibData::getRunBegin ( )

Definition at line 180 of file TofCalibData.cxx.

180 {
181 tofCalibInfoBase tofInfo = getTofInfo();
182 return tofInfo.getRunBegin();
183 }

◆ getRunEnd()

int CalibData::TofCalibData::getRunEnd ( )

Definition at line 185 of file TofCalibData.cxx.

185 {
186 tofCalibInfoBase tofInfo = getTofInfo();
187 return tofInfo.getRunEnd();
188 }

◆ getTofInfo()

tofCalibInfoBase CalibData::TofCalibData::getTofInfo ( ) const

Definition at line 70 of file TofCalibData.cxx.

70 {
71 std::vector<tofCalibInfoBase>::iterator it = m_tofCalibInfoData->begin();
72 return *it;
73 }

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

◆ getVersion()

int CalibData::TofCalibData::getVersion ( )

Definition at line 190 of file TofCalibData.cxx.

190 {
191 tofCalibInfoBase tofInfo = getTofInfo();
192 return tofInfo.getVersion();
193 }

◆ update()

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

Reimplemented from CalibData::CalibBase1.

Definition at line 31 of file TofCalibData.cxx.

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}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

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