BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::TofElecData Class Reference

#include <TofElecData.h>

+ Inheritance diagram for CalibData::TofElecData:

Public Member Functions

 TofElecData ()
 
 TofElecData (std::vector< BarrelElec > *bTofCal, std::vector< EndcapElec > *eTofCal)
 
void sim (TofElecData *other1)
 
virtual ~TofElecData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
BarrelElec getBTof (int cnt) const
 
EndcapElec getETof (int cnt) const
 
 TofElecData ()
 
 TofElecData (std::vector< BarrelElec > *bTofCal, std::vector< EndcapElec > *eTofCal)
 
void sim (TofElecData *other1)
 
virtual ~TofElecData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
BarrelElec getBTof (int cnt) const
 
EndcapElec getETof (int cnt) 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 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

◆ TofElecData() [1/4]

CalibData::TofElecData::TofElecData ( )
inline

Definition at line 21 of file Calibration/CalibData/CalibData-00-01-22/CalibData/Tof/TofElecData.h.

21 {m_bTofElecData=0;
22 m_eTofElecData=0;};

◆ TofElecData() [2/4]

CalibData::TofElecData::TofElecData ( std::vector< BarrelElec > *  bTofCal,
std::vector< EndcapElec > *  eTofCal 
)

Definition at line 12 of file TofElecData.cxx.

12 {
13 if(bTofCal){
14 m_bTofElecData = new std::vector<BarrelElec>(*bTofCal);
15 }
16 if(eTofCal){
17 m_eTofElecData = new std::vector<EndcapElec>(*eTofCal);
18 }
19 }

◆ ~TofElecData() [1/2]

virtual CalibData::TofElecData::~TofElecData ( )
inlinevirtual

Definition at line 26 of file Calibration/CalibData/CalibData-00-01-22/CalibData/Tof/TofElecData.h.

26 {
27 delete m_bTofElecData;
28 delete m_eTofElecData;
29 }

◆ TofElecData() [3/4]

CalibData::TofElecData::TofElecData ( )
inline

Definition at line 21 of file InstallArea/include/CalibData/CalibData/Tof/TofElecData.h.

21 {m_bTofElecData=0;
22 m_eTofElecData=0;};

◆ TofElecData() [4/4]

CalibData::TofElecData::TofElecData ( std::vector< BarrelElec > *  bTofCal,
std::vector< EndcapElec > *  eTofCal 
)

◆ ~TofElecData() [2/2]

virtual CalibData::TofElecData::~TofElecData ( )
inlinevirtual

Definition at line 26 of file InstallArea/include/CalibData/CalibData/Tof/TofElecData.h.

26 {
27 delete m_bTofElecData;
28 delete m_eTofElecData;
29 }

Member Function Documentation

◆ classID() [1/2]

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

◆ classID() [2/2]

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

◆ clID() [1/2]

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

◆ clID() [2/2]

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

Definition at line 32 of file InstallArea/include/CalibData/CalibData/Tof/TofElecData.h.

32{ return classID(); }

◆ getBTof() [1/2]

BarrelElec CalibData::TofElecData::getBTof ( int  cnt) const

Definition at line 43 of file TofElecData.cxx.

43 {
44 std::vector<BarrelElec>::iterator it = m_bTofElecData->begin();
45 for(int i=0;i!=cnt;i++,it++)
46 {
47 }
48 return *it;
49 }

Referenced by TofQElecSvc::Board(), TofQElecSvc::BQChannel1(), TofQElecSvc::BQChannel2(), TofQElecSvc::BQTC1(), TofQElecSvc::BQTC2(), TofQElecSvc::Channel(), TofQElecSvc::Crate(), and TofQElecSvc::Fee().

◆ getBTof() [2/2]

BarrelElec CalibData::TofElecData::getBTof ( int  cnt) const

◆ getETof() [1/2]

EndcapElec CalibData::TofElecData::getETof ( int  cnt) const

Definition at line 52 of file TofElecData.cxx.

52 {
53 std::vector<EndcapElec>::iterator it = m_eTofElecData->begin();
54 for(int i=0;i!=cnt;i++,it++)
55 {
56 }
57 return *it;
58 }

Referenced by TofQElecSvc::Board(), TofQElecSvc::Channel(), TofQElecSvc::Crate(), TofQElecSvc::EQChannel(), TofQElecSvc::EQTC(), and TofQElecSvc::Fee().

◆ getETof() [2/2]

EndcapElec CalibData::TofElecData::getETof ( int  cnt) const

◆ sim() [1/2]

void CalibData::TofElecData::sim ( TofElecData other1)

Definition at line 33 of file TofElecData.cxx.

33 {
34 // if(!m_bTofElecData->empty()) delete m_bTofElecData;
35 if(m_bTofElecData) delete m_bTofElecData;
36 m_bTofElecData = new std::vector<BarrelElec>(*(other1->m_bTofElecData));
37 if(m_eTofElecData) delete m_eTofElecData;
38 m_eTofElecData = new std::vector<EndcapElec>(*(other1->m_eTofElecData));
39}

◆ sim() [2/2]

void CalibData::TofElecData::sim ( TofElecData other1)

◆ update() [1/2]

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

Reimplemented from CalibData::CalibBase1.

Definition at line 21 of file TofElecData.cxx.

22 {
23 TofElecData& other1 = dynamic_cast<TofElecData& >(other);
24 std::cout<<"========================================"<<"\n"<<"here is the update in the TofElecData"<<"\n"<<"=================================================="<<std::endl;
25 CalibBase1::update(other, log);
26 delete m_bTofElecData;
27 m_bTofElecData = new std::vector<BarrelElec>(*(other1.m_bTofElecData));
28 delete m_eTofElecData;
29 m_eTofElecData = new std::vector<EndcapElec>(*(other1.m_eTofElecData));
30 return StatusCode::SUCCESS;
31}
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::TofElecData::update ( CalibBase1 other,
MsgStream *  log 
)
virtual

Reimplemented from CalibData::CalibBase1.


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