#include <TofCalibData.h>
Inheritance diagram for CalibData::TofCalibData:
Public Member Functions | |
virtual const CLID & | clID () const |
virtual const CLID & | clID () const |
int | getBrEast (int index) |
int | getBrEast (int index) |
int | getBrWest (int index) |
int | getBrWest (int index) |
bTofCalibBase | getBTof (int cnt) const |
bTofCalibBase | getBTof (int cnt) const |
double | getBTofAtten (int index, int pardex) |
double | getBTofAtten (int index, int pardex) |
bTofCommonCalibBase | getBTofCom () const |
bTofCommonCalibBase | getBTofCom () const |
double | getBTofFcounter (int index, int pardex) |
double | getBTofFcounter (int index, int pardex) |
double | getBTofFleft (int index, int pardex) |
double | getBTofFleft (int index, int pardex) |
double | getBTofFright (int index, int pardex) |
double | getBTofFright (int index, int pardex) |
double | getBTofOffset (int pardex) |
double | getBTofOffset (int pardex) |
double | getBTofPleft (int index, int pardex) |
double | getBTofPleft (int index, int pardex) |
double | getBTofPoffleft (int index, int pardex) |
double | getBTofPoffleft (int index, int pardex) |
double | getBTofPoffright (int index, int pardex) |
double | getBTofPoffright (int index, int pardex) |
double | getBTofPright (int index, int pardex) |
double | getBTofPright (int index, int pardex) |
double | getBTofSigmaCorr (int pardex) |
double | getBTofSigmaCorr (int pardex) |
double | getBTofSpeed (int index, int pardex) |
double | getBTofSpeed (int index, int pardex) |
int | getEndcap (int index) |
int | getEndcap (int index) |
eTofCalibBase | getETof (int cnt) const |
eTofCalibBase | getETof (int cnt) const |
double | getETofAtten (int index, int pardex) |
double | getETofAtten (int index, int pardex) |
double | getETofFP (int index, int pardex) |
double | getETofFP (int index, int pardex) |
double | getETofP (int index, int pardex) |
double | getETofP (int index, int pardex) |
double | getETofSpeed (int index, int pardex) |
double | getETofSpeed (int index, int pardex) |
int | getMisLable () |
int | getMisLable () |
int | getQCorr () |
int | getQCorr () |
int | getQElec () |
int | getQElec () |
int | getRunBegin () |
int | getRunBegin () |
int | getRunEnd () |
int | getRunEnd () |
virtual int | getrunfrm () const |
virtual int | getrunfrm () const |
virtual int | getrunto () const |
virtual int | getrunto () const |
virtual int | getSerNo () const |
Following is intended for deep copy. | |
virtual int | getSerNo () const |
Following is intended for deep copy. | |
tofCalibInfoBase | getTofInfo () const |
tofCalibInfoBase | getTofInfo () const |
int | getVersion () |
int | getVersion () |
void | setrunfrm (int runfrm) |
void | setrunfrm (int runfrm) |
void | setrunto (int runto) |
void | setrunto (int runto) |
void | setSerNo (int ser) |
void | setSerNo (int ser) |
TofCalibData (std::vector< bTofCalibBase > *bTofCal, std::vector< bTofCommonCalibBase > *bTofComCal, std::vector< eTofCalibBase > *eTofCal, std::vector< tofCalibInfoBase > *tofInfoCal) | |
TofCalibData () | |
TofCalibData (std::vector< bTofCalibBase > *bTofCal, std::vector< bTofCommonCalibBase > *bTofComCal, std::vector< eTofCalibBase > *eTofCal, std::vector< tofCalibInfoBase > *tofInfoCal) | |
TofCalibData () | |
virtual StatusCode | update (CalibBase1 &other, MsgStream *log) |
virtual StatusCode | update (CalibBase1 &other, MsgStream *log) |
virtual | ~TofCalibData () |
virtual | ~TofCalibData () |
Static Public Member Functions | |
const CLID & | classID () |
const CLID & | classID () |
Protected Attributes | |
int | m_runfrm |
int | m_runto |
int | m_serNo |
Private Attributes | |
std::vector< bTofCalibBase > * | m_bTofCalibData |
std::vector< bTofCalibBase > * | m_bTofCalibData |
std::vector< bTofCommonCalibBase > * | m_bTofCommonCalibData |
std::vector< bTofCommonCalibBase > * | m_bTofCommonCalibData |
std::vector< eTofCalibBase > * | m_eTofCalibData |
std::vector< eTofCalibBase > * | m_eTofCalibData |
std::vector< tofCalibInfoBase > * | m_tofCalibInfoData |
std::vector< tofCalibInfoBase > * | m_tofCalibInfoData |
|
00026 {};
|
|
00016 { 00017 if(bTofCal){ 00018 m_bTofCalibData = new std::vector<bTofCalibBase>(*bTofCal); 00019 } 00020 if(bTofComCal){ 00021 m_bTofCommonCalibData = new std::vector<bTofCommonCalibBase>(*bTofComCal); 00022 } 00023 if(eTofCal){ 00024 m_eTofCalibData = new std::vector<eTofCalibBase>(*eTofCal); 00025 } 00026 if(tofInfoCal){ 00027 m_tofCalibInfoData = new std::vector<tofCalibInfoBase>(*tofInfoCal); 00028 } 00029 }
|
|
00030 { 00031 delete m_bTofCalibData; 00032 delete m_bTofCommonCalibData; 00033 delete m_eTofCalibData; 00034 delete m_tofCalibInfoData; 00035 }
|
|
00026 {};
|
|
|
|
00030 { 00031 delete m_bTofCalibData; 00032 delete m_bTofCommonCalibData; 00033 delete m_eTofCalibData; 00034 delete m_tofCalibInfoData; 00035 }
|
|
00040 { return CLID_Calib_TofCal; }
|
|
00040 { return CLID_Calib_TofCal; }
|
|
00038 { return classID(); }
|
|
00038 { return classID(); }
|
|
|
|
00180 { 00181 tofCalibInfoBase tofInfo = getTofInfo(); 00182 return tofInfo.getBrEast(index); 00183 }
|
|
|
|
00185 { 00186 tofCalibInfoBase tofInfo = getTofInfo(); 00187 return tofInfo.getBrWest(index); 00188 }
|
|
|
|
00049 { 00050 std::vector<bTofCalibBase>::iterator it = m_bTofCalibData->begin(); 00051 for(int i=0;i!=cnt;i++,it++) 00052 { 00053 } 00054 return *it; 00055 }
|
|
|
|
00075 { 00076 bTofCalibBase bTof = getBTof(index); 00077 return bTof.getAtten(pardex); 00078 }
|
|
|
|
00057 { 00058 std::vector<bTofCommonCalibBase>::iterator it = m_bTofCommonCalibData->begin(); 00059 return *it; 00060 }
|
|
|
|
00115 { 00116 bTofCalibBase bTof = getBTof(index); 00117 return bTof.getFcounter(pardex); 00118 }
|
|
|
|
00105 { 00106 bTofCalibBase bTof = getBTof(index); 00107 return bTof.getFleft(pardex); 00108 }
|
|
|
|
00110 { 00111 bTofCalibBase bTof = getBTof(index); 00112 return bTof.getFright(pardex); 00113 }
|
|
|
|
00120 { 00121 bTofCommonCalibBase bTofCom = getBTofCom(); 00122 return bTofCom.getOffset(pardex); 00123 }
|
|
|
|
00085 { 00086 bTofCalibBase bTof = getBTof(index); 00087 return bTof.getP1(pardex); 00088 }
|
|
|
|
00095 { 00096 bTofCalibBase bTof = getBTof(index); 00097 return bTof.getPoff1(pardex); 00098 }
|
|
|
|
00100 { 00101 bTofCalibBase bTof = getBTof(index); 00102 return bTof.getPoff2(pardex); 00103 }
|
|
|
|
00090 { 00091 bTofCalibBase bTof = getBTof(index); 00092 return bTof.getP2(pardex); 00093 }
|
|
|
|
00125 { 00126 bTofCommonCalibBase bTofCom = getBTofCom(); 00127 return bTofCom.getSigmaCorr(pardex); 00128 }
|
|
|
|
00080 { 00081 bTofCalibBase bTof = getBTof(index); 00082 return bTof.getSpeed(pardex); 00083 }
|
|
|
|
00190 { 00191 tofCalibInfoBase tofInfo = getTofInfo(); 00192 return tofInfo.getEndcap(index); 00193 }
|
|
|
|
00062 { 00063 std::vector<eTofCalibBase>::iterator it = m_eTofCalibData->begin(); 00064 for(int i=0;i!=cnt;i++,it++) 00065 { 00066 } 00067 return *it; 00068 }
|
|
|
|
00130 { 00131 eTofCalibBase eTof = getETof(index); 00132 return eTof.getAtten(pardex); 00133 }
|
|
|
|
00145 { 00146 eTofCalibBase eTof = getETof(index); 00147 return eTof.getFP(pardex); 00148 }
|
|
|
|
00140 { 00141 eTofCalibBase eTof = getETof(index); 00142 return eTof.getP(pardex); 00143 }
|
|
|
|
00135 { 00136 eTofCalibBase eTof = getETof(index); 00137 return eTof.getSpeed(pardex); 00138 }
|
|
|
|
00175 { 00176 tofCalibInfoBase tofInfo = getTofInfo(); 00177 return tofInfo.getMisLable(); 00178 }
|
|
|
|
00165 { 00166 tofCalibInfoBase tofInfo = getTofInfo(); 00167 return tofInfo.getQCorr(); 00168 }
|
|
|
|
00170 { 00171 tofCalibInfoBase tofInfo = getTofInfo(); 00172 return tofInfo.getQElec(); 00173 }
|
|
|
|
00150 { 00151 tofCalibInfoBase tofInfo = getTofInfo(); 00152 return tofInfo.getRunBegin(); 00153 }
|
|
|
|
00155 { 00156 tofCalibInfoBase tofInfo = getTofInfo(); 00157 return tofInfo.getRunEnd(); 00158 }
|
|
00052 {return m_runfrm;}
|
|
00052 {return m_runfrm;}
|
|
00053 {return m_runto;}
|
|
00053 {return m_runto;}
|
|
Following is intended for deep copy.
00051 {return m_serNo;}
|
|
Following is intended for deep copy.
00051 {return m_serNo;}
|
|
|
|
00070 { 00071 std::vector<tofCalibInfoBase>::iterator it = m_tofCalibInfoData->begin(); 00072 return *it; 00073 }
|
|
|
|
00160 { 00161 tofCalibInfoBase tofInfo = getTofInfo(); 00162 return tofInfo.getVersion(); 00163 }
|
|
00055 { m_runfrm = runfrm;}
|
|
00055 { m_runfrm = runfrm;}
|
|
00056 {m_runto = runto;}
|
|
00056 {m_runto = runto;}
|
|
00054 { m_serNo = ser;}
|
|
00054 { m_serNo = ser;}
|
|
Reimplemented from CalibData::CalibBase1. |
|
Reimplemented from CalibData::CalibBase1. 00032 { 00033 TofCalibData& other1 = dynamic_cast<TofCalibData& >(other); 00034 std::cout<<"========================================"<<"\n"<<"here is the update in the TofCalibData"<<"\n"<<"=================================================="<<std::endl; 00035 CalibBase1::update(other, log); 00036 delete m_bTofCalibData; 00037 m_bTofCalibData = new std::vector<bTofCalibBase>(*(other1.m_bTofCalibData)); 00038 delete m_bTofCommonCalibData; 00039 m_bTofCommonCalibData = new std::vector<bTofCommonCalibBase>(*(other1.m_bTofCommonCalibData)); 00040 delete m_eTofCalibData; 00041 m_eTofCalibData = new std::vector<eTofCalibBase>(*(other1.m_eTofCalibData)); 00042 delete m_tofCalibInfoData; 00043 m_tofCalibInfoData = new std::vector<tofCalibInfoBase>(*(other1.m_tofCalibInfoData)); 00044 return StatusCode::SUCCESS; 00045 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|