BOSS 7.0.5
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
 
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)
 
 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
 
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)
 
 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 ()
 
static const CLID & classID ()
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ DedxSimData() [1/2]

CalibData::DedxSimData::DedxSimData ( )
inline

Definition at line 23 of file Calibration/CalibData/CalibData-00-01-22/CalibData/Dedx/DedxSimData.h.

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

◆ ~DedxSimData() [1/2]

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

◆ DedxSimData() [2/2]

CalibData::DedxSimData::DedxSimData ( )
inline

Definition at line 23 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

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

◆ ~DedxSimData() [2/2]

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

Member Function Documentation

◆ classID() [1/2]

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

◆ classID() [2/2]

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

◆ clID() [1/2]

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

◆ clID() [2/2]

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

Definition at line 31 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

31{ return classID(); }

◆ getHist() [1/2]

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

Definition at line 42 of file Calibration/CalibData/CalibData-00-01-22/CalibData/Dedx/DedxSimData.h.

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

◆ getHist() [2/2]

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

Definition at line 42 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

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

◆ gethistNo() [1/2]

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

Definition at line 41 of file Calibration/CalibData/CalibData-00-01-22/CalibData/Dedx/DedxSimData.h.

41{return m_histNo;}

Referenced by update().

◆ gethistNo() [2/2]

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

Definition at line 41 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

41{return m_histNo;}

◆ getRange() [1/2]

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

Definition at line 39 of file Calibration/CalibData/CalibData-00-01-22/CalibData/Dedx/DedxSimData.h.

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

◆ getRange() [2/2]

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

Definition at line 39 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

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

◆ getRangeNo() [1/2]

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

Definition at line 38 of file Calibration/CalibData/CalibData-00-01-22/CalibData/Dedx/DedxSimData.h.

38{ return m_bgNo; }

Referenced by update().

◆ getRangeNo() [2/2]

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

Definition at line 38 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

38{ return m_bgNo; }

◆ getThetaNo() [1/2]

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

Definition at line 40 of file Calibration/CalibData/CalibData-00-01-22/CalibData/Dedx/DedxSimData.h.

40{ return m_thetaNo; }

◆ getThetaNo() [2/2]

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

Definition at line 40 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

40{ return m_thetaNo; }

◆ getVersion() [1/2]

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

Definition at line 37 of file Calibration/CalibData/CalibData-00-01-22/CalibData/Dedx/DedxSimData.h.

37{ return m_ver; }

Referenced by update().

◆ getVersion() [2/2]

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

Definition at line 37 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

37{ return m_ver; }

◆ setHist() [1/2]

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().

◆ setHist() [2/2]

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

◆ setHistNo() [1/2]

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

◆ setHistNo() [2/2]

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

Definition at line 45 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

45{m_histNo=No;}

◆ setRange() [1/2]

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().

◆ setRange() [2/2]

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

◆ setRangeNo() [1/2]

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

◆ setRangeNo() [2/2]

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

Definition at line 49 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

49{ m_bgNo = No; }

◆ setThetaNo() [1/2]

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

◆ setThetaNo() [2/2]

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

Definition at line 50 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

50{ m_thetaNo = No; }

◆ setVersion() [1/2]

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

◆ setVersion() [2/2]

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

Definition at line 44 of file InstallArea/include/CalibData/CalibData/Dedx/DedxSimData.h.

44{ m_ver = ver; }

◆ update() [1/2]

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
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

◆ update() [2/2]

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

Reimplemented from CalibData::CalibBase1.


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