BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::CalibBase Class Reference

#include <CalibBase.h>

+ Inheritance diagram for CalibData::CalibBase:

Public Member Functions

 CalibBase ()
 
 CalibBase (const CalibBase &obj)
 
virtual StatusCode update (CalibBase &obj, MsgStream *)
 Following is intended for deep copy.
 
virtual ~CalibBase ()
 
virtual const CLID & clID () const
 Class ID of this instance.
 
virtual int getSerNo () const
 Check if the data object has a well defined validity range.
 

Static Public Member Functions

static const CLID & classID ()
 Class ID of this class.
 

Protected Member Functions

void setSerNo (int ser)
 

Protected Attributes

int m_serNo
 Serial number of corresponding metadata row.
 

Friends

class XmlBaseCnv
 
class RootBaseCnv
 

Detailed Description

Constructor & Destructor Documentation

◆ CalibBase() [1/2]

CalibData::CalibBase::CalibBase ( )

◆ CalibBase() [2/2]

CalibBase::CalibBase ( const CalibBase obj)

Definition at line 22 of file CalibBase.cxx.

22 :
23 DataObject( (DataObject&) other) {
24 // m_validSince = other.m_validSince;
25 // m_validTill = other.m_validTill;
26 m_serNo = other.m_serNo;
27 }
int m_serNo
Serial number of corresponding metadata row.
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

◆ ~CalibBase()

CalibBase::~CalibBase ( )
virtual

Definition at line 29 of file CalibBase.cxx.

29 {
30 /* delete m_validSince;
31 delete m_validTill;*/
32 }

Member Function Documentation

◆ classID()

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

Class ID of this class.

Definition at line 51 of file Calibration/CalibData/CalibData-00-01-24/CalibData/CalibBase.h.

51{ return CLID_Calib_CalibBase; };
const CLID CLID_Calib_CalibBase
Definition: CalibModel.h:33

Referenced by clID().

◆ clID()

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

Class ID of this instance.

Definition at line 48 of file Calibration/CalibData/CalibData-00-01-24/CalibData/CalibBase.h.

48{ return classID(); }
static const CLID & classID()
Class ID of this class.

◆ getSerNo()

virtual int CalibData::CalibBase::getSerNo ( ) const
inlinevirtual

Check if the data object has a well defined validity range.

Get serial number of metadata row corresponding to calibration. Can be used by clients to determine if object has been updated since last access.

Definition at line 84 of file Calibration/CalibData/CalibData-00-01-24/CalibData/CalibBase.h.

84{return m_serNo;}

◆ setSerNo()

void CalibData::CalibBase::setSerNo ( int  ser)
inlineprotected

◆ update()

StatusCode CalibBase::update ( CalibBase obj,
MsgStream *   
)
virtual

Following is intended for deep copy.

Definition at line 35 of file CalibBase.cxx.

35 {
36 /*
37 delete m_validSince;
38 delete m_validTill;
39
40 m_validTill = new CalibData::CalibTime(obj.validTill() );
41
42 m_validSince = new CalibData::CalibTime(obj.validSince() );*/
43 m_serNo = obj.m_serNo;
44 return StatusCode::SUCCESS;
45 }

Referenced by CalibBase().

Friends And Related Function Documentation

◆ RootBaseCnv

friend class RootBaseCnv
friend

◆ XmlBaseCnv

friend class XmlBaseCnv
friend

Member Data Documentation

◆ m_serNo

int CalibData::CalibBase::m_serNo
protected

Serial number of corresponding metadata row.

Definition at line 93 of file Calibration/CalibData/CalibData-00-01-24/CalibData/CalibBase.h.

Referenced by CalibBase(), getSerNo(), setSerNo(), and update().


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