/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Calibration/CalibData/CalibData-00-01-18/src/Dedx/DedxSimData.cxx

Go to the documentation of this file.
00001 // $Header: /bes/bes/BossCvs/Calibration/CalibData/src/Dedx/DedxSimData.cxx,v 1.3 2016/06/16 03:16:14 zhaog Exp $
00002 
00007 #include "CalibData/Dedx/DedxSimData.h"
00008 #include "GaudiKernel/MsgStream.h"
00009 #include "CalibData/Mdc/MdcCalStruct.h"
00010 namespace CalibData {
00011  
00012  
00013     StatusCode DedxSimData::update(CalibBase1& other, MsgStream* log)
00014     {
00015         DedxSimData& other1 = dynamic_cast<DedxSimData& >(other);
00016         std::cout << "========================================"
00017                   << "\n"
00018                   << "here is the update in the DedxSimData"
00019                   << "\n"
00020                   << "=================================================="
00021                   << std::endl;
00022         CalibBase1::update(other, log);
00023         setVersion(other1.getVersion());
00024         setHistNo(other1.gethistNo());
00025         setRangeNo(other1.getRangeNo());
00026         if (m_hist) delete m_hist;
00027         if (m_hRange) delete m_hRange;
00028 
00029         m_hist = new vector<TH1F>(*other1.m_hist);
00030         m_hRange = new vector<double>(*other1.m_hRange);
00031  
00032   
00033         std::cout<<"updata dedx Sim constnts complete================="<<std::endl;
00034         return StatusCode::SUCCESS;  
00035     }   
00036                                         
00037     //set the Calibration Data
00038     void DedxSimData::setHist(const vector<TH1F>* hist){
00039         if(m_hist) delete m_hist;
00040         m_hist = new vector<TH1F>(*hist);
00041     }
00042 
00043     void DedxSimData::setRange(const vector<double>* hRange){
00044         if(m_hRange) delete m_hRange;
00045         m_hRange = new vector<double>(*hRange);
00046     }
00047 
00048 }

Generated on Tue Nov 29 22:57:48 2016 for BOSS_7.0.2 by  doxygen 1.4.7