BOSS 7.0.2
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 ()
 
 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)
 
 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

◆ EmcCalibData() [1/2]

EmcCalibData::EmcCalibData ( )

Definition at line 8 of file EmcCalibData.cxx.

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

◆ ~EmcCalibData() [1/2]

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

Definition at line 23 of file Calibration/CalibData/CalibData-00-01-18/CalibData/Emc/EmcCalibData.h.

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

◆ EmcCalibData() [2/2]

CalibData::EmcCalibData::EmcCalibData ( )

◆ ~EmcCalibData() [2/2]

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

Definition at line 23 of file InstallArea/include/CalibData/CalibData/Emc/EmcCalibData.h.

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

Member Function Documentation

◆ classID() [1/2]

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

◆ classID() [2/2]

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

◆ clID() [1/2]

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

◆ clID() [2/2]

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

Definition at line 30 of file InstallArea/include/CalibData/CalibData/Emc/EmcCalibData.h.

30{ return classID(); }

◆ getDigiCalibConst() [1/2]

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

Definition at line 47 of file Calibration/CalibData/CalibData-00-01-18/CalibData/Emc/EmcCalibData.h.

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

◆ getDigiCalibConst() [2/2]

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

Definition at line 47 of file InstallArea/include/CalibData/CalibData/Emc/EmcCalibData.h.

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

◆ getDigiCalibConstNo() [1/2]

int CalibData::EmcCalibData::getDigiCalibConstNo ( )
inline

Definition at line 52 of file Calibration/CalibData/CalibData-00-01-18/CalibData/Emc/EmcCalibData.h.

52{ return m_DigiCalibConst -> size();}

◆ getDigiCalibConstNo() [2/2]

int CalibData::EmcCalibData::getDigiCalibConstNo ( )
inline

Definition at line 52 of file InstallArea/include/CalibData/CalibData/Emc/EmcCalibData.h.

52{ return m_DigiCalibConst -> size();}

◆ getIxtalNumber() [1/2]

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

Definition at line 49 of file Calibration/CalibData/CalibData-00-01-18/CalibData/Emc/EmcCalibData.h.

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

◆ getIxtalNumber() [2/2]

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

Definition at line 49 of file InstallArea/include/CalibData/CalibData/Emc/EmcCalibData.h.

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

◆ getIxtalNumberNo() [1/2]

int CalibData::EmcCalibData::getIxtalNumberNo ( )
inline

Definition at line 55 of file Calibration/CalibData/CalibData-00-01-18/CalibData/Emc/EmcCalibData.h.

55{ return m_IxtalNumber -> size();}

◆ getIxtalNumberNo() [2/2]

int CalibData::EmcCalibData::getIxtalNumberNo ( )
inline

Definition at line 55 of file InstallArea/include/CalibData/CalibData/Emc/EmcCalibData.h.

55{ return m_IxtalNumber -> size();}

◆ setDigiCalibConst() [1/2]

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

◆ setDigiCalibConst() [2/2]

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

◆ setIxtalNumber() [1/2]

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 }

◆ setIxtalNumber() [2/2]

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

◆ update() [1/2]

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

◆ update() [2/2]

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

Reimplemented from CalibData::CalibBase1.


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