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

#include <DedxCalibData.h>

+ Inheritance diagram for CalibData::DedxCalibData:

Public Member Functions

 DedxCalibData ()
 
virtual ~DedxCalibData ()
 
virtual const CLID & clID () const
 
virtual StatusCode update (CalibBase1 &other, MsgStream *log)
 
void setddg (const double ddg, int i, int j)
 
void setggs (const double ggs, int i, int j)
 
void setwireg (const double wireg, int i)
 
void setgain (const double gain)
 
void setzdep (const double zdep, int i, int j)
 
void setresol (const double resol)
 
void setlayerg (const double layerg, int i)
 
void setenta (const double enta, int i, int j)
 
void setrunNO (const int run_NO)
 
void setrung (const double rung, int i)
 
double getddg (int i, int j) const
 
double getggs (int i, int j) const
 
double getwireg (int i) const
 
double getgain () const
 
double getzdep (int i, int j) const
 
double getresol () const
 
double getlayerg (int i) const
 
double getenta (int i, int j) const
 
int getrunNO () const
 
double getrung (int i, int j) const
 
double get_id_doca (int i) const
 
double get_iner_chi (int i) const
 
double get_iner_gain (int i) const
 
double get_iner_hits (int i) const
 
double get_ip_eangle (int i) const
 
double get_out_chi (int i) const
 
double get_out_gain (int i) const
 
double get_out_hits (int i) const
 
double get_costheta (int i) const
 
double get_t0 (int i) const
 
double get_dedx (int i) const
 
double get_hadron (int i) const
 
int get_hadronNo () const
 
int get_enanglesize () const
 
double get_enangle (int i) const
 
void set_id_doca (const double aa, int i)
 
void set_iner_chi (const double aa, int i)
 
void set_iner_gain (const double aa, int i)
 
void set_iner_hits (const double aa, int i)
 
void set_ip_eangle (const double aa, int i)
 
void set_out_chi (const double aa, int i)
 
void set_out_gain (const double aa, int i)
 
void set_out_hits (const double aa, int i)
 
void set_costheta (const double aa, int i)
 
void set_t0 (const double aa, int i)
 
void set_dedx (const double aa, int i)
 
void set_hadron (const double aa, int i)
 
void set_hadronNo (int no)
 
void set_enanglesize (int no)
 
void set_enangle (const double aa, int i)
 
void clear ()
 
- 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 DedxCalibData.h.

Constructor & Destructor Documentation

◆ DedxCalibData()

CalibData::DedxCalibData::DedxCalibData ( )
inline

Definition at line 21 of file DedxCalibData.h.

21{};

◆ ~DedxCalibData()

virtual CalibData::DedxCalibData::~DedxCalibData ( )
inlinevirtual

Definition at line 23 of file DedxCalibData.h.

23 {
24 }

Member Function Documentation

◆ classID()

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

Definition at line 29 of file DedxCalibData.h.

29{ return CLID_Calib_DedxCal; }
const CLID CLID_Calib_DedxCal
Definition CalibModel.h:45

Referenced by clID().

◆ clear()

void DedxCalibData::clear ( )

Definition at line 152 of file DedxCalibData.cxx.

152 {
153 m_rung1.clear();
154 m_rung2.clear();
155 m_rung3.clear();
156 m_rung4.clear();
157 m_rung5.clear();
158 m_rung6.clear();
159 m_runNO = 0;
160 }

Referenced by update().

◆ clID()

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

Definition at line 27 of file DedxCalibData.h.

27{ return classID(); }
static const CLID & classID()

◆ get_costheta()

double CalibData::DedxCalibData::get_costheta ( int i) const
inline

Definition at line 91 of file DedxCalibData.h.

91{return m_costheta[i];}

Referenced by update().

◆ get_dedx()

double CalibData::DedxCalibData::get_dedx ( int i) const
inline

Definition at line 93 of file DedxCalibData.h.

93{return m_dedx[i];}

Referenced by update().

◆ get_enangle()

double CalibData::DedxCalibData::get_enangle ( int i) const
inline

Definition at line 97 of file DedxCalibData.h.

97{return m_enangle[i];}

Referenced by update().

◆ get_enanglesize()

int CalibData::DedxCalibData::get_enanglesize ( ) const
inline

Definition at line 96 of file DedxCalibData.h.

96{return m_enanglesize;}

Referenced by update().

◆ get_hadron()

double CalibData::DedxCalibData::get_hadron ( int i) const
inline

Definition at line 94 of file DedxCalibData.h.

94{return m_hadron[i];}

Referenced by update().

◆ get_hadronNo()

int CalibData::DedxCalibData::get_hadronNo ( ) const
inline

Definition at line 95 of file DedxCalibData.h.

95{return m_hadronNo;}

