BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/CalibData/CalibData-00-01-18/CalibData/Dedx/DedxCalibData.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/CalibData/Dedx/DedxCalibData.h,v 1.8 2010/10/08 01:12:53 huangb 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
13#include "CalibData/CalibModel.h"
14#include "CalibData/CalibBase1.h"
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,int j);
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 // add on June 4th,2009
80 double get_id_doca(int i) const{return m_id_doca[i];}
81 double get_iner_chi(int i) const{return m_iner_chi[i];}
82 double get_iner_gain(int i) const{return m_iner_gain[i];}
83 double get_iner_hits(int i) const{return m_iner_hits[i];}
84 double get_ip_eangle(int i) const{return m_ip_eangle[i];}
85 double get_out_chi(int i) const{return m_out_chi[i];}
86 double get_out_gain(int i) const{return m_out_gain[i];}
87 double get_out_hits(int i) const{return m_out_hits[i];}
88 double get_costheta(int i) const{return m_costheta[i];}
89 double get_t0(int i) const{return m_t0[i];}
90 double get_dedx(int i) const{return m_dedx[i];}
91 double get_hadron(int i) const{return m_hadron[i];}
92 int get_hadronNo() const{return m_hadronNo;}
93 int get_enanglesize() const{return m_enanglesize;}
94 double get_enangle(int i) const{return m_enangle[i];}
95
96 void set_id_doca(const double aa,int i) { m_id_doca[i]=aa;}
97 void set_iner_chi(const double aa,int i) { m_iner_chi[i]=aa;}
98 void set_iner_gain(const double aa,int i) { m_iner_gain[i]=aa;}
99 void set_iner_hits(const double aa,int i) { m_iner_hits[i]=aa;}
100 void set_ip_eangle(const double aa,int i) { m_ip_eangle[i]=aa;}
101 void set_out_chi(const double aa,int i) { m_out_chi[i]=aa;}
102 void set_out_gain(const double aa,int i) { m_out_gain[i]=aa;}
103 void set_out_hits(const double aa,int i) { m_out_hits[i]=aa;}
104 void set_costheta(const double aa,int i) { m_costheta[i]=aa;}
105 void set_t0(const double aa,int i) { m_t0[i]=aa;}
106 void set_dedx(const double aa,int i) {m_dedx[i]=aa;}
107 void set_hadron(const double aa,int i) {m_hadron[i]=aa;}
108 void set_hadronNo(int no){m_hadronNo=no;}
109 void set_enanglesize(int no){m_enanglesize=no;}
110 void set_enangle(const double aa,int i) {m_enangle[i]=aa;}
111
112 private:
113 int m_runNO;
114
115 double m_ddg[4][43];
116 double m_ggs[4][43];
117 double m_wireg[6796];
118 double m_gain;
119 double m_zdep[4][43];
120 double m_resol;
121 double m_layerg[43];
122 double m_enta[4][43];
123 // double m_rung[4][1000];
124 vector<double> m_rung1;
125 vector<double> m_rung2;
126 vector<double> m_rung3;
127 vector<double> m_rung4;
128 //vector <Double_t> rung
129
130 // add on June 4th,2009
131 double m_id_doca[1600];
132 double m_iner_chi[1600];
133 double m_iner_gain[1600];
134 double m_iner_hits[1600];
135 double m_ip_eangle[1600];
136 double m_out_chi[1600];
137 double m_out_gain[1600];
138 double m_out_hits[1600];
139 double m_costheta[80];
140 double m_t0[35];
141 double m_dedx[35];
142 double m_hadron[20];
143 double m_enangle[100];
144 int m_hadronNo;
145 int m_enanglesize;
146 };
147}
148
149
150#endif
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)