BOSS 7.0.1
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)
 
 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 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

◆ TofSimData() [1/4]

CalibData::TofSimData::TofSimData ( )
inline

◆ TofSimData() [2/4]

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() [1/2]

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

Definition at line 27 of file Calibration/CalibData/CalibData-00-01-17/CalibData/Tof/TofSimData.h.

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

◆ TofSimData() [3/4]

CalibData::TofSimData::TofSimData ( )
inline

◆ TofSimData() [4/4]

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

◆ ~TofSimData() [2/2]

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

Definition at line 27 of file InstallArea/include/CalibData/CalibData/Tof/TofSimData.h.

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

Member Function Documentation

◆ classID() [1/2]

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

◆ classID() [2/2]

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

◆ clID() [1/2]

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

◆ clID() [2/2]

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

Definition at line 34 of file InstallArea/include/CalibData/CalibData/Tof/TofSimData.h.

34{ return classID(); }

◆ getBarAttenLength() [1/2]

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
Definition: TofSimData.cxx:41

◆ getBarAttenLength() [2/2]

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

◆ getBarConstant() [1/2]

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
Definition: TofSimData.cxx:36

◆ getBarConstant() [2/2]

double CalibData::TofSimData::getBarConstant ( )

◆ getBarGain() [1/2]

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 }

◆ getBarGain() [2/2]

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

◆ getBarHighThres() [1/2]

double CalibData::TofSimData::getBarHighThres ( )

Definition at line 58 of file TofSimData.cxx.

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

◆ getBarHighThres() [2/2]

double CalibData::TofSimData::getBarHighThres ( )

◆ getBarLowThres() [1/2]

double CalibData::TofSimData::getBarLowThres ( )

Definition at line 53 of file TofSimData.cxx.

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

◆ getBarLowThres() [2/2]

double CalibData::TofSimData::getBarLowThres ( )

◆ getBarPMTGain() [1/2]

double CalibData::TofSimData::getBarPMTGain ( )

Definition at line 73 of file TofSimData.cxx.

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

◆ getBarPMTGain() [2/2]

double CalibData::TofSimData::getBarPMTGain ( )

◆ getBarRatio() [1/2]

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 }

◆ getBarRatio() [2/2]

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

◆ getBTofSim() [1/2]

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

◆ getBTofSim() [2/2]

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

◆ getEndAttenLength() [1/2]

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
Definition: TofSimData.cxx:47

◆ getEndAttenLength() [2/2]

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

◆ getEndConstant() [1/2]

double CalibData::TofSimData::getEndConstant ( )

Definition at line 88 of file TofSimData.cxx.

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

◆ getEndConstant() [2/2]

double CalibData::TofSimData::getEndConstant ( )

◆ getEndGain() [1/2]

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 }

◆ getEndGain() [2/2]

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

◆ getEndHighThres() [1/2]

double CalibData::TofSimData::getEndHighThres ( )

Definition at line 68 of file TofSimData.cxx.

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

◆ getEndHighThres() [2/2]

double CalibData::TofSimData::getEndHighThres ( )

◆ getEndLowThres() [1/2]

double CalibData::TofSimData::getEndLowThres ( )

Definition at line 63 of file TofSimData.cxx.

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

◆ getEndLowThres() [2/2]

double CalibData::TofSimData::getEndLowThres ( )

◆ getEndNoiseSmear() [1/2]

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 }

◆ getEndNoiseSmear() [2/2]

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

◆ getEndNoiseSwitch() [1/2]

double CalibData::TofSimData::getEndNoiseSwitch ( )

Definition at line 93 of file TofSimData.cxx.

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

◆ getEndNoiseSwitch() [2/2]

double CalibData::TofSimData::getEndNoiseSwitch ( )

◆ getEndPMTGain() [1/2]

double CalibData::TofSimData::getEndPMTGain ( )

Definition at line 78 of file TofSimData.cxx.

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

◆ getEndPMTGain() [2/2]

double CalibData::TofSimData::getEndPMTGain ( )

◆ getETofSim() [1/2]

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

◆ getETofSim() [2/2]

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

◆ getTofConst() [1/2]

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

◆ getTofConst() [2/2]

TofSimConstBase CalibData::TofSimData::getTofConst ( ) const

◆ update() [1/2]

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 *)
Definition: CalibBase1.cxx:33
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

◆ update() [2/2]

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

Reimplemented from CalibData::CalibBase1.


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