◆ get_id_doca()

double CalibData::DedxCalibData::get_id_doca ( int i) const
inline

Definition at line 83 of file DedxCalibData.h.

83{return m_id_doca[i];}

Referenced by update().

◆ get_iner_chi()

double CalibData::DedxCalibData::get_iner_chi ( int i) const
inline

Definition at line 84 of file DedxCalibData.h.

84{return m_iner_chi[i];}

Referenced by update().

◆ get_iner_gain()

double CalibData::DedxCalibData::get_iner_gain ( int i) const
inline

Definition at line 85 of file DedxCalibData.h.

85{return m_iner_gain[i];}

Referenced by update().

◆ get_iner_hits()

double CalibData::DedxCalibData::get_iner_hits ( int i) const
inline

Definition at line 86 of file DedxCalibData.h.

86{return m_iner_hits[i];}

Referenced by update().

◆ get_ip_eangle()

double CalibData::DedxCalibData::get_ip_eangle ( int i) const
inline

Definition at line 87 of file DedxCalibData.h.

87{return m_ip_eangle[i];}

Referenced by update().

◆ get_out_chi()

double CalibData::DedxCalibData::get_out_chi ( int i) const
inline

Definition at line 88 of file DedxCalibData.h.

88{return m_out_chi[i];}

Referenced by update().

◆ get_out_gain()

double CalibData::DedxCalibData::get_out_gain ( int i) const
inline

Definition at line 89 of file DedxCalibData.h.

89{return m_out_gain[i];}

Referenced by update().

◆ get_out_hits()

double CalibData::DedxCalibData::get_out_hits ( int i) const
inline

Definition at line 90 of file DedxCalibData.h.

90{return m_out_hits[i];}

Referenced by update().

◆ get_t0()

double CalibData::DedxCalibData::get_t0 ( int i) const
inline

Definition at line 92 of file DedxCalibData.h.

92{return m_t0[i];}

Referenced by update().

◆ getddg()

double CalibData::DedxCalibData::getddg ( int i,
int j ) const
inline

Definition at line 56 of file DedxCalibData.h.

56{return m_ddg[i][j];}

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ getenta()

double CalibData::DedxCalibData::getenta ( int i,
int j ) const
inline

Definition at line 70 of file DedxCalibData.h.

70{return m_enta[i][j];}

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ getgain()

double CalibData::DedxCalibData::getgain ( ) const
inline

Definition at line 62 of file DedxCalibData.h.

62{return m_gain;}

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ getggs()

double CalibData::DedxCalibData::getggs ( int i,
int j ) const
inline

Definition at line 58 of file DedxCalibData.h.

58{return m_ggs[i][j];}

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ getlayerg()

double CalibData::DedxCalibData::getlayerg ( int i) const
inline

Definition at line 68 of file DedxCalibData.h.

68{return m_layerg[i];}

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ getresol()

double CalibData::DedxCalibData::getresol ( ) const
inline

Definition at line 66 of file DedxCalibData.h.

66{return m_resol;}

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ getrung()

double CalibData::DedxCalibData::getrung ( int i,
int j ) const
inline

Definition at line 73 of file DedxCalibData.h.

73 {
74 if(j>=m_runNO) return 0;
75 if(i==0) return *(m_rung1.begin()+j);
76 if(i==1) return *(m_rung2.begin()+j);
77 if(i==2) return *(m_rung3.begin()+j);
78 if(i==3) return *(m_rung4.begin()+j);
79 if(i==4) return *(m_rung5.begin()+j);
80 if(i==5) return *(m_rung6.begin()+j);
81 };

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ getrunNO()

int CalibData::DedxCalibData::getrunNO ( ) const
inline

Definition at line 72 of file DedxCalibData.h.

72{return m_runNO; }

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ getwireg()

double CalibData::DedxCalibData::getwireg ( int i) const
inline

Definition at line 60 of file DedxCalibData.h.

60{return m_wireg[i];}

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ getzdep()

double CalibData::DedxCalibData::getzdep ( int i,
int j ) const
inline

Definition at line 64 of file DedxCalibData.h.

64{return m_zdep[i][j];}

Referenced by RootDedxCalibDataCnv::createRoot(), and update().

◆ set_costheta()

void CalibData::DedxCalibData::set_costheta ( const double aa,
int i )
inline

Definition at line 107 of file DedxCalibData.h.

107{ m_costheta[i]=aa;}

Referenced by RootDedxCalibDataCnv::i_createObj(), and TreeDedxCalibDataCnv::i_createObj().

◆ set_dedx()

void CalibData::DedxCalibData::set_dedx ( const double aa,
int i )
inline

Definition at line 109 of file DedxCalibData.h.

109{m_dedx[i]=aa;}

