CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::DedxSimData Class Reference

#include <DedxSimData.h>

+ Inheritance diagram for CalibData::DedxSimData:

Public Member Functions

 DedxSimData ()
 
virtual ~DedxSimData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
int getRangeNo () const
 
double getRange (int i) const
 
int gethistNo () const
 
TH1F getHist (int i) const
 
void setHistNo (const int No)
 
void setHist (const vector< TH1F > *hist)
 
void setRange (const vector< double > *hRange)
 
void setRangeNo (const int No)
 
- Public Member Functions inherited from CalibData::CalibBase1
 CalibBase1 ()
 
 CalibBase1 (int serNo, int runfrm, int runto)
 
 CalibBase1 (int runfrm, int runto)
 
 CalibBase1 (const CalibBase1 &obj)
 
virtual int getSerNo () const
 Following is intended for deep copy.
 
virtual int getrunfrm () const
 
virtual int getrunto () const
 
void setSerNo (int ser)
 
void setrunfrm (int runfrm)
 
void setrunto (int runto)
 

Static Public Member Functions

static const CLID & classID ()
 

Additional Inherited Members

- Protected Attributes inherited from CalibData::CalibBase1
int m_serNo
 
int m_runfrm
 
int m_runto
 

Detailed Description

Definition at line 20 of file DedxSimData.h.

Constructor & Destructor Documentation

◆ DedxSimData()

CalibData::DedxSimData::DedxSimData ( )
inline

Definition at line 23 of file DedxSimData.h.

23 {
24 m_hist=0;
25 m_hRange=0;
26 };

◆ ~DedxSimData()

virtual CalibData::DedxSimData::~DedxSimData ( )
inlinevirtual

Definition at line 28 of file DedxSimData.h.

28{}

Member Function Documentation

◆ classID()

static const CLID & CalibData::DedxSimData::classID ( )
inlinestatic

Definition at line 33 of file DedxSimData.h.

33{ return CLID_Dedx_Sim; }
const CLID CLID_Dedx_Sim
Definition CalibModel.h:61

Referenced by clID().

◆ clID()

virtual const CLID & CalibData::DedxSimData::clID ( ) const
inlinevirtual

Definition at line 31 of file DedxSimData.h.

31{ return classID(); }
static const CLID & classID()
Definition DedxSimData.h:33

◆ getHist()

TH1F CalibData::DedxSimData::getHist ( int i) const
inline

Definition at line 40 of file DedxSimData.h.

40{return *((m_hist->begin())+i);}

◆ gethistNo()

int CalibData::DedxSimData::gethistNo ( ) const
inline

Definition at line 39 of file DedxSimData.h.

39{return m_histNo;}

Referenced by update().

◆ getRange()

double CalibData::DedxSimData::getRange ( int i) const
inline

Definition at line 38 of file DedxSimData.h.

38{return *((m_hRange->begin())+i);}

◆ getRangeNo()

int CalibData::DedxSimData::getRangeNo ( ) const
inline

Definition at line 37 of file DedxSimData.h.

37{ return m_bgNo; }

Referenced by update().

◆ setHist()

void DedxSimData::setHist ( const vector< TH1F > * hist)

Definition at line 37 of file DedxSimData.cxx.

37 {
38 if(m_hist) delete m_hist;
39 m_hist = new vector<TH1F>(*hist);
40 }

Referenced by RootDedxSimDataCnv::i_createObj(), and TreeDedxSimDataCnv::i_createObj().

◆ setHistNo()

void CalibData::DedxSimData::setHistNo ( const int No)
inline

Definition at line 42 of file DedxSimData.h.

42{m_histNo=No;}

Referenced by RootDedxSimDataCnv::i_createObj(), TreeDedxSimDataCnv::i_createObj(), and update().

◆ setRange()

void DedxSimData::setRange ( const vector< double > * hRange)

Definition at line 42 of file DedxSimData.cxx.

42 {
43 if(m_hRange) delete m_hRange;
44 m_hRange = new vector<double>(*hRange);
45 }

Referenced by RootDedxSimDataCnv::i_createObj(), and TreeDedxSimDataCnv::i_createObj().

◆ setRangeNo()

void CalibData::DedxSimData::setRangeNo ( const int No)
inline

Definition at line 46 of file DedxSimData.h.

46{ m_bgNo = No; }

Referenced by RootDedxSimDataCnv::i_createObj(), TreeDedxSimDataCnv::i_createObj(), and update().

◆ update()

StatusCode DedxSimData::update ( CalibBase1 & other,
MsgStream * log )
virtual

Reimplemented from CalibData::CalibBase1.

Definition at line 13 of file DedxSimData.cxx.

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 }
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
void setHistNo(const int No)
Definition DedxSimData.h:42
void setRangeNo(const int No)
Definition DedxSimData.h:46
Index other(Index i, Index j)

The documentation for this class was generated from the following files: