CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
EsTimeCalibData.cxx
Go to the documentation of this file.
1/** @class EsTimeCalibData
2 * Implementation of EsTimeCalibData calibration TCDS class
3 */
4
6#include "GaudiKernel/MsgStream.h"
7namespace CalibData {
8 EsTimeCalibData::EsTimeCalibData():m_TestCalibConst(0){}
9 StatusCode EsTimeCalibData::update(CalibBase1& other, MsgStream* log)
10 {
11 EsTimeCalibData& other1 = dynamic_cast<EsTimeCalibData& >(other);
12 std::cout<<"========================================"<<"\n"
13 <<"here is the update in the EsTimeCalibData"<<"\n"
14 <<"=================================================="<<std::endl;
15 CalibBase1::update(other, log);
16 //set the Calibration Data
17 if(m_TestCalibConst) delete m_TestCalibConst;
18 m_TestCalibConst = new vector<double>(*other1.m_TestCalibConst);
19 m_toffsetb = other1.m_toffsetb;
20 m_toffsete = other1.m_toffsete;
21 m_bunchtime = other1.m_bunchtime;
22 return StatusCode::SUCCESS;
23 }
24
25 //set the Calibdata of EsTime
26 void EsTimeCalibData::setTestCalibConst(const vector<double>* TestCalibConst)
27 { if(m_TestCalibConst) delete m_TestCalibConst;
28 m_TestCalibConst = new vector<double>(*TestCalibConst);
29 }
30
31 //set time of offset
32 void EsTimeCalibData::setToffsetb(const double toffset){
33 m_toffsetb=toffset;
34 }
35
36 void EsTimeCalibData::setToffsete(const double toffset){
37 m_toffsete=toffset;
38 }
39
40
41 //set the time interval of each bunch
42 void EsTimeCalibData::setBunchTime(const int bunchtime){
43 m_bunchtime=bunchtime;
44 }
45}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
void setToffsetb(const double toffsetb)
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
void setBunchTime(const int bunchtime)
void setTestCalibConst(const vector< double > *TestCalibConst)
void setToffsete(const double toffsete)