BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
CalibData::TofSimData Class Reference

#include <TofSimData.h>

+ Inheritance diagram for CalibData::TofSimData:

Public Member Functions

 TofSimData ()
 
 TofSimData (std::vector< TofSimConstBase > *fTofConst, std::vector< BTofSimBase > *fBTofSim, std::vector< ETofSimBase > *fETofSim)
 
virtual ~TofSimData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
TofSimConstBase getTofConst () const
 
double getBarLowThres ()
 
double getBarHighThres ()
 
double getEndLowThres ()
 
double getEndHighThres ()
 
double getBarPMTGain ()
 
double getEndPMTGain ()
 
double getBarConstant ()
 
double getEndConstant ()
 
double getEndNoiseSwitch ()
 
BTofSimBase getBTofSim (int cnt) const
 
double getBarGain (int cnt)
 
double getBarRatio (int cnt)
 
double getBarAttenLength (int cnt)
 
ETofSimBase getETofSim (int cnt) const
 
double getEndGain (int cnt)
 
double getEndAttenLength (int cnt)
 
double getEndNoiseSmear (int cnt)
 
- 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 21 of file TofSimData.h.

Constructor & Destructor Documentation

◆ TofSimData() [1/2]

CalibData::TofSimData::TofSimData ( )
inline

Definition at line 24 of file TofSimData.h.

24{};

◆ TofSimData() [2/2]

CalibData::TofSimData::TofSimData ( std::vector< TofSimConstBase > * fTofConst,
std::vector< BTofSimBase > * fBTofSim,
std::vector< ETofSimBase > * fETofSim )

Definition at line 8 of file TofSimData.cxx.

8 {
9 if(fTofConst) {
10 m_TofSimConstData = new std::vector<TofSimConstBase>(*fTofConst);
11 }
12 if(fBTofSim){
13 m_BTofSimData = new std::vector<BTofSimBase>(*fBTofSim);
14 }
15 if(fETofSim){
16 m_ETofSimData = new std::vector<ETofSimBase>(*fETofSim);
17 }
18 }

◆ ~TofSimData()

virtual CalibData::TofSimData::~TofSimData ( )
inlinevirtual

Definition at line 27 of file TofSimData.h.

27 {
28 delete m_TofSimConstData;
29 delete m_BTofSimData;
30 delete m_ETofSimData;
31 }

Member Function Documentation

◆ classID()

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

Definition at line 36 of file TofSimData.h.

36{ return CLID_Calib_TofSim; }
const CLID CLID_Calib_TofSim
Definition CalibModel.h:59

Referenced by clID().

◆ clID()

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

Definition at line 34 of file TofSimData.h.

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

◆ getBarAttenLength()

double CalibData::TofSimData::getBarAttenLength ( int cnt)

Definition at line 108 of file TofSimData.cxx.

108 {
109 BTofSimBase bTof = getBTofSim(cnt);
110 return bTof.getAttenLength();
111 }
BTofSimBase getBTofSim(int cnt) const

◆ getBarConstant()

double CalibData::TofSimData::getBarConstant ( )

Definition at line 83 of file TofSimData.cxx.

83 {
84 TofSimConstBase tofConst = getTofConst();
85 return tofConst.getBarConstant();
86 }
TofSimConstBase getTofConst() const

◆ getBarGain()

double CalibData::TofSimData::getBarGain ( int cnt)

Definition at line 98 of file TofSimData.cxx.

98 {
99 BTofSimBase bTof = getBTofSim(cnt);
100 return bTof.getGain();
101 }

◆ getBarHighThres()

double CalibData::TofSimData::getBarHighThres ( )

Definition at line 58 of file TofSimData.cxx.

58 {
59 TofSimConstBase tofConst = getTofConst();
60 return tofConst.getBarHighThres();
61 }

◆ getBarLowThres()

double CalibData::TofSimData::getBarLowThres ( )

Definition at line 53 of file TofSimData.cxx.

53 {
54 TofSimConstBase tofConst = getTofConst();
55 return tofConst.getBarLowThres();
56 }

◆ getBarPMTGain()

double CalibData::TofSimData::getBarPMTGain ( )

Definition at line 73 of file TofSimData.cxx.

73 {
74 TofSimConstBase tofConst = getTofConst();
75 return tofConst.getBarPMTGain();
76 }

◆ getBarRatio()

double CalibData::TofSimData::getBarRatio ( int cnt)

Definition at line 103 of file TofSimData.cxx.

103 {
104 BTofSimBase bTof = getBTofSim(cnt);
105 return bTof.getRatio();
106 }

