14 {
15 char hname[200];
16
17 m_fdcom = new TFolder("mcommon", "common");
18 hlist ->
Add(m_fdcom);
19
20 m_effNtrk = new TH1F("meffNtrk", "", 43, -0.5, 42.5);
21 m_fdcom->Add(m_effNtrk);
22
23 m_effNtrkRecHit = new TH1F("meffNtrkRecHit", "", 43, -0.5, 42.5);
24 m_fdcom->Add(m_effNtrkRecHit);
25
26 m_hresAllInc = new TH1F("mHResAllInc", "", 200, -1.0, 1.0);
27 m_fdcom ->
Add(m_hresAllInc);
28
29 m_hresAllExc = new TH1F("mHResAllExc", "", 200, -1.0, 1.0);
30 m_fdcom ->
Add(m_hresAllExc);
31
32 m_hresAllAve = new TH1F("mHResAllAve", "", 200, -1.0, 1.0);
33 m_fdcom ->
Add(m_hresAllAve);
34
35 m_hresInnInc = new TH1F("mHResInnInc", "", 200, -1.0, 1.0);
36 m_fdcom ->
Add(m_hresInnInc);
37
38 m_hresInnExc = new TH1F("mHResInnExc", "", 200, -1.0, 1.0);
39 m_fdcom ->
Add(m_hresInnExc);
40
41 m_hresStpInc = new TH1F("mHResStpInc", "", 200, -1.0, 1.0);
42 m_fdcom ->
Add(m_hresStpInc);
43
44 m_hresStpExc = new TH1F("mHResStpExc", "", 200, -1.0, 1.0);
45 m_fdcom ->
Add(m_hresStpExc);
46
47 m_hresOutInc = new TH1F("mHResOutInc", "", 200, -1.0, 1.0);
48 m_fdcom ->
Add(m_hresOutInc);
49
50 m_hresOutExc = new TH1F("mHResOutExc", "", 200, -1.0, 1.0);
51 m_fdcom ->
Add(m_hresOutExc);
52
53 m_fdResQ = new TFolder("mResQ", "ResQ");
54 hlist->Add(m_fdResQ);
55 for(int i=0; i<14; i++){
56 sprintf(hname,
"mresoAll_qbin%02d", i);
57 m_hresAveAllQ[i] = new TH1F(hname, "", 200, -1, 1);
58 m_fdResQ->Add(m_hresAveAllQ[i]);
59
60 sprintf(hname,
"mresoOut_qbin%02d", i);
61 m_hresAveOutQ[i] = new TH1F(hname, "", 200, -1, 1);
62 m_fdResQ->Add(m_hresAveOutQ[i]);
63 }
64 for(int lay=0; lay<43; lay++){
65 for(int i=0; i<14; i++){
66 sprintf(hname,
"mresoLay%02d_qbin%02d", lay, i);
67 m_hresAveLayQ[lay][i] = new TH1F(hname, "", 200, -1, 1);
68 m_fdResQ->Add(m_hresAveLayQ[lay][i]);
69 }
70 }
71
72 m_hbbTrkFlg = new TH1F("mBbTrkFlg", "", 100, 0, 6);
73 m_fdcom ->
Add(m_hbbTrkFlg);
74
75 m_hTesAll = new TH1F("mTesAll", "", 1000, 0, 2000);
76 m_fdcom ->
Add(m_hTesAll);
77
78 m_hTesGood = new TH1F("mTesGood", "", 1000, 0, 2000);
79 m_fdcom ->
Add(m_hTesGood);
80
81 m_hTesAllFlag = new TH1F("mTesAllFlag", "", 300, -0.5, 299.5);
82 m_fdcom ->
Add(m_hTesAllFlag);
83
84 m_hTesRec = new TH1F("mTesRec", "", 1000, 0, 2000);
85 m_fdcom ->
Add(m_hTesRec);
86
87 m_hTesCalFlag = new TH1F("mTesCalFlag", "", 1000, 0, 2000);
88 m_fdcom ->
Add(m_hTesCalFlag);
89
90 m_hTesCalUse = new TH1F("mTesCalUse", "", 1000, 0, 2000);
91 m_fdcom ->
Add(m_hTesCalUse);
92
93 m_hnRawHit = new TH1F("mNRawHit", "", 6797, -0.5, 6796.5);
94 m_fdcom ->
Add(m_hnRawHit);
95
96 m_hpt = new TH1F("mHPt", "", 800, 0, 3);
97 m_fdcom ->
Add(m_hpt);
98
99 m_hptPos = new TH1F("mHPtPos", "", 800, 0, 3);
100 m_fdcom ->
Add(m_hptPos);
101
102 m_hptNeg = new TH1F("mHPtNeg", "", 800, 0, 3);
103 m_fdcom ->
Add(m_hptNeg);
104
105 m_hp = new TH1F("mHP", "", 800, 0, 3);
106 m_fdcom ->
Add(m_hp);
107
108 m_hp_cms = new TH1F("mHPCMS", "", 800, 0, 3);
109 m_fdcom ->
Add(m_hp_cms);
110
111 m_hpMax = new TH1F("mHPMax", "", 800, 0, 3);
112 m_fdcom ->
Add(m_hpMax);
113
114 m_hpMaxCms = new TH1F("mHPMax_Cms", "", 800, 0, 3);
115 m_fdcom ->
Add(m_hpMaxCms);
116
117 m_hpPos = new TH1F("mHP_Pos", "", 800, 0, 3);
118 m_fdcom ->
Add(m_hpPos);
119
120 m_hpNeg = new TH1F("mHP_Neg", "", 800, 0, 3);
121 m_fdcom ->
Add(m_hpNeg);
122
123 m_hpPoscms = new TH1F("mHP_Pos_cms", "", 800, 0, 3);
124 m_fdcom ->
Add(m_hpPoscms);
125
126 m_hpNegcms = new TH1F("mHP_Neg_cms", "", 800, 0, 3);
127 m_fdcom ->
Add(m_hpNegcms);
128
129 m_hp_cut = new TH1F("mHPCut", "", 800, 0, 3);
130 m_fdcom ->
Add(m_hp_cut);
131
132 m_hchisq = new TH1F("mChisq", "", 10, 0, 100);
133 m_fdcom ->
Add(m_hchisq);
134
135 m_hnTrk = new TH1F("mHNtrack", "HNtrack", 10, -0.5, 9.5);
136 m_fdcom ->
Add(m_hnTrk);
137
138 m_hnTrkCal = new TH1F("mHNtrackCal", "HNtrackCal", 10, -0.5, 9.5);
139 m_fdcom ->
Add(m_hnTrkCal);
140
141 m_hnhitsRec = new TH1F("mHNhitsRec", "", 100, -0.5, 99.5);
142 m_fdcom ->
Add(m_hnhitsRec);
143
144 m_hnhitsRecInn = new TH1F("mHNhitsInnRec", "", 60, 0.5, 60.5);
145 m_fdcom ->
Add(m_hnhitsRecInn);
146
147 m_hnhitsRecStp = new TH1F("mHNhitsStpRec", "", 60, 0.5, 60.5);
148 m_fdcom ->
Add(m_hnhitsRecStp);
149
150 m_hnhitsRecOut = new TH1F("mHNhitsOutRec", "", 60, 0.5, 60.5);
151 m_fdcom ->
Add(m_hnhitsRecOut);
152
153 m_hnhitsCal = new TH1F("mHNhitsCal", "", 100, -0.5, 99.5);
154 m_fdcom ->
Add(m_hnhitsCal);
155
156 m_hnhitsCalInn = new TH1F("mHNhitsCalInn", "", 60, 0.5, 60.5);
157 m_fdcom ->
Add(m_hnhitsCalInn);
158
159 m_hnhitsCalStp = new TH1F("mHNhitsCalStp", "", 60, 0.5, 60.5);
160 m_fdcom ->
Add(m_hnhitsCalStp);
161
162 m_hnhitsCalOut = new TH1F("mHNhitsCalOut", "", 60, 0.5, 60.5);
163 m_fdcom ->
Add(m_hnhitsCalOut);
164
165 m_wirehitmap = new TH1F("mWire_HitMap", "Wire_HitMap", 6796, -0.5, 6795.5);
166 m_fdcom ->
Add(m_wirehitmap);
167
168 m_layerhitmap = new TH1F("mLayer_HitMap", "Layer_HitMap", 43, -0.5, 42.5);
169 m_fdcom ->
Add(m_layerhitmap);
170
171 m_hnoisephi = new TH1F("mphi_noise", "", 100, 0, 6.284);
172 m_fdcom ->
Add(m_hnoisephi);
173
174 m_hnoiselay = new TH1F("mLayer_noise", "Layer_noise", 43, -0.5, 42.5);
175 m_fdcom ->
Add(m_hnoiselay);
176
177 m_hnoisenhits = new TH1F("mnhits_noise", "nhits_noise", 6796, -0.5, 6795.5);
178 m_fdcom ->
Add(m_hnoisenhits);
179
180 m_hratio = new TH1F("mratio", "", 100, 0, 1);
181 m_fdcom ->
Add(m_hratio);
182
183 m_hdr = new TH1F("mdr", "", 500, -500, 500);
184 m_fdcom ->
Add(m_hdr);
185
186 m_hphi0 = new TH1F("mphi0", "", 100, 0, 6.284);
187 m_fdcom ->
Add(m_hphi0);
188
189 m_hkap = new TH1F("mkappa", "", 400, -50, 50);
190 m_fdcom ->
Add(m_hkap);
191
192 m_hdz = new TH1F("mdz", "", 500, -1000, 1000);
193 m_fdcom ->
Add(m_hdz);
194
195 m_htanl = new TH1F("mtanl", "", 200, -5, 5);
196 m_fdcom ->
Add(m_htanl);
197
198 m_hcosthe = new TH1F("mcostheta", "", 200, -1, 1);
199 m_fdcom ->
Add(m_hcosthe);
200
201 m_hcostheNeg = new TH1F("mcosthetaNeg", "", 200, -1, 1);
202 m_fdcom ->
Add(m_hcostheNeg);
203
204 m_hcosthePos = new TH1F("mcosthetaPos", "", 200, -1, 1);
205 m_fdcom ->
Add(m_hcosthePos);
206
207 m_hx0 = new TH1F("mx0", "", 100, -10, 10);
208 m_fdcom ->
Add(m_hx0);
209
210 m_hy0 = new TH1F("my0", "", 100, -10, 10);
211 m_fdcom ->
Add(m_hy0);
212
213 m_hdelZ0 = new TH1F("mdelta_z0", "", 100, -50, 50);
214 m_fdcom ->
Add(m_hdelZ0);
215
216 m_nGrPoint = 0;
217 m_grX0Y0 = new TGraph();
218 m_grX0Y0->SetName("mx0y0");
219 m_fdcom ->
Add(m_grX0Y0);
220
221 m_hitEffAll = new TH1F("mhitEffAll", "", 6800, -0.5, 6799.5);
222 m_fdcom ->
Add(m_hitEffAll);
223
224 m_hitEffRaw = new TH1F("mhitEffRaw", "", 6800, -0.5, 6799.5);
225 m_fdcom ->
Add(m_hitEffRaw);
226
227 m_hitEffRec = new TH1F("mhitEffRec", "", 6800, -0.5, 6799.5);
228 m_fdcom ->
Add(m_hitEffRec);
229
230
231 m_fdTime = new TFolder("mtime", "time");
232 hlist ->
Add(m_fdTime);
233
234 for(
int lay=0; lay<
NLAYER; lay++){
235 sprintf(hname,
"mTraw%02d", lay);
236 m_htraw[lay] = new TH1F(hname, "", 1000, 0, 2000);
237 m_fdTime ->
Add(m_htraw[lay]);
238
239 sprintf(hname,
"mTdr%02d", lay);
240 m_htdr[lay] = new TH1F(hname, "", 510, -10, 500);
241 m_fdTime ->
Add(m_htdr[lay]);
242
243 for(int lr=0; lr<2; lr++){
244 sprintf(hname,
"mTdr%02d_lr%01d", lay, lr);
245 m_htdrlr[lay][lr] = new TH1F(hname, "", 510, -10, 500);
246 m_fdTime ->
Add(m_htdrlr[lay][lr]);
247 }
248 }
249
250
251 m_fdres = new TFolder("mresolution", "resolution");
252 hlist ->
Add(m_fdres);
253
254 for(
int lay=0; lay<
NLAYER; lay++){
255 sprintf(hname,
"mReso%02dInc", lay);
256 m_hresInc[lay] = new TH1F(hname, "", 1000, -5, 5);
257 m_fdres ->
Add(m_hresInc[lay]);
258
259 sprintf(hname,
"mReso%02dExc", lay);
260 m_hresExc[lay] = new TH1F(hname, "", 1000, -5, 5);
261 m_fdres ->
Add(m_hresExc[lay]);
262
263 for (int lr=0; lr<2; lr++){
264 sprintf(hname,
"mReso%02dInc_lr%01d", lay, lr);
265 m_hreslrInc[lay][lr] = new TH1F(hname, "", 1000, -5, 5);
266 m_fdres->Add(m_hreslrInc[lay][lr]);
267
268 sprintf(hname,
"mReso%02dExc_lr%01d", lay, lr);
269 m_hreslrExc[lay][lr] = new TH1F(hname, "", 1000, -5, 5);
270 m_fdres->Add(m_hreslrExc[lay][lr]);
271 }
272 }
273
274
275 m_fdmomPhi = new TFolder("mmomPhi", "momPhi");
276 hlist ->
Add(m_fdmomPhi);
277
278 int thbin;
281 m_ppPhi[
bin] =
new TH1F(hname,
"", 400, 1.0, 2.5);
282 m_fdmomPhi->Add(m_ppPhi[
bin]);
283
285 m_pnPhi[
bin] =
new TH1F(hname,
"", 400, 1.0, 2.5);
286 m_fdmomPhi->Add(m_pnPhi[
bin]);
287
289 m_ppPhiCms[
bin] =
new TH1F(hname,
"", 400, 1.0, 2.5);
290 m_fdmomPhi->Add(m_ppPhiCms[
bin]);
291
293 m_pnPhiCms[
bin] =
new TH1F(hname,
"", 400, 1.0, 2.5);
294 m_fdmomPhi->Add(m_pnPhiCms[
bin]);
295
296 for(thbin=0; thbin<NThetaBin; thbin++){
297 sprintf(hname,
"mhPpos_theta%02d_phi%02d", thbin,
bin);
298 m_ppThePhi[thbin][
bin] =
new TH1F(hname,
"", 400, 1.0, 2.5);
299 m_fdmomPhi->Add(m_ppThePhi[thbin][
bin]);
300
301 sprintf(hname,
"mhPneg_theta%02d_phi%02d", thbin,
bin);
302 m_pnThePhi[thbin][
bin] =
new TH1F(hname,
"", 400, 1.0, 2.5);
303 m_fdmomPhi->Add(m_pnThePhi[thbin][
bin]);
304
305 sprintf(hname,
"mhPposCms_theta%02d_phi%02d", thbin,
bin);
306 m_ppThePhiCms[thbin][
bin] =
new TH1F(hname,
"", 400, 1.0, 2.5);
307 m_fdmomPhi->Add(m_ppThePhiCms[thbin][
bin]);
308
309 sprintf(hname,
"mhPnegCms_theta%02d_phi%02d", thbin,
bin);
310 m_pnThePhiCms[thbin][
bin] =
new TH1F(hname,
"", 400, 1.0, 2.5);
311 m_fdmomPhi->Add(m_pnThePhiCms[thbin][
bin]);
312 }
313 }
314 for(thbin=0; thbin<NThetaBin; thbin++){
315 sprintf(hname,
"mhPpos_the%02d", thbin);
316 m_ppThe[thbin] = new TH1F(hname, "", 400, 1.0, 2.5);
317 m_fdmomPhi->Add(m_ppThe[thbin]);
318
319 sprintf(hname,
"mhPneg_the%02d", thbin);
320 m_pnThe[thbin] = new TH1F(hname, "", 400, 1.0, 2.5);
321 m_fdmomPhi->Add(m_pnThe[thbin]);
322
323 sprintf(hname,
"mhPposCms_the%02d", thbin);
324 m_ppTheCms[thbin] = new TH1F(hname, "", 400, 1.0, 2.5);
325 m_fdmomPhi->Add(m_ppTheCms[thbin]);
326
327 sprintf(hname,
"mhPnegCms_the%02d", thbin);
328 m_pnTheCms[thbin] = new TH1F(hname, "", 400, 1.0, 2.5);
329 m_fdmomPhi->Add(m_pnTheCms[thbin]);
330 }
331
332 m_fdr2d = new TFolder("mres2d", "res2d");
333 hlist ->
Add(m_fdr2d);
334 for(int lay=0; lay<43; lay++){
335 for(
int iEntr=0; iEntr<
gNEntr[lay]; iEntr++){
336 for(int lr=0; lr<2; lr++){
338 sprintf(hname,
"mR2d%02d_%02d_%01d_%02dInc", lay, iEntr, lr,
bin);
339 m_hr2dInc[lay][iEntr][lr][
bin] =
new TH1F(hname,
"", 200, -1, 1);
340 m_fdr2d ->
Add(m_hr2dInc[lay][iEntr][lr][
bin]);
341
342 sprintf(hname,
"mR2d%02d_%02d_%01d_%02dExc", lay, iEntr, lr,
bin);
343 m_hr2dExc[lay][iEntr][lr][
bin] =
new TH1F(hname,
"", 200, -1, 1);
344 m_fdr2d ->
Add(m_hr2dExc[lay][iEntr][lr][
bin]);
345 }
346 }
347 }
348 }
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363}