Referenced by RootDedxCalibDataCnv::i_createObj(), and TreeDedxCalibDataCnv::i_createObj().

◆ set_enangle()

void CalibData::DedxCalibData::set_enangle ( const double aa,
int i )
inline

Definition at line 113 of file DedxCalibData.h.

113{m_enangle[i]=aa;}

◆ set_enanglesize()

void CalibData::DedxCalibData::set_enanglesize ( int no)
inline

Definition at line 112 of file DedxCalibData.h.

112{m_enanglesize=no;}
const int no

◆ set_hadron()

void CalibData::DedxCalibData::set_hadron ( const double aa,
int i )
inline

Definition at line 110 of file DedxCalibData.h.

110{m_hadron[i]=aa;}

Referenced by RootDedxCalibDataCnv::i_createObj(), and TreeDedxCalibDataCnv::i_createObj().

◆ set_hadronNo()

void CalibData::DedxCalibData::set_hadronNo ( int no)
inline

Definition at line 111 of file DedxCalibData.h.

111{m_hadronNo=no;}

Referenced by RootDedxCalibDataCnv::i_createObj(), and TreeDedxCalibDataCnv::i_createObj().

◆ set_id_doca()

void CalibData::DedxCalibData::set_id_doca ( const double aa,
int i )
inline

Definition at line 99 of file DedxCalibData.h.

99{ m_id_doca[i]=aa;}

◆ set_iner_chi()

void CalibData::DedxCalibData::set_iner_chi ( const double aa,
int i )
inline

Definition at line 100 of file DedxCalibData.h.

100{ m_iner_chi[i]=aa;}

◆ set_iner_gain()

void CalibData::DedxCalibData::set_iner_gain ( const double aa,
int i )
inline

Definition at line 101 of file DedxCalibData.h.

101{ m_iner_gain[i]=aa;}

◆ set_iner_hits()

void CalibData::DedxCalibData::set_iner_hits ( const double aa,
int i )
inline

Definition at line 102 of file DedxCalibData.h.

102{ m_iner_hits[i]=aa;}

◆ set_ip_eangle()

void CalibData::DedxCalibData::set_ip_eangle ( const double aa,
int i )
inline

Definition at line 103 of file DedxCalibData.h.

103{ m_ip_eangle[i]=aa;}

◆ set_out_chi()

void CalibData::DedxCalibData::set_out_chi ( const double aa,
int i )
inline

Definition at line 104 of file DedxCalibData.h.

104{ m_out_chi[i]=aa;}

◆ set_out_gain()

void CalibData::DedxCalibData::set_out_gain ( const double aa,
int i )
inline

Definition at line 105 of file DedxCalibData.h.

105{ m_out_gain[i]=aa;}

◆ set_out_hits()

void CalibData::DedxCalibData::set_out_hits ( const double aa,
int i )
inline

Definition at line 106 of file DedxCalibData.h.

106{ m_out_hits[i]=aa;}

◆ set_t0()

void CalibData::DedxCalibData::set_t0 ( const double aa,
int i )
inline

Definition at line 108 of file DedxCalibData.h.

108{ m_t0[i]=aa;}

Referenced by RootDedxCalibDataCnv::i_createObj(), and TreeDedxCalibDataCnv::i_createObj().

◆ setddg()

void DedxCalibData::setddg ( const double ddg,
int i,
int j )

Definition at line 96 of file DedxCalibData.cxx.

97 {
98 m_ddg[i][j] = ddg;
99 }

Referenced by update().

◆ setenta()

void DedxCalibData::setenta ( const double enta,
int i,
int j )

Definition at line 131 of file DedxCalibData.cxx.

132 {
133 m_enta[i][j] = enta;
134 }

Referenced by update().

◆ setgain()

void DedxCalibData::setgain ( const double gain)

Definition at line 111 of file DedxCalibData.cxx.

112 {
113 m_gain = gain;
114 }

Referenced by update().

◆ setggs()

void DedxCalibData::setggs ( const double ggs,
int i,
int j )

Definition at line 101 of file DedxCalibData.cxx.

102 {
103 m_ggs[i][j] = ggs;
104 }

Referenced by update().

◆ setlayerg()

void DedxCalibData::setlayerg ( const double layerg,
int i )

Definition at line 126 of file DedxCalibData.cxx.

127 {
128 m_layerg[i] = layerg;
129 }

Referenced by update().

◆ setresol()

void DedxCalibData::setresol ( const double resol)

Definition at line 121 of file DedxCalibData.cxx.

122 {
123 m_resol = resol;
124 }

Referenced by update().

◆ setrung()

void DedxCalibData::setrung ( const double rung,
int i )

Definition at line 136 of file DedxCalibData.cxx.

