BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
DedxSimData.cxx
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/src/Dedx/DedxSimData.cxx,v 1.3 2016/06/16 03:16:14 zhaog Exp $
2
3/** @class DedxSimData
4 * Implementation of DedxSimData calibration TCDS class
5 */
6
7#include "CalibData/Dedx/DedxSimData.h"
8#include "GaudiKernel/MsgStream.h"
9#include "CalibData/Mdc/MdcCalStruct.h"
10namespace CalibData {
11
12
13 StatusCode DedxSimData::update(CalibBase1& other, MsgStream* log)
14 {
15 DedxSimData& other1 = dynamic_cast<DedxSimData& >(other);
16 std::cout << "========================================"
17 << "\n"
18 << "here is the update in the DedxSimData"
19 << "\n"
20 << "=================================================="
21 << std::endl;
22 CalibBase1::update(other, log);
23 setVersion(other1.getVersion());
24 setHistNo(other1.gethistNo());
25 setRangeNo(other1.getRangeNo());
26 if (m_hist) delete m_hist;
27 if (m_hRange) delete m_hRange;
28
29 m_hist = new vector<TH1F>(*other1.m_hist);
30 m_hRange = new vector<double>(*other1.m_hRange);
31
32
33 std::cout<<"updata dedx Sim constnts complete================="<<std::endl;
34 return StatusCode::SUCCESS;
35 }
36
37 //set the Calibration Data
38 void DedxSimData::setHist(const vector<TH1F>* hist){
39 if(m_hist) delete m_hist;
40 m_hist = new vector<TH1F>(*hist);
41 }
42
43 void DedxSimData::setRange(const vector<double>* hRange){
44 if(m_hRange) delete m_hRange;
45 m_hRange = new vector<double>(*hRange);
46 }
47
48}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
Definition: DedxSimData.cxx:13
void setRange(const vector< double > *hRange)
Definition: DedxSimData.cxx:43
void setHist(const vector< TH1F > *hist)
Definition: DedxSimData.cxx:38