◆ getBTofSim()

BTofSimBase CalibData::TofSimData::getBTofSim ( int cnt) const

Definition at line 41 of file TofSimData.cxx.

41 {
42 std::vector<BTofSimBase>::iterator it = m_BTofSimData->begin();
43 for(int i=0;i!=cnt;i++,it++) {}
44 return *it;
45 }

Referenced by getBarAttenLength(), getBarGain(), and getBarRatio().

◆ getEndAttenLength()

double CalibData::TofSimData::getEndAttenLength ( int cnt)

Definition at line 118 of file TofSimData.cxx.

118 {
119 ETofSimBase eTof = getETofSim(cnt);
120 return eTof.getAttenLength();
121 }
ETofSimBase getETofSim(int cnt) const

◆ getEndConstant()

double CalibData::TofSimData::getEndConstant ( )

Definition at line 88 of file TofSimData.cxx.

88 {
89 TofSimConstBase tofConst = getTofConst();
90 return tofConst.getEndConstant();
91 }

◆ getEndGain()

double CalibData::TofSimData::getEndGain ( int cnt)

Definition at line 113 of file TofSimData.cxx.

113 {
114 ETofSimBase eTof = getETofSim(cnt);
115 return eTof.getGain();
116 }

◆ getEndHighThres()

double CalibData::TofSimData::getEndHighThres ( )

Definition at line 68 of file TofSimData.cxx.

68 {
69 TofSimConstBase tofConst = getTofConst();
70 return tofConst.getEndHighThres();
71 }

◆ getEndLowThres()

double CalibData::TofSimData::getEndLowThres ( )

Definition at line 63 of file TofSimData.cxx.

63 {
64 TofSimConstBase tofConst = getTofConst();
65 return tofConst.getEndLowThres();
66 }

◆ getEndNoiseSmear()

double CalibData::TofSimData::getEndNoiseSmear ( int cnt)

Definition at line 123 of file TofSimData.cxx.

123 {
124 ETofSimBase eTof = getETofSim(cnt);
125 return eTof.getNoiseSmear();
126 }

◆ getEndNoiseSwitch()

double CalibData::TofSimData::getEndNoiseSwitch ( )

Definition at line 93 of file TofSimData.cxx.

93 {
94 TofSimConstBase tofConst = getTofConst();
95 return tofConst.getEndNoiseSwitch();
96 }

◆ getEndPMTGain()

double CalibData::TofSimData::getEndPMTGain ( )

Definition at line 78 of file TofSimData.cxx.

78 {
79 TofSimConstBase tofConst = getTofConst();
80 return tofConst.getEndPMTGain();
81 }

◆ getETofSim()

ETofSimBase CalibData::TofSimData::getETofSim ( int cnt) const

Definition at line 47 of file TofSimData.cxx.

47 {
48 std::vector<ETofSimBase>::iterator it = m_ETofSimData->begin();
49 for(int i=0;i!=cnt;i++,it++) {}
50 return *it;
51 }

Referenced by getEndAttenLength(), getEndGain(), and getEndNoiseSmear().

◆ getTofConst()

TofSimConstBase CalibData::TofSimData::getTofConst ( ) const

Definition at line 36 of file TofSimData.cxx.

36 {
37 std::vector<TofSimConstBase>::iterator it = m_TofSimConstData->begin();
38 return *it;
39 }

Referenced by getBarConstant(), getBarHighThres(), getBarLowThres(), getBarPMTGain(), getEndConstant(), getEndHighThres(), getEndLowThres(), getEndNoiseSwitch(), and getEndPMTGain().

◆ update()

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

Reimplemented from CalibData::CalibBase1.

Definition at line 20 of file TofSimData.cxx.

20 {
21 TofSimData& other1 = dynamic_cast<TofSimData& >(other);
22 std::cout<<"========================================"<<"\n"<<"here is the update in the TofSimData"<<"\n"<<"=================================================="<<std::endl;
23 CalibBase1::update(other, log);
24 delete m_TofSimConstData;
25 m_TofSimConstData = new std::vector<TofSimConstBase>(*(other1.m_TofSimConstData));
26 delete m_BTofSimData;
27 m_BTofSimData = new std::vector<BTofSimBase>(*(other1.m_BTofSimData));
28 delete m_ETofSimData;
29 m_ETofSimData = new std::vector<ETofSimBase>(*(other1.m_ETofSimData));
30
31 return StatusCode::SUCCESS;
32 }
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Index other(Index i, Index j)

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