137 {
138 double aaa=rung;
139 if(i==0) m_rung1.push_back(aaa);
140 if(i==1) m_rung2.push_back(aaa);
141 if(i==2) m_rung3.push_back(aaa);
142 if(i==3) m_rung4.push_back(aaa);
143 if(i==4) m_rung5.push_back(aaa);
144 if(i==5) m_rung6.push_back(aaa);
145 }

Referenced by update().

◆ setrunNO()

void DedxCalibData::setrunNO ( const int run_NO)

Definition at line 147 of file DedxCalibData.cxx.

148 {
149 m_runNO = runNO;
150 }

Referenced by update().

◆ setwireg()

void DedxCalibData::setwireg ( const double wireg,
int i )

Definition at line 106 of file DedxCalibData.cxx.

107 {
108 m_wireg[i] = wireg;
109 }

Referenced by update().

◆ setzdep()

void DedxCalibData::setzdep ( const double zdep,
int i,
int j )

Definition at line 116 of file DedxCalibData.cxx.

117 {
118 m_zdep[i][j] = zdep;
119 }

Referenced by update().

◆ update()

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

Reimplemented from CalibData::CalibBase1.

Definition at line 13 of file DedxCalibData.cxx.

14 {
15 DedxCalibData& other1 = dynamic_cast<DedxCalibData& >(other);
16 std::cout<<"========================================"<<"\n"<<"here is the update in the DedxCalibData"<<"\n"<<"=================================================="<<std::endl;
17 CalibBase1::update(other, log);
18 int i;
19 int j;
20 for(i=0;i<4;i++) {
21 for(j=0;j<43;j++) {
22 /* setddg(other1.m_ddg[i][j],i,j);
23 setggs(other1.m_ggs[i][j],i,j);
24 setzdep(other1.m_zdep[i][j],i,j);
25 setenta(other1.m_enta[i][j],i,j);
26*/
27 // getddg(int i,int j)
28 // std::cout<<"other1.getddg("<<i<<","<<j<<")="<<other1.getddg(i,j)<<std::endl;
29 setddg(other1.getddg(i,j),i,j);
30 setggs(other1.getggs(i,j),i,j);
31 setzdep(other1.getzdep(i,j),i,j);
32 setenta(other1.getenta(i,j),i,j);
33 }
34 }
35 clear();//wxfang
36
37 setrunNO(other1.getrunNO());
38 int entries = other1.getrunNO();
39 for(i=0;i<6;i++) {
40 for(j=0;j<entries;j++) {
41 setrung(other1.getrung(i,j),i);
42 }
43 }
44
45
46 for(i=0;i<6796;i++){
47 // setwireg(other1.m_wireg[i],i);
48 setwireg(other1.getwireg(i),i);
49 }
50
51 for(i=0;i<43;i++){
52 // setlayerg(other1.m_layerg[i],i);
53 setlayerg(other1.getlayerg(i),i);
54 }
55
56 // setgain(other1.m_gain);
57 // setresol(other1.m_resol);
58 setgain(other1.getgain());
59 setresol(other1.getresol());
60
61 for(int i=0;i<1600;i++){
62 m_id_doca[i]=other1.get_id_doca(i);
63 m_iner_chi[i]=other1.get_iner_chi(i);
64 m_iner_gain[i]=other1.get_iner_gain(i);
65 m_iner_hits[i]=other1.get_iner_hits(i);
66 m_ip_eangle[i]=other1.get_ip_eangle(i);
67 m_out_chi[i]=other1.get_out_chi(i);
68 m_out_gain[i]=other1.get_out_gain(i);
69 m_out_hits[i]=other1.get_out_hits(i);
70 }
71
72 for(int i=0;i<80;i++){
73 m_costheta[i]=other1.get_costheta(i);
74 }
75 for(int i=0;i<35;i++){
76 m_t0[i] = other1.get_t0(i);
77 m_dedx[i]=other1.get_dedx(i);
78 }
79
80 for(int i=0;i<20;i++){
81 m_hadron[i] = other1.get_hadron(i);
82 }
83
84 m_enanglesize=other1.get_enanglesize();
85 for(int i=0;i<m_enanglesize;i++){
86 m_enangle[i]=other1.get_enangle(i);
87 }
88
89 std::cout<<"updata dedx calib constnts complete================="<<std::endl;
90 return StatusCode::SUCCESS;
91}
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
void setlayerg(const double layerg, int i)
void setggs(const double ggs, int i, int j)
void setenta(const double enta, int i, int j)
void setresol(const double resol)
void setddg(const double ddg, int i, int j)
void setwireg(const double wireg, int i)
void setgain(const double gain)
void setzdep(const double zdep, int i, int j)
void setrunNO(const int run_NO)
void setrung(const double rung, int i)
Index other(Index i, Index j)

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