CGEM BOSS 6.6.5.i
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
 
- 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 TofElecData.h.

Constructor & Destructor Documentation

◆ TofElecData() [1/2]

CalibData::TofElecData::TofElecData ( )
inline

Definition at line 21 of file TofElecData.h.

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

◆ TofElecData() [2/2]

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

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

Definition at line 26 of file TofElecData.h.

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

Member Function Documentation

◆ classID()

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

Definition at line 34 of file TofElecData.h.

34{ return CLID_TofQ_Elec; }
const CLID CLID_TofQ_Elec
Definition CalibModel.h:57

Referenced by clID().

◆ clID()

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

Definition at line 32 of file TofElecData.h.

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

◆ getBTof()

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

◆ getETof()

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

◆ sim()

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}

◆ update()

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 *)
Index other(Index i, Index j)

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