CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TestMapping.h
Go to the documentation of this file.
1#ifndef TESTMAPPINGALG
2#define TESTMAPPINGALG
3
4#include "CgemGeomSvc.h"
7#include <vector>
8#include <string>
9#include "TFile.h"
10#include "TTree.h"
11#include "TString.h"
13#include "TGraph.h"
14//#include "ReadCosmicRayData/StripMapper.h"
15
16class IDataProviderSvc;
17
18// CHECK hardcoded
19#define nstrip_L1_x 856
20#define nstrip_L1_v 1173
21#define nstrip_L2_x 630
22#define nstrip_L2_v 1077
23#define nstrip_L3_x 832
24#define nstrip_L3_v 1395
25#define nphistep 360
26#define nzstep 100
27
28
29class TestMapping : public Algorithm{
30 public:
31 // Constructor
32 TestMapping(const std::string& name, ISvcLocator* pSvcLocator);
34 // Executable
35 StatusCode initialize();
36 StatusCode execute ();
37 StatusCode finalize ();
38
39 bool PositionCgemBoss();
40 bool PositionGRAAL();
43
44
45 private:
46
47 ICgemGeomSvc* m_geomSvc;
48 string CosmicRayDataSetID;
49
50 double pitch_GRAAL;
51 double anode_radius_GRAAL[3];
52 double gap_GRAAL[3];
53
54 TFile *output;
55
56 double stripid_L1_x[nstrip_L1_x];
57 double stripid_L1_v[nstrip_L1_v];
58 double s_L1_S1[nstrip_L1_x];
59 double phi_L1_S1[nstrip_L1_x];
60 double v_L1_S1[nstrip_L1_v];
61
62 double stripid_L2_x[nstrip_L2_x];
63 double stripid_L2_v[nstrip_L2_v];
64 double s_L2_S1[nstrip_L2_x];
65 double phi_L2_S1[nstrip_L2_x];
66 double v_L2_S1[nstrip_L2_v];
67 double s_L2_S2[nstrip_L2_x];
68 double phi_L2_S2[nstrip_L2_x];
69 double v_L2_S2[nstrip_L2_v];
70
71 double stripid_L3_x[nstrip_L3_x];
72 double stripid_L3_v[nstrip_L3_v];
73 double s_L3_S1[nstrip_L3_x];
74 double phi_L3_S1[nstrip_L3_x];
75 double v_L3_S1[nstrip_L3_v];
76 double s_L3_S2[nstrip_L3_x];
77 double phi_L3_S2[nstrip_L3_x];
78 double v_L3_S2[nstrip_L3_v];
79
80
81 TGraph *gs_L1_S1;
82 TGraph *gphi_L1_S1;
83 TGraph *gv_L1_S1;
84
85 TGraph *gs_L2_S1;
86 TGraph *gphi_L2_S1;
87 TGraph *gv_L2_S1;
88 TGraph *gs_L2_S2;
89 TGraph *gphi_L2_S2;
90 TGraph *gv_L2_S2;
91
92 TGraph *gs_L3_S1;
93 TGraph *gphi_L3_S1;
94 TGraph *gv_L3_S1;
95 TGraph *gs_L3_S2;
96 TGraph *gphi_L3_S2;
97 TGraph *gv_L3_S2;
98
99 // --- XSSING
100 double phi_runner_L1_S1[nphistep];
101 double x_runner_L1_S1[nphistep];
102 double y_runner_L1_S1[nphistep];
103 double z_runner_L1_S1[nphistep];
104 double X_ID_L1_S1[nphistep];
105 double V_ID_atzmin_L1_S1[nphistep];
106 double V_ID_atzmax_L1_S1[nphistep];
107 double V_ID_atphi0_L1_S1[nzstep];
108
109 double phi_runner_L2_S1[nphistep];
110 double x_runner_L2_S1[nphistep];
111 double y_runner_L2_S1[nphistep];
112 double z_runner_L2_S1[nphistep];
113 double X_ID_L2_S1[nphistep];
114 double V_ID_atzmin_L2_S1[nphistep];
115 double V_ID_atzmax_L2_S1[nphistep];
116 double V_ID_atphi0_L2_S1[nzstep];
117
118 double phi_runner_L2_S2[nphistep];
119 double x_runner_L2_S2[nphistep];
120 double y_runner_L2_S2[nphistep];
121 double z_runner_L2_S2[nphistep];
122 double X_ID_L2_S2[nphistep];
123 double V_ID_atzmin_L2_S2[nphistep];
124 double V_ID_atzmax_L2_S2[nphistep];
125 double V_ID_atphi0_L2_S2[nzstep];
126
127 double phi_runner_L3_S1[nphistep];
128 double x_runner_L3_S1[nphistep];
129 double y_runner_L3_S1[nphistep];
130 double z_runner_L3_S1[nphistep];
131 double X_ID_L3_S1[nphistep];
132 double V_ID_atzmin_L3_S1[nphistep];
133 double V_ID_atzmax_L3_S1[nphistep];
134 double V_ID_atphi0_L3_S1[nzstep];
135
136 double phi_runner_L3_S2[nphistep];
137 double x_runner_L3_S2[nphistep];
138 double y_runner_L3_S2[nphistep];
139 double z_runner_L3_S2[nphistep];
140 double X_ID_L3_S2[nphistep];
141 double V_ID_atzmin_L3_S2[nphistep];
142 double V_ID_atzmax_L3_S2[nphistep];
143 double V_ID_atphi0_L3_S2[nzstep];
144
145 TGraph *gphi_runner_L1_S1;
146 TGraph *gx_runner_L1_S1;
147 TGraph *gy_runner_L1_S1;
148 TGraph *gz_runner_L1_S1;
149 TGraph *gX_ID_L1_S1;
150 TGraph *gV_ID_atzmin_L1_S1;
151 TGraph *gV_ID_atzmax_L1_S1;
152 TGraph *gV_ID_atphi0_L1_S1;
153
154 TGraph *gphi_runner_L2_S1;
155 TGraph *gx_runner_L2_S1;
156 TGraph *gy_runner_L2_S1;
157 TGraph *gz_runner_L2_S1;
158 TGraph *gX_ID_L2_S1;
159 TGraph *gV_ID_atzmin_L2_S1;
160 TGraph *gV_ID_atzmax_L2_S1;
161 TGraph *gV_ID_atphi0_L2_S1;
162
163 TGraph *gphi_runner_L2_S2;
164 TGraph *gx_runner_L2_S2;
165 TGraph *gy_runner_L2_S2;
166 TGraph *gz_runner_L2_S2;
167 TGraph *gX_ID_L2_S2;
168 TGraph *gV_ID_atzmin_L2_S2;
169 TGraph *gV_ID_atzmax_L2_S2;
170 TGraph *gV_ID_atphi0_L2_S2;
171
172 TGraph *gphi_runner_L3_S1;
173 TGraph *gx_runner_L3_S1;
174 TGraph *gy_runner_L3_S1;
175 TGraph *gz_runner_L3_S1;
176 TGraph *gX_ID_L3_S1;
177 TGraph *gV_ID_atzmin_L3_S1;
178 TGraph *gV_ID_atzmax_L3_S1;
179 TGraph *gV_ID_atphi0_L3_S1;
180
181 TGraph *gphi_runner_L3_S2;
182 TGraph *gx_runner_L3_S2;
183 TGraph *gy_runner_L3_S2;
184 TGraph *gz_runner_L3_S2;
185 TGraph *gX_ID_L3_S2;
186 TGraph *gV_ID_atzmin_L3_S2;
187 TGraph *gV_ID_atzmax_L3_S2;
188 TGraph *gV_ID_atphi0_L3_S2;
189
190
191
192
193 // ---------------
194
195
196 double stripid_L1_x_GRAAL[nstrip_L1_x];
197 double stripid_L1_v_GRAAL[nstrip_L1_v];
198 double x_L1_GRAAL[nstrip_L1_x];
199 double z_L1_GRAAL[nstrip_L1_x];
200 double phi_L1_GRAAL[nstrip_L1_x];
201 double v_L1_GRAAL[nstrip_L1_v];
202
203 double stripid_L2_x_GRAAL[2*nstrip_L2_x];
204 double stripid_L2_v_GRAAL[2*nstrip_L2_v];
205 double x_L2_GRAAL[2*nstrip_L2_x];
206 double z_L2_GRAAL[2*nstrip_L2_x];
207 double phi_L2_GRAAL[2*nstrip_L2_x];
208 double v_L2_GRAAL[2*nstrip_L2_v];
209
210 double stripid_L3_x_GRAAL[2*nstrip_L3_x];
211 double stripid_L3_v_GRAAL[2*nstrip_L3_v];
212 double x_L3_GRAAL[2*nstrip_L3_x];
213 double z_L3_GRAAL[2*nstrip_L3_x];
214 double phi_L3_GRAAL[2*nstrip_L3_x];
215 double v_L3_GRAAL[2*nstrip_L3_v];
216
217 TGraph *gx_L1_GRAAL;
218 TGraph *gz_L1_GRAAL;
219 TGraph *gphi_L1_GRAAL;
220 TGraph *gv_L1_GRAAL;
221
222 TGraph *gx_L2_GRAAL;
223 TGraph *gz_L2_GRAAL;
224 TGraph *gphi_L2_GRAAL;
225 TGraph *gv_L2_GRAAL;
226
227 TGraph *gx_L3_GRAAL;
228 TGraph *gz_L3_GRAAL;
229 TGraph *gphi_L3_GRAAL;
230 TGraph *gv_L3_GRAAL;
231
232
233 double phi_L1_GRAAL_corr[nstrip_L1_x];
234 double phi_L2_GRAAL_corr[2*nstrip_L2_x];
235 double phi_L3_GRAAL_corr[2*nstrip_L3_x];
236 double phi_L1_diff[nstrip_L1_x];
237 double phi_L2_diff[2*nstrip_L2_x];
238 double phi_L3_diff[2*nstrip_L3_x];
239
240 TGraph *gphi_L1_GRAAL_corr;
241 TGraph *gphi_L2_GRAAL_corr;
242 TGraph *gphi_L3_GRAAL_corr;
243
244 // StripMapper *mapper;
245
246
247
248};
249#endif
250
#define nzstep
Definition TestMapping.h:26
#define nstrip_L2_x
Definition TestMapping.h:21
#define nstrip_L1_v
Definition TestMapping.h:20
#define nstrip_L3_x
Definition TestMapping.h:23
#define nstrip_L3_v
Definition TestMapping.h:24
#define nstrip_L1_x
Definition TestMapping.h:19
#define nstrip_L2_v
Definition TestMapping.h:22
#define nphistep
Definition TestMapping.h:25
StatusCode initialize()
StatusCode execute()
StatusCode finalize()
bool PositionGRAAL()
bool CheckCrossingCgemBoss()
bool PositionCgemBoss()
TestMapping(const std::string &name, ISvcLocator *pSvcLocator)
bool CheckFEBPositionCgemBoss()