BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::EmcCalibData Class Reference

#include <EmcCalibData.h>

+ Inheritance diagram for CalibData::EmcCalibData:

Public Member Functions

 EmcCalibData ()
 
virtual ~EmcCalibData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
void setDigiCalibConst (const vector< double > *DigiCalibConst)
 
void setIxtalNumber (const vector< int > *IxtalNumber)
 
double getDigiCalibConst (int No) const
 
double getIxtalNumber (int No) const
 
int getDigiCalibConstNo ()
 
int getIxtalNumberNo ()
 
- 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 19 of file EmcCalibData.h.

Constructor & Destructor Documentation

◆ EmcCalibData()

EmcCalibData::EmcCalibData ( )

Definition at line 8 of file EmcCalibData.cxx.

8:m_DigiCalibConst(0),m_IxtalNumber(0){}

◆ ~EmcCalibData()

virtual CalibData::EmcCalibData::~EmcCalibData ( )
inlinevirtual

Definition at line 23 of file EmcCalibData.h.

23 {
24 if(m_DigiCalibConst) delete m_DigiCalibConst;
25 if(m_IxtalNumber) delete m_IxtalNumber;
26 }

Member Function Documentation

◆ classID()

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

Definition at line 32 of file EmcCalibData.h.

32{ return CLID_Calib_EmcCal; }
const CLID CLID_Calib_EmcCal
Definition: CalibModel.h:47

Referenced by clID().

◆ clID()

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

Definition at line 30 of file EmcCalibData.h.

30{ return classID(); }
static const CLID & classID()
Definition: EmcCalibData.h:32

◆ getDigiCalibConst()

double CalibData::EmcCalibData::getDigiCalibConst ( int  No) const
inline

Definition at line 47 of file EmcCalibData.h.

47{ return *((m_DigiCalibConst->begin())+No);}

◆ getDigiCalibConstNo()

int CalibData::EmcCalibData::getDigiCalibConstNo ( )
inline

Definition at line 52 of file EmcCalibData.h.

52{ return m_DigiCalibConst -> size();}

◆ getIxtalNumber()

double CalibData::EmcCalibData::getIxtalNumber ( int  No) const
inline

Definition at line 49 of file EmcCalibData.h.

49{ return *((m_IxtalNumber->begin())+No);}

◆ getIxtalNumberNo()

int CalibData::EmcCalibData::getIxtalNumberNo ( )
inline

Definition at line 55 of file EmcCalibData.h.

55{ return m_IxtalNumber -> size();}

◆ setDigiCalibConst()

void EmcCalibData::setDigiCalibConst ( const vector< double > *  DigiCalibConst)

Definition at line 27 of file EmcCalibData.cxx.

28 { if(m_DigiCalibConst) delete m_DigiCalibConst;
29 m_DigiCalibConst = new vector<double>(*DigiCalibConst);
30 }

Referenced by UseEmc::execute().

◆ setIxtalNumber()

void EmcCalibData::setIxtalNumber ( const vector< int > *  IxtalNumber)

Definition at line 32 of file EmcCalibData.cxx.

33 { if(m_IxtalNumber) delete m_IxtalNumber;
34 m_IxtalNumber = new vector<int>(*IxtalNumber);
35 }

◆ update()

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

Reimplemented from CalibData::CalibBase1.

Definition at line 10 of file EmcCalibData.cxx.

11 {
12 EmcCalibData& other1 = dynamic_cast<EmcCalibData& >(other);
13 std::cout<<"========================================"<<"\n"
14 <<"here is the update in the EmcCalibData"<<"\n"
15 <<"=================================================="<<std::endl;
16 CalibBase1::update(other, log);
17 //set the Calibration Data
18 if(m_DigiCalibConst) delete m_DigiCalibConst;
19 if(m_IxtalNumber) delete m_IxtalNumber;
20
21 m_DigiCalibConst = new vector<double>(*other1.m_DigiCalibConst);
22 m_IxtalNumber = new vector<int>(*other1.m_IxtalNumber);
23 return StatusCode::SUCCESS;
24 }
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

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