BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcCalibData.cxx
Go to the documentation of this file.
1/** @class EmcCalibData
2 * Implementation of EmcCalibData calibration TCDS class
3 */
4
6#include "GaudiKernel/MsgStream.h"
7namespace CalibData {
8 EmcCalibData::EmcCalibData():m_DigiCalibConst(0),m_IxtalNumber(0){}
9
10 StatusCode EmcCalibData::update(CalibBase1& other, MsgStream* log)
11 {
12 EmcCalibData& other1 = dynamic_cast<EmcCalibData& >(other);
13 std::cout<<"========================================"<<"\n"
14 <<"here is the update in the EmcCalibData"<<"\n"
15 <<"=================================================="<<std::endl;
16 CalibBase1::update(other, log);
17 //set the Calibration Data
18 if(m_DigiCalibConst) delete m_DigiCalibConst;
19 if(m_IxtalNumber) delete m_IxtalNumber;
20
21 m_DigiCalibConst = new vector<double>(*other1.m_DigiCalibConst);
22 m_IxtalNumber = new vector<int>(*other1.m_IxtalNumber);
23 return StatusCode::SUCCESS;
24 }
25
26 //set the Calibdata of Emc
27 void EmcCalibData::setDigiCalibConst(const vector<double>* DigiCalibConst)
28 { if(m_DigiCalibConst) delete m_DigiCalibConst;
29 m_DigiCalibConst = new vector<double>(*DigiCalibConst);
30 }
31
32 void EmcCalibData::setIxtalNumber(const vector<int>* IxtalNumber)
33 { if(m_IxtalNumber) delete m_IxtalNumber;
34 m_IxtalNumber = new vector<int>(*IxtalNumber);
35 }
36
37
38}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
void setDigiCalibConst(const vector< double > *DigiCalibConst)
void setIxtalNumber(const vector< int > *IxtalNumber)