BOSS 7.1.0
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 getVersion () const
 
int getRangeNo () const
 
double getRange (int i) const
 
int getThetaNo () const
 
int gethistNo () const
 
TH1F getHist (int i) const
 
std::vector< TH1F > * getHist () const
 
std::vector< double > * getRange () const
 
void setVersion (const int ver)
 
void setHistNo (const int No)
 
void setHist (const vector< TH1F > *hist)
 
void setRange (const vector< double > *hRange)
 
void setRangeNo (const int No)
 
void setThetaNo (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 StatusCode update (CalibBase1 &obj, MsgStream *)
 
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() [1/2]

std::vector< TH1F > * CalibData::DedxSimData::getHist ( ) const
inline

Definition at line 43 of file DedxSimData.h.

43{return m_hist;}

◆ getHist() [2/2]

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

Definition at line 42 of file DedxSimData.h.

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

◆ gethistNo()

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

Definition at line 41 of file DedxSimData.h.

41{return m_histNo;}

Referenced by update().

◆ getRange() [1/2]

std::vector< double > * CalibData::DedxSimData::getRange ( ) const
inline

Definition at line 44 of file DedxSimData.h.

44{return m_hRange;}

◆ getRange() [2/2]

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

Definition at line 39 of file DedxSimData.h.

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

◆ getRangeNo()

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

Definition at line 38 of file DedxSimData.h.

38{ return m_bgNo; }

Referenced by update().

◆ getThetaNo()

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

Definition at line 40 of file DedxSimData.h.

40{ return m_thetaNo; }

◆ getVersion()

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

Definition at line 37 of file DedxSimData.h.

37{ return m_ver; }

Referenced by update().

◆ setHist()

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

Definition at line 38 of file DedxSimData.cxx.

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

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

◆ setHistNo()

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

Definition at line 47 of file DedxSimData.h.

47{m_histNo=No;}

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

◆ setRange()

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

Definition at line 43 of file DedxSimData.cxx.

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

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

◆ setRangeNo()

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

Definition at line 51 of file DedxSimData.h.

51{ m_bgNo = No; }

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

◆ setThetaNo()

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

Definition at line 52 of file DedxSimData.h.

52{ m_thetaNo = No; }

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

◆ setVersion()

void CalibData::DedxSimData::setVersion ( const int  ver)
inline

Definition at line 46 of file DedxSimData.h.

46{ m_ver = ver; }

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 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 }
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
void setHistNo(const int No)
Definition: DedxSimData.h:47
void setRangeNo(const int No)
Definition: DedxSimData.h:51
void setVersion(const int ver)
Definition: DedxSimData.h:46
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

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