8#include "GaudiKernel/MsgStream.h"
16 TofCalibData::TofCalibData(std::vector<bTofCalibBase>* bTofCal,std::vector<bTofCommonCalibBase>* bTofComCal,std::vector<eTofCalibBase>* eTofCal,std::vector<tofCalibInfoBase>* tofInfoCal){
18 m_bTofCalibData =
new std::vector<bTofCalibBase>(*bTofCal);
21 m_bTofCommonCalibData =
new std::vector<bTofCommonCalibBase>(*bTofComCal);
24 m_eTofCalibData =
new std::vector<eTofCalibBase>(*eTofCal);
27 m_tofCalibInfoData =
new std::vector<tofCalibInfoBase>(*tofInfoCal);
34 std::cout<<
"========================================"<<
"\n"<<
"here is the update in the TofCalibData"<<
"\n"<<
"=================================================="<<std::endl;
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;
50 std::vector<bTofCalibBase>::iterator it = m_bTofCalibData->begin();
51 for(
int i=0;i!=cnt;i++,it++)
58 std::vector<bTofCommonCalibBase>::iterator it = m_bTofCommonCalibData->begin();
63 std::vector<eTofCalibBase>::iterator it = m_eTofCalibData->begin();
64 for(
int i=0;i!=cnt;i++,it++)
71 std::vector<tofCalibInfoBase>::iterator it = m_tofCalibInfoData->begin();
87 return bTof.
getP1(pardex);
92 return bTof.
getP2(pardex);
172 return eTof.
getP(pardex);
177 return eTof.
getFP(pardex);
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
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)
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)
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
double getFcounter(int No) const
double getP2(int No) const
double getPoff2_bunch3(int No) const
double getP1(int No) const
double getFleft(int No) const
double getFright(int No) const
double getPoff1_bunch1(int No) const
double getPoff1_bunch3(int No) const
double getAtten(int No) const
double getSpeed(int No) const
double getPoff2_bunch1(int No) const
double getPoff1_bunch0(int No) const
double getPoff2_bunch2(int No) const
double getPoff2_bunch0(int No) const
double getOffset(int No) const
double getSigmaCorr(int No) const
double getSpeed(int No) const
double getAtten(int No) const
double getFP(int No) const
double getP(int No) const
int getBrEast(int No) const
int getBrWest(int No) const
int getEndcap(int No) const