CGEM BOSS 6.6.5.h
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, int j)
 
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)
 
- 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().

◆ 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 88 of file DedxCalibData.h.

88{return m_costheta[i];}

Referenced by update().

◆ get_dedx()

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

Definition at line 90 of file DedxCalibData.h.

90{return m_dedx[i];}

Referenced by update().

◆ get_enangle()

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

Definition at line 94 of file DedxCalibData.h.

94{return m_enangle[i];}

Referenced by update().

◆ get_enanglesize()

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

Definition at line 93 of file DedxCalibData.h.

93{return m_enanglesize;}

Referenced by update().

◆ get_hadron()

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

Definition at line 91 of file DedxCalibData.h.

91{return m_hadron[i];}

Referenced by update().

◆ get_hadronNo()

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

Definition at line 92 of file DedxCalibData.h.

92{return m_hadronNo;}

◆ get_id_doca()

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

Definition at line 80 of file DedxCalibData.h.

80{return m_id_doca[i];}

Referenced by update().

◆ get_iner_chi()

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

Definition at line 81 of file DedxCalibData.h.

81{return m_iner_chi[i];}

Referenced by update().

◆ get_iner_gain()

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

Definition at line 82 of file DedxCalibData.h.

82{return m_iner_gain[i];}

Referenced by update().

◆ get_iner_hits()

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

Definition at line 83 of file DedxCalibData.h.

83{return m_iner_hits[i];}

Referenced by update().

◆ get_ip_eangle()

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

Definition at line 84 of file DedxCalibData.h.

84{return m_ip_eangle[i];}

Referenced by update().

◆ get_out_chi()

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

Definition at line 85 of file DedxCalibData.h.

85{return m_out_chi[i];}

Referenced by update().

◆ get_out_gain()

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

Definition at line 86 of file DedxCalibData.h.

86{return m_out_gain[i];}

Referenced by update().

◆ get_out_hits()

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

Definition at line 87 of file DedxCalibData.h.

87{return m_out_hits[i];}

Referenced by update().

◆ get_t0()

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

Definition at line 89 of file DedxCalibData.h.

89{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);};

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 104 of file DedxCalibData.h.

104{ 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 106 of file DedxCalibData.h.

106{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 110 of file DedxCalibData.h.

110{m_enangle[i]=aa;}

◆ set_enanglesize()

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

Definition at line 109 of file DedxCalibData.h.

109{m_enanglesize=no;}

◆ set_hadron()

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

Definition at line 107 of file DedxCalibData.h.

107{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 108 of file DedxCalibData.h.

108{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 96 of file DedxCalibData.h.

96{ m_id_doca[i]=aa;}

◆ set_iner_chi()

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

Definition at line 97 of file DedxCalibData.h.

97{ m_iner_chi[i]=aa;}

◆ set_iner_gain()

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

Definition at line 98 of file DedxCalibData.h.

98{ m_iner_gain[i]=aa;}

◆ set_iner_hits()

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

Definition at line 99 of file DedxCalibData.h.

99{ m_iner_hits[i]=aa;}

◆ set_ip_eangle()

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

Definition at line 100 of file DedxCalibData.h.

100{ m_ip_eangle[i]=aa;}

◆ set_out_chi()

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

Definition at line 101 of file DedxCalibData.h.

101{ m_out_chi[i]=aa;}

◆ set_out_gain()

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

Definition at line 102 of file DedxCalibData.h.

102{ m_out_gain[i]=aa;}

◆ set_out_hits()

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

Definition at line 103 of file DedxCalibData.h.

103{ m_out_hits[i]=aa;}

◆ set_t0()

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

Definition at line 105 of file DedxCalibData.h.

105{ 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 95 of file DedxCalibData.cxx.

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

Referenced by update().

◆ setenta()

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

Definition at line 130 of file DedxCalibData.cxx.

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

Referenced by update().

◆ setgain()

void DedxCalibData::setgain ( const double gain)

Definition at line 110 of file DedxCalibData.cxx.

111 {
112 m_gain = gain;
113 }

Referenced by update().

◆ setggs()

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

Definition at line 100 of file DedxCalibData.cxx.

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

Referenced by update().

◆ setlayerg()

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

Definition at line 125 of file DedxCalibData.cxx.

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

Referenced by update().

◆ setresol()

void DedxCalibData::setresol ( const double resol)

Definition at line 120 of file DedxCalibData.cxx.

121 {
122 m_resol = resol;
123 }

Referenced by update().

◆ setrung()

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

Definition at line 135 of file DedxCalibData.cxx.

136 {
137 double aaa=rung;
138 if(i==0) m_rung1.push_back(aaa);
139 if(i==1) m_rung2.push_back(aaa);
140 if(i==2) m_rung3.push_back(aaa);
141 if(i==3) m_rung4.push_back(aaa);
142 }

Referenced by update().

◆ setrunNO()

void DedxCalibData::setrunNO ( const int run_NO)

Definition at line 144 of file DedxCalibData.cxx.

145 {
146 m_runNO = runNO;
147 }

Referenced by update().

◆ setwireg()

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

Definition at line 105 of file DedxCalibData.cxx.

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

Referenced by update().

◆ setzdep()

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

Definition at line 115 of file DedxCalibData.cxx.

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

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
36 setrunNO(other1.getrunNO());
37 int entries = other1.getrunNO();
38 for(i=0;i<4;i++) {
39 for(j=0;j<entries;j++) {
40 setrung(other1.getrung(i,j),i,j);
41 }
42 }
43
44
45 for(i=0;i<6796;i++){
46 // setwireg(other1.m_wireg[i],i);
47 setwireg(other1.getwireg(i),i);
48 }
49
50 for(i=0;i<43;i++){
51 // setlayerg(other1.m_layerg[i],i);
52 setlayerg(other1.getlayerg(i),i);
53 }
54
55 // setgain(other1.m_gain);
56 // setresol(other1.m_resol);
57 setgain(other1.getgain());
58 setresol(other1.getresol());
59
60 for(int i=0;i<1600;i++){
61 m_id_doca[i]=other1.get_id_doca(i);
62 m_iner_chi[i]=other1.get_iner_chi(i);
63 m_iner_gain[i]=other1.get_iner_gain(i);
64 m_iner_hits[i]=other1.get_iner_hits(i);
65 m_ip_eangle[i]=other1.get_ip_eangle(i);
66 m_out_chi[i]=other1.get_out_chi(i);
67 m_out_gain[i]=other1.get_out_gain(i);
68 m_out_hits[i]=other1.get_out_hits(i);
69 }
70
71 for(int i=0;i<80;i++){
72 m_costheta[i]=other1.get_costheta(i);
73 }
74 for(int i=0;i<35;i++){
75 m_t0[i] = other1.get_t0(i);
76 m_dedx[i]=other1.get_dedx(i);
77 }
78
79 for(int i=0;i<20;i++){
80 m_hadron[i] = other1.get_hadron(i);
81 }
82
83 m_enanglesize=other1.get_enanglesize();
84 for(int i=0;i<m_enanglesize;i++){
85 m_enangle[i]=other1.get_enangle(i);
86 }
87
88 std::cout<<"updata dedx calib constnts complete================="<<std::endl;
89 return StatusCode::SUCCESS;
90}
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 setrung(const double rung, int i, int j)
void setzdep(const double zdep, int i, int j)
void setrunNO(const int run_NO)
Index other(Index i, Index j)

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