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

#include <EsTimeCalibData.h>

+ Inheritance diagram for CalibData::EsTimeCalibData:

Public Member Functions

 EsTimeCalibData ()
 
virtual ~EsTimeCalibData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
void setTestCalibConst (const vector< double > *TestCalibConst)
 
void setToffsetb (const double toffsetb)
 
void setToffsete (const double toffsete)
 
void setBunchTime (const int bunchtime)
 
double getTestCalibConst (int No) const
 
int getTestCalibConstNo ()
 
double getToffsetb () const
 
double getToffsete () const
 
double getBunchTime () const
 
- 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 18 of file EsTimeCalibData.h.

Constructor & Destructor Documentation

◆ EsTimeCalibData()

EsTimeCalibData::EsTimeCalibData ( )

Definition at line 8 of file EsTimeCalibData.cxx.

8:m_TestCalibConst(0){}

◆ ~EsTimeCalibData()

virtual CalibData::EsTimeCalibData::~EsTimeCalibData ( )
inlinevirtual

Definition at line 22 of file EsTimeCalibData.h.

22 {
23 if(m_TestCalibConst) delete m_TestCalibConst;
24 }

Member Function Documentation

◆ classID()

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

Definition at line 29 of file EsTimeCalibData.h.

29{ return CLID_Calib_EsTimeCal; }
const CLID CLID_Calib_EsTimeCal
Definition CalibModel.h:51

Referenced by clID().

◆ clID()

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

Definition at line 27 of file EsTimeCalibData.h.

27{ return classID(); }
static const CLID & classID()

◆ getBunchTime()

double CalibData::EsTimeCalibData::getBunchTime ( ) const
inline

Definition at line 48 of file EsTimeCalibData.h.

48{ return m_bunchtime;}

◆ getTestCalibConst()

double CalibData::EsTimeCalibData::getTestCalibConst ( int No) const
inline

Definition at line 40 of file EsTimeCalibData.h.

40{ return *((m_TestCalibConst->begin())+No);}

◆ getTestCalibConstNo()

int CalibData::EsTimeCalibData::getTestCalibConstNo ( )
inline

Definition at line 42 of file EsTimeCalibData.h.

42{ return m_TestCalibConst -> size();}

◆ getToffsetb()

double CalibData::EsTimeCalibData::getToffsetb ( ) const
inline

Definition at line 44 of file EsTimeCalibData.h.

44{ return m_toffsetb;}

◆ getToffsete()

double CalibData::EsTimeCalibData::getToffsete ( ) const
inline

Definition at line 46 of file EsTimeCalibData.h.

46{ return m_toffsete;}

◆ setBunchTime()

void EsTimeCalibData::setBunchTime ( const int bunchtime)

Definition at line 42 of file EsTimeCalibData.cxx.

42 {
43 m_bunchtime=bunchtime;
44 }

Referenced by RootEsTimeCalibDataCnv::i_createObj(), and TreeEsTimeCalibDataCnv::i_createObj().

◆ setTestCalibConst()

void EsTimeCalibData::setTestCalibConst ( const vector< double > * TestCalibConst)

Definition at line 26 of file EsTimeCalibData.cxx.

27 { if(m_TestCalibConst) delete m_TestCalibConst;
28 m_TestCalibConst = new vector<double>(*TestCalibConst);
29 }

◆ setToffsetb()

void EsTimeCalibData::setToffsetb ( const double toffsetb)

Definition at line 32 of file EsTimeCalibData.cxx.

32 {
33 m_toffsetb=toffset;
34 }

Referenced by RootEsTimeCalibDataCnv::i_createObj(), and TreeEsTimeCalibDataCnv::i_createObj().

◆ setToffsete()

void EsTimeCalibData::setToffsete ( const double toffsete)

Definition at line 36 of file EsTimeCalibData.cxx.

36 {
37 m_toffsete=toffset;
38 }

Referenced by RootEsTimeCalibDataCnv::i_createObj(), and TreeEsTimeCalibDataCnv::i_createObj().

◆ update()

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

Reimplemented from CalibData::CalibBase1.

Definition at line 9 of file EsTimeCalibData.cxx.

10 {
11 EsTimeCalibData& other1 = dynamic_cast<EsTimeCalibData& >(other);
12 std::cout<<"========================================"<<"\n"
13 <<"here is the update in the EsTimeCalibData"<<"\n"
14 <<"=================================================="<<std::endl;
15 CalibBase1::update(other, log);
16 //set the Calibration Data
17 if(m_TestCalibConst) delete m_TestCalibConst;
18 m_TestCalibConst = new vector<double>(*other1.m_TestCalibConst);
19 m_toffsetb = other1.m_toffsetb;
20 m_toffsete = other1.m_toffsete;
21 m_bunchtime = other1.m_bunchtime;
22 return StatusCode::SUCCESS;
23 }
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Index other(Index i, Index j)

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