BOSS 8.0.0
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
2// 03:16:14 zhaog Exp $
3
4/** @class DedxSimData
5 * Implementation of DedxSimData calibration TCDS class
6 */
7
8#include "CalibData/Dedx/DedxSimData.h"
9#include "CalibData/Mdc/MdcCalStruct.h"
10#include "GaudiKernel/MsgStream.h"
11namespace CalibData {
12
13 StatusCode DedxSimData::update( CalibBase1& other, MsgStream* log ) {
14 DedxSimData& other1 = dynamic_cast<DedxSimData&>( other );
15 std::cout << "========================================"
16 << "\n"
17 << "here is the update in the DedxSimData"
18 << "\n"
19 << "==================================================" << std::endl;
20 CalibBase1::update( other, log );
21 setVersion( other1.getVersion() );
22 setHistNo( other1.gethistNo() );
23 setRangeNo( other1.getRangeNo() );
24 if ( m_hist ) delete m_hist;
25 if ( m_hRange ) delete m_hRange;
26
27 m_hist = new vector<TH1F>( *other1.m_hist );
28 m_hRange = new vector<double>( *other1.m_hRange );
29
30 std::cout << "updata dedx Sim constnts complete=================" << std::endl;
31 return StatusCode::SUCCESS;
32 }
33
34 // set the Calibration Data
35 void DedxSimData::setHist( const vector<TH1F>* hist ) {
36 if ( m_hist ) delete m_hist;
37 m_hist = new vector<TH1F>( *hist );
38 }
39
40 void DedxSimData::setRange( const vector<double>* hRange ) {
41 if ( m_hRange ) delete m_hRange;
42 m_hRange = new vector<double>( *hRange );
43 }
44
45} // namespace CalibData
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
virtual StatusCode update(CalibBase1 &other, MsgStream *log)
void setHist(const vector< TH1F > *hist)
void setRange(const vector< double > *hRange)