BOSS 6.6.4.p03
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.2 2010/08/20 02:02:02 huangb Exp $
2
3/** @class DedxSimData
4 * Implementation of DedxSimData calibration TCDS class
5 */
6
8#include "GaudiKernel/MsgStream.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 setHistNo(other1.gethistNo());
24 setRangeNo(other1.getRangeNo());
25 if (m_hist) delete m_hist;
26 if (m_hRange) delete m_hRange;
27
28 m_hist = new vector<TH1F>(*other1.m_hist);
29 m_hRange = new vector<double>(*other1.m_hRange);
30
31
32 std::cout<<"updata dedx Sim constnts complete================="<<std::endl;
33 return StatusCode::SUCCESS;
34 }
35
36 //set the Calibration Data
37 void DedxSimData::setHist(const vector<TH1F>* hist){
38 if(m_hist) delete m_hist;
39 m_hist = new vector<TH1F>(*hist);
40 }
41
42 void DedxSimData::setRange(const vector<double>* hRange){
43 if(m_hRange) delete m_hRange;
44 m_hRange = new vector<double>(*hRange);
45 }
46
47}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
int getRangeNo() const
Definition: DedxSimData.h:37
int gethistNo() const
Definition: DedxSimData.h:39
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
Definition: DedxSimData.cxx:13
void setHistNo(const int No)
Definition: DedxSimData.h:42
void setRange(const vector< double > *hRange)
Definition: DedxSimData.cxx:42
void setHist(const vector< TH1F > *hist)
Definition: DedxSimData.cxx:37
void setRangeNo(const int No)
Definition: DedxSimData.h:46