BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
DedxCalibData.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/CalibData/Dedx/DedxCalibData.h,v 1.9 2019/09/08 23:32:49 zhuk Exp $
2#ifndef CalibData_DedxCalibData_h
3#define CalibData_DedxCalibData_h
4
5/* @class CalibData_DedxCalibData_h
6
7 calibration data class
8 calibration infrastructure
9
10 @author huangb
11*/
12
15#include <vector>
16using namespace std;
17namespace CalibData {
19
20 public:
22
23 virtual ~DedxCalibData() {
24 }
25
26 // Re-implemented from DataObject
27 inline virtual const CLID& clID() const { return classID(); }
28
29 inline static const CLID& classID() { return CLID_Calib_DedxCal; }
30
31 virtual StatusCode update(CalibBase1& other, MsgStream* log);
32
33
34 //set the Calibration data by matrix element
35 void setddg(const double ddg,int i,int j);
36
37 void setggs(const double ggs,int i,int j);
38
39 void setwireg(const double wireg,int i);
40
41 void setgain(const double gain);
42
43 void setzdep(const double zdep,int i,int j);
44
45 void setresol(const double resol);
46
47 void setlayerg(const double layerg,int i);
48
49 void setenta(const double enta,int i,int j);
50
51 void setrunNO(const int run_NO);
52 void setrung(const double rung, int i);
53
54 //get the Calibration Data
55
56 double getddg(int i,int j) const{return m_ddg[i][j];}
57
58 double getggs(int i,int j) const{return m_ggs[i][j];}
59
60 double getwireg(int i) const{return m_wireg[i];}
61
62 double getgain() const {return m_gain;}
63
64 double getzdep(int i,int j) const{return m_zdep[i][j];}
65
66 double getresol() const {return m_resol;}
67
68 double getlayerg(int i) const{return m_layerg[i];}
69
70 double getenta(int i,int j) const{return m_enta[i][j];}
71
72 int getrunNO() const {return m_runNO; }
73 double getrung(int i,int j) const{
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 };
82 // add on June 4th,2009
83 double get_id_doca(int i) const{return m_id_doca[i];}
84 double get_iner_chi(int i) const{return m_iner_chi[i];}
85 double get_iner_gain(int i) const{return m_iner_gain[i];}
86 double get_iner_hits(int i) const{return m_iner_hits[i];}
87 double get_ip_eangle(int i) const{return m_ip_eangle[i];}
88 double get_out_chi(int i) const{return m_out_chi[i];}
89 double get_out_gain(int i) const{return m_out_gain[i];}
90 double get_out_hits(int i) const{return m_out_hits[i];}
91 double get_costheta(int i) const{return m_costheta[i];}
92 double get_t0(int i) const{return m_t0[i];}
93 double get_dedx(int i) const{return m_dedx[i];}
94 double get_hadron(int i) const{return m_hadron[i];}
95 int get_hadronNo() const{return m_hadronNo;}
96 int get_enanglesize() const{return m_enanglesize;}
97 double get_enangle(int i) const{return m_enangle[i];}
98
99 void set_id_doca(const double aa,int i) { m_id_doca[i]=aa;}
100 void set_iner_chi(const double aa,int i) { m_iner_chi[i]=aa;}
101 void set_iner_gain(const double aa,int i) { m_iner_gain[i]=aa;}
102 void set_iner_hits(const double aa,int i) { m_iner_hits[i]=aa;}
103 void set_ip_eangle(const double aa,int i) { m_ip_eangle[i]=aa;}
104 void set_out_chi(const double aa,int i) { m_out_chi[i]=aa;}
105 void set_out_gain(const double aa,int i) { m_out_gain[i]=aa;}
106 void set_out_hits(const double aa,int i) { m_out_hits[i]=aa;}
107 void set_costheta(const double aa,int i) { m_costheta[i]=aa;}
108 void set_t0(const double aa,int i) { m_t0[i]=aa;}
109 void set_dedx(const double aa,int i) {m_dedx[i]=aa;}
110 void set_hadron(const double aa,int i) {m_hadron[i]=aa;}
111 void set_hadronNo(int no){m_hadronNo=no;}
112 void set_enanglesize(int no){m_enanglesize=no;}
113 void set_enangle(const double aa,int i) {m_enangle[i]=aa;}
114
115 private:
116 int m_runNO;
117
118 double m_ddg[4][43];
119 double m_ggs[4][43];
120 double m_wireg[6796];
121 double m_gain;
122 double m_zdep[4][43];
123 double m_resol;
124 double m_layerg[43];
125 double m_enta[4][43];
126 // double m_rung[4][1000];
127 vector<double> m_rung1;
128 vector<double> m_rung2;
129 vector<double> m_rung3;
130 vector<double> m_rung4;
131 vector<double> m_rung5;
132 vector<double> m_rung6;
133 //vector <Double_t> rung
134
135 // add on June 4th,2009
136 double m_id_doca[1600];
137 double m_iner_chi[1600];
138 double m_iner_gain[1600];
139 double m_iner_hits[1600];
140 double m_ip_eangle[1600];
141 double m_out_chi[1600];
142 double m_out_gain[1600];
143 double m_out_hits[1600];
144 double m_costheta[80];
145 double m_t0[35];
146 double m_dedx[35];
147 double m_hadron[20];
148 double m_enangle[100];
149 int m_hadronNo;
150 int m_enanglesize;
151 };
152}
153
154
155#endif
const CLID CLID_Calib_DedxCal
Definition: CalibModel.h:45
const int no
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 set_out_hits(const double aa, int i)
double getenta(int i, int j) const
Definition: DedxCalibData.h:70
double get_costheta(int i) const
Definition: DedxCalibData.h:91
double get_ip_eangle(int i) const
Definition: DedxCalibData.h:87
double getzdep(int i, int j) const
Definition: DedxCalibData.h:64
void setresol(const double resol)
void set_out_gain(const double aa, int i)
void setddg(const double ddg, int i, int j)
void set_costheta(const double aa, int i)
void set_enangle(const double aa, int i)
void set_iner_gain(const double aa, int i)
double get_iner_chi(int i) const
Definition: DedxCalibData.h:84
double getrung(int i, int j) const
Definition: DedxCalibData.h:73
double get_id_doca(int i) const
Definition: DedxCalibData.h:83
double getresol() const
Definition: DedxCalibData.h:66
double get_out_gain(int i) const
Definition: DedxCalibData.h:89
void set_iner_hits(const double aa, int i)
double get_hadron(int i) const
Definition: DedxCalibData.h:94
double get_enangle(int i) const
Definition: DedxCalibData.h:97
void setwireg(const double wireg, int i)
void setgain(const double gain)
double get_out_hits(int i) const
Definition: DedxCalibData.h:90
void set_ip_eangle(const double aa, int i)
static const CLID & classID()
Definition: DedxCalibData.h:29
void set_out_chi(const double aa, int i)
double getlayerg(int i) const
Definition: DedxCalibData.h:68
double get_iner_hits(int i) const
Definition: DedxCalibData.h:86
void setzdep(const double zdep, int i, int j)
void set_hadron(const double aa, int i)
void setrunNO(const int run_NO)
void set_enanglesize(int no)
void set_t0(const double aa, int i)
double getwireg(int i) const
Definition: DedxCalibData.h:60
double getddg(int i, int j) const
Definition: DedxCalibData.h:56
virtual const CLID & clID() const
Definition: DedxCalibData.h:27
double getggs(int i, int j) const
Definition: DedxCalibData.h:58
void set_dedx(const double aa, int i)
void set_iner_chi(const double aa, int i)
double get_t0(int i) const
Definition: DedxCalibData.h:92
double get_out_chi(int i) const
Definition: DedxCalibData.h:88
double getgain() const
Definition: DedxCalibData.h:62
double get_iner_gain(int i) const
Definition: DedxCalibData.h:85
void set_id_doca(const double aa, int i)
Definition: DedxCalibData.h:99
void setrung(const double rung, int i)
double get_dedx(int i) const
Definition: DedxCalibData.h:93