19 #include "boost/mpl/vector.hpp"
47 #include "TLorentzVector.h"
51 hResidualLocalXDT_W(5),
52 hResidualLocalPhiDT_W(5),
53 hResidualLocalThetaDT_W(5),
54 hResidualLocalYDT_W(5),
55 hResidualLocalXCSC_ME(18),
56 hResidualLocalPhiCSC_ME(18),
57 hResidualLocalThetaCSC_ME(18),
58 hResidualLocalYCSC_ME(18),
59 hResidualLocalXDT_MB(20),
60 hResidualLocalPhiDT_MB(20),
61 hResidualLocalThetaDT_MB(20),
62 hResidualLocalYDT_MB(20),
63 hResidualGlobalRPhiDT_W(5),
64 hResidualGlobalPhiDT_W(5),
65 hResidualGlobalThetaDT_W(5),
66 hResidualGlobalZDT_W(5),
67 hResidualGlobalRPhiCSC_ME(18),
68 hResidualGlobalPhiCSC_ME(18),
69 hResidualGlobalThetaCSC_ME(18),
70 hResidualGlobalRCSC_ME(18),
71 hResidualGlobalRPhiDT_MB(20),
72 hResidualGlobalPhiDT_MB(20),
73 hResidualGlobalThetaDT_MB(20),
74 hResidualGlobalZDT_MB(20)
108 if(theDataType !=
"RealData" && theDataType !=
"SimData")
109 edm::LogError(
"MuonAlignmentAnalyzer") <<
"Error in Data Type!!"<<std::endl;
145 hGBPhivsEta =
fs->
make<TH2F> (
"GBPhivsEta",
"#phi VS #eta",100,-2.5,2.5,100,-3.1416,3.1416);
148 hGBPTDiff =
fs->
make<TH1F>(
"GBpTDiff",
"p_{T}^{rec} - p_{T}^{gen} ",250,-120,120);
149 hGBPTDiffvsEta =
fs->
make<TH2F> (
"GBPTDiffvsEta",
"p_{T}^{rec} - p_{T}^{gen} VS #eta",100,-2.5,2.5,250,-120,120);
150 hGBPTDiffvsPhi =
fs->
make<TH2F> (
"GBPTDiffvsPhi",
"p_{T}^{rec} - p_{T}^{gen} VS #phi",100,-3.1416,3.1416,250,-120,120);
154 hGBinvPTres =
fs->
make<TH1F>(
"GBinvPTRes",
"#sigma (q/p_{T}) Resolution",100,-2,2);
155 hGBinvPTvsEta =
fs->
make<TH2F> (
"GBinvPTvsEta",
"#sigma (q/p_{T}) VS #eta",100,-2.5,2.5,100,-2,2);
156 hGBinvPTvsPhi =
fs->
make<TH2F> (
"GBinvPTvsPhi",
"#sigma (q/p_{T}) VS #phi",100,-3.1416,3.1416,100,-2,2);
182 hSAPhivsEta =
fs->
make<TH2F> (
"SAPhivsEta",
"#phi VS #eta",100,-2.5,2.5,100,-3.1416,3.1416);
185 hSAPTDiff =
fs->
make<TH1F>(
"SApTDiff",
"p_{T}^{rec} - p_{T}^{gen} ",250,-120,120);
186 hSAPTDiffvsEta =
fs->
make<TH2F> (
"SAPTDiffvsEta",
"p_{T}^{rec} - p_{T}^{gen} VS #eta",100,-2.5,2.5,250,-120,120);
187 hSAPTDiffvsPhi =
fs->
make<TH2F> (
"SAPTDiffvsPhi",
"p_{T}^{rec} - p_{T}^{gen} VS #phi",100,-3.1416,3.1416,250,-120,120);
193 hSAinvPTvsEta =
fs->
make<TH2F> (
"SAinvPTvsEta",
"#sigma (q/p_{T}) VS #eta",100,-2.5,2.5,100,-2,2);
194 hSAinvPTvsPhi =
fs->
make<TH2F> (
"SAinvPTvsPhi",
"#sigma (q/p_{T}) VS #phi",100,-3.1416,3.1416,100,-2,2);
216 hSimPhivsEta =
fs->
make<TH2F> (
"SimPhivsEta",
"#phi VS #eta",100,-2.5,2.5,100,-3.1416,3.1416);
247 hResidualLocalXDT_W[1]=
fs->
make<TH1F>(
"hResidualLocalXDT_W-1",
"hResidualLocalXDT_W-1",200,-10,10);
248 hResidualLocalPhiDT_W[1]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_W-1",
"hResidualLocalPhiDT_W-1",200,-1,1);
249 hResidualLocalThetaDT_W[1]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_W-1",
"hResidualLocalThetaDT_W-1",200,-1,1);
250 hResidualLocalYDT_W[1] =
fs->
make<TH1F>(
"hResidualLocalYDT_W-1",
"hResidualLocalYDT_W-1",200,-10,10);
251 hResidualLocalXDT_W[2]=
fs->
make<TH1F>(
"hResidualLocalXDT_W0",
"hResidualLocalXDT_W0",200,-10,10);
252 hResidualLocalPhiDT_W[2]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_W0",
"hResidualLocalPhiDT_W0",200,-1,1);
253 hResidualLocalThetaDT_W[2]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_W0",
"hResidualLocalThetaDT_W0",200,-1,1);
254 hResidualLocalYDT_W[2] =
fs->
make<TH1F>(
"hResidualLocalYDT_W0",
"hResidualLocalYDT_W0",200,-10,10);
255 hResidualLocalXDT_W[3]=
fs->
make<TH1F>(
"hResidualLocalXDT_W1",
"hResidualLocalXDT_W1",200,-10,10);
256 hResidualLocalPhiDT_W[3]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_W1",
"hResidualLocalPhiDT_W1",200,-1,1);
257 hResidualLocalThetaDT_W[3]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_W1",
"hResidualLocalThetaDT_W1",200,-1,1);
258 hResidualLocalYDT_W[3] =
fs->
make<TH1F>(
"hResidualLocalYDT_W1",
"hResidualLocalYDT_W1",200,-10,10);
259 hResidualLocalXDT_W[4]=
fs->
make<TH1F>(
"hResidualLocalXDT_W2",
"hResidualLocalXDT_W2",200,-10,10);
260 hResidualLocalPhiDT_W[4]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_W2",
"hResidualLocalPhiDT_W2",200,-1,1);
261 hResidualLocalThetaDT_W[4]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_W2",
"hResidualLocalThetaDT_W2",200,-1,1);
262 hResidualLocalYDT_W[4] =
fs->
make<TH1F>(
"hResidualLocalYDT_W2",
"hResidualLocalYDT_W2",200,-10,10);
267 hResidualGlobalRPhiDT_W[1]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_W-1",
"hResidualGlobalRPhiDT_W-1",200,-10,10);
268 hResidualGlobalPhiDT_W[1]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_W-1",
"hResidualGlobalPhiDT_W-1",200,-1,1);
269 hResidualGlobalThetaDT_W[1]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_W-1",
"hResidualGlobalThetaDT_W-1",200,-1,1);
270 hResidualGlobalZDT_W[1] =
fs->
make<TH1F>(
"hResidualGlobalZDT_W-1",
"hResidualGlobalZDT_W-1",200,-10,10);
271 hResidualGlobalRPhiDT_W[2]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_W0",
"hResidualGlobalRPhiDT_W0",200,-10,10);
272 hResidualGlobalPhiDT_W[2]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_W0",
"hResidualGlobalPhiDT_W0",200,-1,1);
273 hResidualGlobalThetaDT_W[2]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_W0",
"hResidualGlobalThetaDT_W0",200,-1,1);
274 hResidualGlobalZDT_W[2] =
fs->
make<TH1F>(
"hResidualGlobalZDT_W0",
"hResidualGlobalZDT_W0",200,-10,10);
275 hResidualGlobalRPhiDT_W[3]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_W1",
"hResidualGlobalRPhiDT_W1",200,-10,10);
276 hResidualGlobalPhiDT_W[3]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_W1",
"hResidualGlobalPhiDT_W1",200,-1,1);
277 hResidualGlobalThetaDT_W[3]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_W1",
"hResidualGlobalThetaDT_W1",200,-1,1);
278 hResidualGlobalZDT_W[3] =
fs->
make<TH1F>(
"hResidualGlobalZDT_W1",
"hResidualGlobalZDT_W1",200,-10,10);
279 hResidualGlobalRPhiDT_W[4]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_W2",
"hResidualGlobalRPhiDT_W2",200,-10,10);
280 hResidualGlobalPhiDT_W[4]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_W2",
"hResidualGlobalPhiDT_W2",200,-1,1);
281 hResidualGlobalThetaDT_W[4]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_W2",
"hResidualGlobalThetaDT_W2",200,-1,1);
282 hResidualGlobalZDT_W[4] =
fs->
make<TH1F>(
"hResidualGlobalZDT_W2",
"hResidualGlobalZDT_W2",200,-10,10);
289 hResidualLocalXDT_MB[1]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-2/2",
"hResidualLocalXDT_MB-2/2",200,-10,10);
290 hResidualLocalPhiDT_MB[1]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-2/2",
"hResidualLocalPhiDT_MB-2/2",200,-1,1);
291 hResidualLocalThetaDT_MB[1]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-2/2",
"hResidualLocalThetaDT_MB-2/2",200,-1,1);
292 hResidualLocalYDT_MB[1] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-2/2",
"hResidualLocalYDT_MB-2/2",200,-10,10);
293 hResidualLocalXDT_MB[2]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-2/3",
"hResidualLocalXDT_MB-2/3",200,-10,10);
294 hResidualLocalPhiDT_MB[2]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-2/3",
"hResidualLocalPhiDT_MB-2/3",200,-1,1);
295 hResidualLocalThetaDT_MB[2]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-2/3",
"hResidualLocalThetaDT_MB-2/3",200,-1,1);
296 hResidualLocalYDT_MB[2] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-2/3",
"hResidualLocalYDT_MB-2/3",200,-10,10);
297 hResidualLocalXDT_MB[3]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-2/4",
"hResidualLocalXDT_MB-2/4",200,-10,10);
298 hResidualLocalPhiDT_MB[3]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-2/4",
"hResidualLocalPhiDT_MB-2/4",200,-1,1);
299 hResidualLocalThetaDT_MB[3]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-2/4",
"hResidualLocalThetaDT_MB-2/4",200,-1,1);
300 hResidualLocalYDT_MB[3] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-2/4",
"hResidualLocalYDT_MB-2/4",200,-10,10);
301 hResidualLocalXDT_MB[4]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-1/1",
"hResidualLocalXDT_MB-1/1",200,-10,10);
302 hResidualLocalPhiDT_MB[4]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-1/1",
"hResidualLocalPhiDT_MB-1/1",200,-1,1);
303 hResidualLocalThetaDT_MB[4]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-1/1",
"hResidualLocalThetaDT_MB-1/1",200,-1,1);
304 hResidualLocalYDT_MB[4] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-1/1",
"hResidualLocalYDT_MB-1/1",200,-10,10);
305 hResidualLocalXDT_MB[5]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-1/2",
"hResidualLocalXDT_MB-1/2",200,-10,10);
306 hResidualLocalPhiDT_MB[5]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-1/2",
"hResidualLocalPhiDT_MB-1/2",200,-1,1);
307 hResidualLocalThetaDT_MB[5]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-1/2",
"hResidualLocalThetaDT_MB-1/2",200,-1,1);
308 hResidualLocalYDT_MB[5] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-1/2",
"hResidualLocalYDT_MB-1/2",200,-10,10);
309 hResidualLocalXDT_MB[6]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-1/3",
"hResidualLocalXDT_MB-1/3",200,-10,10);
310 hResidualLocalPhiDT_MB[6]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-1/3",
"hResidualLocalPhiDT_MB-1/3",200,-1,1);
311 hResidualLocalThetaDT_MB[6]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-1/3",
"hResidualLocalThetaDT_MB-1/3",200,-1,1);
312 hResidualLocalYDT_MB[6] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-1/3",
"hResidualLocalYDT_MB-1/3",200,-10,10);
313 hResidualLocalXDT_MB[7]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-1/4",
"hResidualLocalXDT_MB-1/4",200,-10,10);
314 hResidualLocalPhiDT_MB[7]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-1/4",
"hResidualLocalPhiDT_MB-1/4",200,-1,1);
315 hResidualLocalThetaDT_MB[7]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-1/4",
"hResidualLocalThetaDT_MB-1/4",200,-1,1);
316 hResidualLocalYDT_MB[7] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-1/4",
"hResidualLocalYDT_MB-1/4",200,-10,10);
317 hResidualLocalXDT_MB[8]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB0/1",
"hResidualLocalXDT_MB0/1",200,-10,10);
318 hResidualLocalPhiDT_MB[8]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB0/1",
"hResidualLocalPhiDT_MB0/1",200,-1,1);
319 hResidualLocalThetaDT_MB[8]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB0/1",
"hResidualLocalThetaDT_MB0/1",200,-1,1);
320 hResidualLocalYDT_MB[8] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB0/1",
"hResidualLocalYDT_MB0/1",200,-10,10);
321 hResidualLocalXDT_MB[9]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB0/2",
"hResidualLocalXDT_MB0/2",200,-10,10);
322 hResidualLocalPhiDT_MB[9]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB0/2",
"hResidualLocalPhiDT_MB0/2",200,-1,1);
323 hResidualLocalThetaDT_MB[9]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB0/2",
"hResidualLocalThetaDT_MB0/2",200,-1,1);
324 hResidualLocalYDT_MB[9] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB0/2",
"hResidualLocalYDT_MB0/2",200,-10,10);
325 hResidualLocalXDT_MB[10]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB0/3",
"hResidualLocalXDT_MB0/3",200,-10,10);
326 hResidualLocalThetaDT_MB[10]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB0/3",
"hResidualLocalThetaDT_MB0/3",200,-1,1);
327 hResidualLocalPhiDT_MB[10]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB0/3",
"hResidualLocalPhiDT_MB0/3",200,-1,1);
328 hResidualLocalYDT_MB[10] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB0/3",
"hResidualLocalYDT_MB0/3",200,-10,10);
329 hResidualLocalXDT_MB[11]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB0/4",
"hResidualLocalXDT_MB0/4",200,-10,10);
330 hResidualLocalPhiDT_MB[11]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB0/4",
"hResidualLocalPhiDT_MB0/4",200,-1,1);
331 hResidualLocalThetaDT_MB[11]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB0/4",
"hResidualLocalThetaDT_MB0/4",200,-1,1);
332 hResidualLocalYDT_MB[11] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB0/4",
"hResidualLocalYDT_MB0/4",200,-10,10);
333 hResidualLocalXDT_MB[12]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB1/1",
"hResidualLocalXDT_MB1/1",200,-10,10);
334 hResidualLocalPhiDT_MB[12]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB1/1",
"hResidualLocalPhiDT_MB1/1",200,-1,1);
335 hResidualLocalThetaDT_MB[12]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB1/1",
"hResidualLocalThetaDT_MB1/1",200,-1,1);
336 hResidualLocalYDT_MB[12] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB1/1",
"hResidualLocalYDT_MB1/1",200,-10,10);
337 hResidualLocalXDT_MB[13]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB1/2",
"hResidualLocalXDT_MB1/2",200,-10,10);
338 hResidualLocalPhiDT_MB[13]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB1/2",
"hResidualLocalPhiDT_MB1/2",200,-1,1);
339 hResidualLocalThetaDT_MB[13]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB1/2",
"hResidualLocalThetaDT_MB1/2",200,-1,1);
340 hResidualLocalYDT_MB[13] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB1/2",
"hResidualLocalYDT_MB1/2",200,-10,10);
341 hResidualLocalXDT_MB[14]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB1/3",
"hResidualLocalXDT_MB1/3",200,-10,10);
342 hResidualLocalPhiDT_MB[14]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB1/3",
"hResidualLocalPhiDT_MB1/3",200,-1,1);
343 hResidualLocalThetaDT_MB[14]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB1/3",
"hResidualLocalThetaDT_MB1/3",200,-1,1);
344 hResidualLocalYDT_MB[14] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB1/3",
"hResidualLocalYDT_MB1/3",200,-10,10);
345 hResidualLocalXDT_MB[15]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB1/4",
"hResidualLocalXDT_MB1/4",200,-10,10);
346 hResidualLocalPhiDT_MB[15]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB1/4",
"hResidualLocalPhiDT_MB1/4",200,-1,1);
347 hResidualLocalThetaDT_MB[15]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB1/4",
"hResidualLocalThetaDT_MB1/4",200,-1,1);
348 hResidualLocalYDT_MB[15] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB1/4",
"hResidualLocalYDT_MB1/4",200,-10,10);
349 hResidualLocalXDT_MB[16]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB2/1",
"hResidualLocalXDT_MB2/1",200,-10,10);
350 hResidualLocalPhiDT_MB[16]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB2/1",
"hResidualLocalPhiDT_MB2/1",200,-1,1);
351 hResidualLocalThetaDT_MB[16]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB2/1",
"hResidualLocalThetaDT_MB2/1",200,-1,1);
352 hResidualLocalYDT_MB[16] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB2/1",
"hResidualLocalYDT_MB2/1",200,-10,10);
353 hResidualLocalXDT_MB[17]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB2/2",
"hResidualLocalXDT_MB2/2",200,-10,10);
354 hResidualLocalPhiDT_MB[17]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB2/2",
"hResidualLocalPhiDT_MB2/2",200,-1,1);
355 hResidualLocalThetaDT_MB[17]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB2/2",
"hResidualLocalThetaDT_MB2/2",200,-1,1);
356 hResidualLocalYDT_MB[17] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB2/2",
"hResidualLocalYDT_MB2/2",200,-10,10);
357 hResidualLocalXDT_MB[18]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB2/3",
"hResidualLocalXDT_MB2/3",200,-10,10);
358 hResidualLocalPhiDT_MB[18]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB2/3",
"hResidualLocalPhiDT_MB2/3",200,-1,1);
359 hResidualLocalThetaDT_MB[18]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB2/3",
"hResidualLocalThetaDT_MB2/3",200,-1,1);
360 hResidualLocalYDT_MB[18] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB2/3",
"hResidualLocalYDT_MB2/3",200,-10,10);
361 hResidualLocalXDT_MB[19]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB2/4",
"hResidualLocalXDT_MB2/4",200,-10,10);
362 hResidualLocalPhiDT_MB[19]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB2/4",
"hResidualLocalPhiDT_MB2/4",200,-1,1);
363 hResidualLocalThetaDT_MB[19]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB2/4",
"hResidualLocalThetaDT_MB2/4",200,-1,1);
364 hResidualLocalYDT_MB[19] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB2/4",
"hResidualLocalYDT_MB2/4",200,-10,10);
369 hResidualGlobalRPhiDT_MB[1]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-2/2",
"hResidualGlobalRPhiDT_MB-2/2",200,-10,10);
370 hResidualGlobalPhiDT_MB[1]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-2/2",
"hResidualGlobalPhiDT_MB-2/2",200,-1,1);
371 hResidualGlobalThetaDT_MB[1]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-2/2",
"hResidualGlobalThetaDT_MB-2/2",200,-1,1);
372 hResidualGlobalZDT_MB[1] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-2/2",
"hResidualGlobalZDT_MB-2/2",200,-10,10);
373 hResidualGlobalRPhiDT_MB[2]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-2/3",
"hResidualGlobalRPhiDT_MB-2/3",200,-10,10);
374 hResidualGlobalPhiDT_MB[2]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-2/3",
"hResidualGlobalPhiDT_MB-2/3",200,-1,1);
375 hResidualGlobalThetaDT_MB[2]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-2/3",
"hResidualGlobalThetaDT_MB-2/3",200,-1,1);
376 hResidualGlobalZDT_MB[2] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-2/3",
"hResidualGlobalZDT_MB-2/3",200,-10,10);
377 hResidualGlobalRPhiDT_MB[3]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-2/4",
"hResidualGlobalRPhiDT_MB-2/4",200,-10,10);
378 hResidualGlobalPhiDT_MB[3]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-2/4",
"hResidualGlobalPhiDT_MB-2/4",200,-1,1);
379 hResidualGlobalThetaDT_MB[3]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-2/4",
"hResidualGlobalThetaDT_MB-2/4",200,-1,1);
380 hResidualGlobalZDT_MB[3] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-2/4",
"hResidualGlobalZDT_MB-2/4",200,-10,10);
381 hResidualGlobalRPhiDT_MB[4]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-1/1",
"hResidualGlobalRPhiDT_MB-1/1",200,-10,10);
382 hResidualGlobalPhiDT_MB[4]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-1/1",
"hResidualGlobalPhiDT_MB-1/1",200,-1,1);
383 hResidualGlobalThetaDT_MB[4]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-1/1",
"hResidualGlobalThetaDT_MB-1/1",200,-1,1);
384 hResidualGlobalZDT_MB[4] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-1/1",
"hResidualGlobalZDT_MB-1/1",200,-10,10);
385 hResidualGlobalRPhiDT_MB[5]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-1/2",
"hResidualGlobalRPhiDT_MB-1/2",200,-10,10);
386 hResidualGlobalPhiDT_MB[5]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-1/2",
"hResidualGlobalPhiDT_MB-1/2",200,-1,1);
387 hResidualGlobalThetaDT_MB[5]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-1/2",
"hResidualGlobalThetaDT_MB-1/2",200,-1,1);
388 hResidualGlobalZDT_MB[5] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-1/2",
"hResidualGlobalZDT_MB-1/2",200,-10,10);
389 hResidualGlobalRPhiDT_MB[6]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-1/3",
"hResidualGlobalRPhiDT_MB-1/3",200,-10,10);
390 hResidualGlobalPhiDT_MB[6]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-1/3",
"hResidualGlobalPhiDT_MB-1/3",200,-1,1);
391 hResidualGlobalThetaDT_MB[6]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-1/3",
"hResidualGlobalThetaDT_MB-1/3",200,-1,1);
392 hResidualGlobalZDT_MB[6] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-1/3",
"hResidualGlobalZDT_MB-1/3",200,-10,10);
393 hResidualGlobalRPhiDT_MB[7]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-1/4",
"hResidualGlobalRPhiDT_MB-1/4",200,-10,10);
394 hResidualGlobalPhiDT_MB[7]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-1/4",
"hResidualGlobalPhiDT_MB-1/4",200,-1,1);
395 hResidualGlobalThetaDT_MB[7]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-1/4",
"hResidualGlobalThetaDT_MB-1/4",200,-1,1);
396 hResidualGlobalZDT_MB[7] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-1/4",
"hResidualGlobalZDT_MB-1/4",200,-10,10);
397 hResidualGlobalRPhiDT_MB[8]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB0/1",
"hResidualGlobalRPhiDT_MB0/1",200,-10,10);
398 hResidualGlobalPhiDT_MB[8]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB0/1",
"hResidualGlobalPhiDT_MB0/1",200,-1,1);
399 hResidualGlobalThetaDT_MB[8]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB0/1",
"hResidualGlobalThetaDT_MB0/1",200,-1,1);
400 hResidualGlobalZDT_MB[8] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB0/1",
"hResidualGlobalZDT_MB0/1",200,-10,10);
401 hResidualGlobalRPhiDT_MB[9]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB0/2",
"hResidualGlobalRPhiDT_MB0/2",200,-10,10);
402 hResidualGlobalPhiDT_MB[9]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB0/2",
"hResidualGlobalPhiDT_MB0/2",200,-1,1);
403 hResidualGlobalThetaDT_MB[9]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB0/2",
"hResidualGlobalThetaDT_MB0/2",200,-1,1);
404 hResidualGlobalZDT_MB[9] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB0/2",
"hResidualGlobalZDT_MB0/2",200,-10,10);
405 hResidualGlobalRPhiDT_MB[10]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB0/3",
"hResidualGlobalRPhiDT_MB0/3",200,-10,10);
406 hResidualGlobalThetaDT_MB[10]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB0/3",
"hResidualGlobalThetaDT_MB0/3",200,-1,1);
407 hResidualGlobalPhiDT_MB[10]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB0/3",
"hResidualGlobalPhiDT_MB0/3",200,-1,1);
408 hResidualGlobalZDT_MB[10] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB0/3",
"hResidualGlobalZDT_MB0/3",200,-10,10);
409 hResidualGlobalRPhiDT_MB[11]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB0/4",
"hResidualGlobalRPhiDT_MB0/4",200,-10,10);
410 hResidualGlobalPhiDT_MB[11]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB0/4",
"hResidualGlobalPhiDT_MB0/4",200,-1,1);
411 hResidualGlobalThetaDT_MB[11]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB0/4",
"hResidualGlobalThetaDT_MB0/4",200,-1,1);
412 hResidualGlobalZDT_MB[11] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB0/4",
"hResidualGlobalZDT_MB0/4",200,-10,10);
413 hResidualGlobalRPhiDT_MB[12]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB1/1",
"hResidualGlobalRPhiDT_MB1/1",200,-10,10);
414 hResidualGlobalPhiDT_MB[12]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB1/1",
"hResidualGlobalPhiDT_MB1/1",200,-1,1);
415 hResidualGlobalThetaDT_MB[12]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB1/1",
"hResidualGlobalThetaDT_MB1/1",200,-1,1);
416 hResidualGlobalZDT_MB[12] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB1/1",
"hResidualGlobalZDT_MB1/1",200,-10,10);
417 hResidualGlobalRPhiDT_MB[13]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB1/2",
"hResidualGlobalRPhiDT_MB1/2",200,-10,10);
418 hResidualGlobalPhiDT_MB[13]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB1/2",
"hResidualGlobalPhiDT_MB1/2",200,-1,1);
419 hResidualGlobalThetaDT_MB[13]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB1/2",
"hResidualGlobalThetaDT_MB1/2",200,-1,1);
420 hResidualGlobalZDT_MB[13] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB1/2",
"hResidualGlobalZDT_MB1/2",200,-10,10);
421 hResidualGlobalRPhiDT_MB[14]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB1/3",
"hResidualGlobalRPhiDT_MB1/3",200,-10,10);
422 hResidualGlobalPhiDT_MB[14]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB1/3",
"hResidualGlobalPhiDT_MB1/3",200,-1,1);
423 hResidualGlobalThetaDT_MB[14]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB1/3",
"hResidualGlobalThetaDT_MB1/3",200,-1,1);
424 hResidualGlobalZDT_MB[14] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB1/3",
"hResidualGlobalZDT_MB1/3",200,-10,10);
425 hResidualGlobalRPhiDT_MB[15]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB1/4",
"hResidualGlobalRPhiDT_MB1/4",200,-10,10);
426 hResidualGlobalPhiDT_MB[15]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB1/4",
"hResidualGlobalPhiDT_MB1/4",200,-1,1);
427 hResidualGlobalThetaDT_MB[15]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB1/4",
"hResidualGlobalThetaDT_MB1/4",200,-1,1);
428 hResidualGlobalZDT_MB[15] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB1/4",
"hResidualGlobalZDT_MB1/4",200,-10,10);
429 hResidualGlobalRPhiDT_MB[16]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB2/1",
"hResidualGlobalRPhiDT_MB2/1",200,-10,10);
430 hResidualGlobalPhiDT_MB[16]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB2/1",
"hResidualGlobalPhiDT_MB2/1",200,-1,1);
431 hResidualGlobalThetaDT_MB[16]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB2/1",
"hResidualGlobalThetaDT_MB2/1",200,-1,1);
432 hResidualGlobalZDT_MB[16] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB2/1",
"hResidualGlobalZDT_MB2/1",200,-10,10);
433 hResidualGlobalRPhiDT_MB[17]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB2/2",
"hResidualGlobalRPhiDT_MB2/2",200,-10,10);
434 hResidualGlobalPhiDT_MB[17]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB2/2",
"hResidualGlobalPhiDT_MB2/2",200,-1,1);
435 hResidualGlobalThetaDT_MB[17]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB2/2",
"hResidualGlobalThetaDT_MB2/2",200,-1,1);
436 hResidualGlobalZDT_MB[17] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB2/2",
"hResidualGlobalZDT_MB2/2",200,-10,10);
437 hResidualGlobalRPhiDT_MB[18]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB2/3",
"hResidualGlobalRPhiDT_MB2/3",200,-10,10);
438 hResidualGlobalPhiDT_MB[18]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB2/3",
"hResidualGlobalPhiDT_MB2/3",200,-1,1);
439 hResidualGlobalThetaDT_MB[18]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB2/3",
"hResidualGlobalThetaDT_MB2/3",200,-1,1);
440 hResidualGlobalZDT_MB[18] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB2/3",
"hResidualGlobalZDT_MB2/3",200,-10,10);
441 hResidualGlobalRPhiDT_MB[19]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB2/4",
"hResidualGlobalRPhiDT_MB2/4",200,-10,10);
442 hResidualGlobalPhiDT_MB[19]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB2/4",
"hResidualGlobalPhiDT_MB2/4",200,-1,1);
443 hResidualGlobalThetaDT_MB[19]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB2/4",
"hResidualGlobalThetaDT_MB2/4",200,-1,1);
444 hResidualGlobalZDT_MB[19] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB2/4",
"hResidualGlobalZDT_MB2/4",200,-10,10);
452 hResidualLocalXCSC_ME[1]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-4/2",
"hResidualLocalXCSC_ME-4/2",200,-10,10);
453 hResidualLocalPhiCSC_ME[1]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-4/2",
"hResidualLocalPhiCSC_ME-4/2",200,-1,1);
454 hResidualLocalThetaCSC_ME[1]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-4/2",
"hResidualLocalThetaCSC_ME-4/2",200,-1,1);
455 hResidualLocalYCSC_ME[1] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-4/2",
"hResidualLocalYCSC_ME-4/2",200,-10,10);
456 hResidualLocalXCSC_ME[2]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-3/1",
"hResidualLocalXCSC_ME-3/1",200,-10,10);
457 hResidualLocalPhiCSC_ME[2]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-3/1",
"hResidualLocalPhiCSC_ME-3/1",200,-1,1);
458 hResidualLocalThetaCSC_ME[2]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-3/1",
"hResidualLocalThetaCSC_ME-3/1",200,-1,1);
459 hResidualLocalYCSC_ME[2] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-3/1",
"hResidualLocalYCSC_ME-3/1",200,-10,10);
460 hResidualLocalXCSC_ME[3]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-3/2",
"hResidualLocalXCSC_ME-3/2",200,-10,10);
461 hResidualLocalPhiCSC_ME[3]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-3/2",
"hResidualLocalPhiCSC_ME-3/2",200,-1,1);
462 hResidualLocalThetaCSC_ME[3]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-3/2",
"hResidualLocalThetaCSC_ME-3/2",200,-1,1);
463 hResidualLocalYCSC_ME[3] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-3/2",
"hResidualLocalYCSC_ME-3/2",200,-10,10);
464 hResidualLocalXCSC_ME[4]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-2/1",
"hResidualLocalXCSC_ME-2/1",200,-10,10);
465 hResidualLocalPhiCSC_ME[4]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-2/1",
"hResidualLocalPhiCSC_ME-2/1",200,-1,1);
466 hResidualLocalThetaCSC_ME[4]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-2/1",
"hResidualLocalThetaCSC_ME-2/1",200,-1,1);
467 hResidualLocalYCSC_ME[4] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-2/1",
"hResidualLocalYCSC_ME-2/1",200,-10,10);
468 hResidualLocalXCSC_ME[5]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-2/2",
"hResidualLocalXCSC_ME-2/2",200,-10,10);
469 hResidualLocalPhiCSC_ME[5]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-2/2",
"hResidualLocalPhiCSC_ME-2/2",200,-1,1);
470 hResidualLocalThetaCSC_ME[5]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-2/2",
"hResidualLocalThetaCSC_ME-2/2",200,-1,1);
471 hResidualLocalYCSC_ME[5] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-2/2",
"hResidualLocalYCSC_ME-2/2",200,-10,10);
472 hResidualLocalXCSC_ME[6]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-1/1",
"hResidualLocalXCSC_ME-1/1",200,-10,10);
473 hResidualLocalPhiCSC_ME[6]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-1/1",
"hResidualLocalPhiCSC_ME-1/1",200,-1,1);
474 hResidualLocalThetaCSC_ME[6]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-1/1",
"hResidualLocalThetaCSC_ME-1/1",200,-1,1);
475 hResidualLocalYCSC_ME[6] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-1/1",
"hResidualLocalYCSC_ME-1/1",200,-10,10);
476 hResidualLocalXCSC_ME[7]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-1/2",
"hResidualLocalXCSC_ME-1/2",200,-10,10);
477 hResidualLocalPhiCSC_ME[7]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-1/2",
"hResidualLocalPhiCSC_ME-1/2",200,-1,1);
478 hResidualLocalThetaCSC_ME[7]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-1/2",
"hResidualLocalThetaCSC_ME-1/2",200,-1,1);
479 hResidualLocalYCSC_ME[7] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-1/2",
"hResidualLocalYCSC_ME-1/2",200,-10,10);
480 hResidualLocalXCSC_ME[8]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-1/3",
"hResidualLocalXCSC_ME-1/3",200,-10,10);
481 hResidualLocalPhiCSC_ME[8]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-1/3",
"hResidualLocalPhiCSC_ME-1/3",200,-1,1);
482 hResidualLocalThetaCSC_ME[8]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-1/3",
"hResidualLocalThetaCSC_ME-1/3",200,-1,1);
483 hResidualLocalYCSC_ME[8] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-1/3",
"hResidualLocalYCSC_ME-1/3",200,-10,10);
484 hResidualLocalXCSC_ME[9]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME1/1",
"hResidualLocalXCSC_ME1/1",200,-10,10);
485 hResidualLocalPhiCSC_ME[9]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME1/1",
"hResidualLocalPhiCSC_ME1/1",100,-1,1);
486 hResidualLocalThetaCSC_ME[9]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME1/1",
"hResidualLocalThetaCSC_ME1/1",200,-1,1);
487 hResidualLocalYCSC_ME[9] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME1/1",
"hResidualLocalYCSC_ME1/1",200,-10,10);
488 hResidualLocalXCSC_ME[10]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME1/2",
"hResidualLocalXCSC_ME1/2",200,-10,10);
489 hResidualLocalPhiCSC_ME[10]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME1/2",
"hResidualLocalPhiCSC_ME1/2",200,-1,1);
490 hResidualLocalThetaCSC_ME[10]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME1/2",
"hResidualLocalThetaCSC_ME1/2",200,-1,1);
491 hResidualLocalYCSC_ME[10] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME1/2",
"hResidualLocalYCSC_ME1/2",200,-10,10);
492 hResidualLocalXCSC_ME[11]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME1/3",
"hResidualLocalXCSC_ME1/3",200,-10,10);
493 hResidualLocalPhiCSC_ME[11]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME1/3",
"hResidualLocalPhiCSC_ME1/3",200,-1,1);
494 hResidualLocalThetaCSC_ME[11]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME1/3",
"hResidualLocalThetaCSC_ME1/3",200,-1,1);
495 hResidualLocalYCSC_ME[11] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME1/3",
"hResidualLocalYCSC_ME1/3",200,-10,10);
496 hResidualLocalXCSC_ME[12]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME2/1",
"hResidualLocalXCSC_ME2/1",200,-10,10);
497 hResidualLocalPhiCSC_ME[12]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME2/1",
"hResidualLocalPhiCSC_ME2/1",200,-1,1);
498 hResidualLocalThetaCSC_ME[12]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME2/1",
"hResidualLocalThetaCSC_ME2/1",200,-1,1);
499 hResidualLocalYCSC_ME[12] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME2/1",
"hResidualLocalYCSC_ME2/1",200,-10,10);
500 hResidualLocalXCSC_ME[13]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME2/2",
"hResidualLocalXCSC_ME2/2",200,-10,10);
501 hResidualLocalPhiCSC_ME[13]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME2/2",
"hResidualLocalPhiCSC_ME2/2",200,-1,1);
502 hResidualLocalThetaCSC_ME[13]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME2/2",
"hResidualLocalThetaCSC_ME2/2",200,-1,1);
503 hResidualLocalYCSC_ME[13] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME2/2",
"hResidualLocalYCSC_ME2/2",200,-10,10);
504 hResidualLocalXCSC_ME[14]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME3/1",
"hResidualLocalXCSC_ME3/1",200,-10,10);
505 hResidualLocalPhiCSC_ME[14]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME3/1",
"hResidualLocalPhiCSC_ME3/1",200,-1,1);
506 hResidualLocalThetaCSC_ME[14]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME3/1",
"hResidualLocalThetaCSC_ME3/1",200,-1,1);
507 hResidualLocalYCSC_ME[14] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME3/1",
"hResidualLocalYCSC_ME3/1",200,-10,10);
508 hResidualLocalXCSC_ME[15]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME3/2",
"hResidualLocalXCSC_ME3/2",200,-10,10);
509 hResidualLocalPhiCSC_ME[15]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME3/2",
"hResidualLocalPhiCSC_ME3/2",200,-1,1);
510 hResidualLocalThetaCSC_ME[15]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME3/2",
"hResidualLocalThetaCSC_ME3/2",200,-1,1);
511 hResidualLocalYCSC_ME[15] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME3/2",
"hResidualLocalYCSC_ME3/2",200,-10,10);
512 hResidualLocalXCSC_ME[16]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME4/1",
"hResidualLocalXCSC_ME4/1",200,-10,10);
513 hResidualLocalPhiCSC_ME[16]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME4/1",
"hResidualLocalPhiCSC_ME4/1",200,-1,1);
514 hResidualLocalThetaCSC_ME[16]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME4/1",
"hResidualLocalThetaCSC_ME4/1",200,-1,1);
515 hResidualLocalYCSC_ME[16] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME4/1",
"hResidualLocalYCSC_ME4/1",200,-10,10);
516 hResidualLocalXCSC_ME[17]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME4/2",
"hResidualLocalXCSC_ME4/2",200,-10,10);
517 hResidualLocalPhiCSC_ME[17]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME4/2",
"hResidualLocalPhiCSC_ME4/2",200,-1,1);
518 hResidualLocalThetaCSC_ME[17]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME4/2",
"hResidualLocalThetaCSC_ME4/2",200,-1,1);
519 hResidualLocalYCSC_ME[17] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME4/2",
"hResidualLocalYCSC_ME4/2",200,-10,10);
524 hResidualGlobalRPhiCSC_ME[1]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-4/2",
"hResidualGlobalRPhiCSC_ME-4/2",200,-10,10);
525 hResidualGlobalPhiCSC_ME[1]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-4/2",
"hResidualGlobalPhiCSC_ME-4/2",200,-1,1);
526 hResidualGlobalThetaCSC_ME[1]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-4/2",
"hResidualGlobalThetaCSC_ME-4/2",200,-1,1);
527 hResidualGlobalRCSC_ME[1] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-4/2",
"hResidualGlobalRCSC_ME-4/2",200,-10,10);
528 hResidualGlobalRPhiCSC_ME[2]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-3/1",
"hResidualGlobalRPhiCSC_ME-3/1",200,-10,10);
529 hResidualGlobalPhiCSC_ME[2]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-3/1",
"hResidualGlobalPhiCSC_ME-3/1",200,-1,1);
530 hResidualGlobalThetaCSC_ME[2]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-3/1",
"hResidualGlobalThetaCSC_ME-3/1",200,-1,1);
531 hResidualGlobalRCSC_ME[2] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-3/1",
"hResidualGlobalRCSC_ME-3/1",200,-10,10);
532 hResidualGlobalRPhiCSC_ME[3]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-3/2",
"hResidualGlobalRPhiCSC_ME-3/2",200,-10,10);
533 hResidualGlobalPhiCSC_ME[3]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-3/2",
"hResidualGlobalPhiCSC_ME-3/2",200,-1,1);
534 hResidualGlobalThetaCSC_ME[3]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-3/2",
"hResidualGlobalThetaCSC_ME-3/2",200,-1,1);
535 hResidualGlobalRCSC_ME[3] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-3/2",
"hResidualGlobalRCSC_ME-3/2",200,-10,10);
536 hResidualGlobalRPhiCSC_ME[4]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-2/1",
"hResidualGlobalRPhiCSC_ME-2/1",200,-10,10);
537 hResidualGlobalPhiCSC_ME[4]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-2/1",
"hResidualGlobalPhiCSC_ME-2/1",200,-1,1);
538 hResidualGlobalThetaCSC_ME[4]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-2/1",
"hResidualGlobalThetaCSC_ME-2/1",200,-1,1);
539 hResidualGlobalRCSC_ME[4] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-2/1",
"hResidualGlobalRCSC_ME-2/1",200,-10,10);
540 hResidualGlobalRPhiCSC_ME[5]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-2/2",
"hResidualGlobalRPhiCSC_ME-2/2",200,-10,10);
541 hResidualGlobalPhiCSC_ME[5]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-2/2",
"hResidualGlobalPhiCSC_ME-2/2",200,-1,1);
542 hResidualGlobalThetaCSC_ME[5]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-2/2",
"hResidualGlobalThetaCSC_ME-2/2",200,-1,1);
543 hResidualGlobalRCSC_ME[5] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-2/2",
"hResidualGlobalRCSC_ME-2/2",200,-10,10);
544 hResidualGlobalRPhiCSC_ME[6]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-1/1",
"hResidualGlobalRPhiCSC_ME-1/1",200,-10,10);
545 hResidualGlobalPhiCSC_ME[6]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-1/1",
"hResidualGlobalPhiCSC_ME-1/1",200,-1,1);
546 hResidualGlobalThetaCSC_ME[6]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-1/1",
"hResidualGlobalThetaCSC_ME-1/1",200,-1,1);
547 hResidualGlobalRCSC_ME[6] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-1/1",
"hResidualGlobalRCSC_ME-1/1",200,-10,10);
548 hResidualGlobalRPhiCSC_ME[7]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-1/2",
"hResidualGlobalRPhiCSC_ME-1/2",200,-10,10);
549 hResidualGlobalPhiCSC_ME[7]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-1/2",
"hResidualGlobalPhiCSC_ME-1/2",200,-1,1);
550 hResidualGlobalThetaCSC_ME[7]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-1/2",
"hResidualGlobalThetaCSC_ME-1/2",200,-1,1);
551 hResidualGlobalRCSC_ME[7] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-1/2",
"hResidualGlobalRCSC_ME-1/2",200,-10,10);
552 hResidualGlobalRPhiCSC_ME[8]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-1/3",
"hResidualGlobalRPhiCSC_ME-1/3",200,-10,10);
553 hResidualGlobalPhiCSC_ME[8]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-1/3",
"hResidualGlobalPhiCSC_ME-1/3",200,-1,1);
554 hResidualGlobalThetaCSC_ME[8]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-1/3",
"hResidualGlobalThetaCSC_ME-1/3",200,-1,1);
555 hResidualGlobalRCSC_ME[8] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-1/3",
"hResidualGlobalRCSC_ME-1/3",200,-10,10);
556 hResidualGlobalRPhiCSC_ME[9]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME1/1",
"hResidualGlobalRPhiCSC_ME1/1",200,-10,10);
557 hResidualGlobalPhiCSC_ME[9]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME1/1",
"hResidualGlobalPhiCSC_ME1/1",100,-1,1);
558 hResidualGlobalThetaCSC_ME[9]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME1/1",
"hResidualGlobalThetaCSC_ME1/1",200,-1,1);
559 hResidualGlobalRCSC_ME[9] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME1/1",
"hResidualGlobalRCSC_ME1/1",200,-10,10);
560 hResidualGlobalRPhiCSC_ME[10]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME1/2",
"hResidualGlobalRPhiCSC_ME1/2",200,-10,10);
561 hResidualGlobalPhiCSC_ME[10]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME1/2",
"hResidualGlobalPhiCSC_ME1/2",200,-1,1);
562 hResidualGlobalThetaCSC_ME[10]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME1/2",
"hResidualGlobalThetaCSC_ME1/2",200,-1,1);
563 hResidualGlobalRCSC_ME[10] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME1/2",
"hResidualGlobalRCSC_ME1/2",200,-10,10);
564 hResidualGlobalRPhiCSC_ME[11]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME1/3",
"hResidualGlobalRPhiCSC_ME1/3",200,-10,10);
565 hResidualGlobalPhiCSC_ME[11]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME1/3",
"hResidualGlobalPhiCSC_ME1/3",200,-1,1);
566 hResidualGlobalThetaCSC_ME[11]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME1/3",
"hResidualGlobalThetaCSC_ME1/3",200,-1,1);
567 hResidualGlobalRCSC_ME[11] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME1/3",
"hResidualGlobalRCSC_ME1/3",200,-10,10);
568 hResidualGlobalRPhiCSC_ME[12]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME2/1",
"hResidualGlobalRPhiCSC_ME2/1",200,-10,10);
569 hResidualGlobalPhiCSC_ME[12]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME2/1",
"hResidualGlobalPhiCSC_ME2/1",200,-1,1);
570 hResidualGlobalThetaCSC_ME[12]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME2/1",
"hResidualGlobalThetaCSC_ME2/1",200,-1,1);
571 hResidualGlobalRCSC_ME[12] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME2/1",
"hResidualGlobalRCSC_ME2/1",200,-10,10);
572 hResidualGlobalRPhiCSC_ME[13]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME2/2",
"hResidualGlobalRPhiCSC_ME2/2",200,-10,10);
573 hResidualGlobalPhiCSC_ME[13]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME2/2",
"hResidualGlobalPhiCSC_ME2/2",200,-1,1);
574 hResidualGlobalThetaCSC_ME[13]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME2/2",
"hResidualGlobalThetaCSC_ME2/2",200,-1,1);
575 hResidualGlobalRCSC_ME[13] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME2/2",
"hResidualGlobalRCSC_ME2/2",200,-10,10);
576 hResidualGlobalRPhiCSC_ME[14]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME3/1",
"hResidualGlobalRPhiCSC_ME3/1",200,-10,10);
577 hResidualGlobalPhiCSC_ME[14]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME3/1",
"hResidualGlobalPhiCSC_ME3/1",200,-1,1);
578 hResidualGlobalThetaCSC_ME[14]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME3/1",
"hResidualGlobalThetaCSC_ME3/1",200,-1,1);
579 hResidualGlobalRCSC_ME[14] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME3/1",
"hResidualGlobalRCSC_ME3/1",200,-10,10);
580 hResidualGlobalRPhiCSC_ME[15]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME3/2",
"hResidualGlobalRPhiCSC_ME3/2",200,-10,10);
581 hResidualGlobalPhiCSC_ME[15]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME3/2",
"hResidualGlobalPhiCSC_ME3/2",200,-1,1);
582 hResidualGlobalThetaCSC_ME[15]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME3/2",
"hResidualGlobalThetaCSC_ME3/2",200,-1,1);
583 hResidualGlobalRCSC_ME[15] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME3/2",
"hResidualGlobalRCSC_ME3/2",200,-10,10);
584 hResidualGlobalRPhiCSC_ME[16]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME4/1",
"hResidualGlobalRPhiCSC_ME4/1",200,-10,10);
585 hResidualGlobalPhiCSC_ME[16]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME4/1",
"hResidualGlobalPhiCSC_ME4/1",200,-1,1);
586 hResidualGlobalThetaCSC_ME[16]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME4/1",
"hResidualGlobalThetaCSC_ME4/1",200,-1,1);
587 hResidualGlobalRCSC_ME[16] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME4/1",
"hResidualGlobalRCSC_ME4/1",200,-10,10);
588 hResidualGlobalRPhiCSC_ME[17]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME4/2",
"hResidualGlobalRPhiCSC_ME4/2",200,-10,10);
589 hResidualGlobalPhiCSC_ME[17]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME4/2",
"hResidualGlobalPhiCSC_ME4/2",200,-1,1);
590 hResidualGlobalThetaCSC_ME[17]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME4/2",
"hResidualGlobalThetaCSC_ME4/2",200,-1,1);
591 hResidualGlobalRCSC_ME[17] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME4/2",
"hResidualGlobalRCSC_ME4/2",200,-10,10);
612 hprofLocalXDT->GetXaxis()->SetLabelSize(0.025);
613 hprofLocalPhiDT->GetXaxis()->SetLabelSize(0.025);
614 hprofLocalThetaDT->GetXaxis()->SetLabelSize(0.025);
615 hprofLocalYDT->GetXaxis()->SetLabelSize(0.025);
616 hprofLocalXCSC->GetXaxis()->SetLabelSize(0.025);
617 hprofLocalPhiCSC->GetXaxis()->SetLabelSize(0.025);
618 hprofLocalThetaCSC->GetXaxis()->SetLabelSize(0.025);
619 hprofLocalYCSC->GetXaxis()->SetLabelSize(0.025);
620 hprofGlobalRPhiDT->GetXaxis()->SetLabelSize(0.025);
621 hprofGlobalPhiDT->GetXaxis()->SetLabelSize(0.025);
622 hprofGlobalThetaDT->GetXaxis()->SetLabelSize(0.025);
623 hprofGlobalZDT->GetXaxis()->SetLabelSize(0.025);
624 hprofGlobalRPhiCSC->GetXaxis()->SetLabelSize(0.025);
625 hprofGlobalPhiCSC->GetXaxis()->SetLabelSize(0.025);
626 hprofGlobalThetaCSC->GetXaxis()->SetLabelSize(0.025);
627 hprofGlobalRCSC->GetXaxis()->SetLabelSize(0.025);
630 hprofGlobalPositionDT=
fs->
make<TH2F>(
"hprofGlobalPositionDT",
"Global DT position (cm) absolute MEAN residuals;Sector;;cm", 14,0, 14,40,0,40);
631 hprofGlobalAngleDT=
fs->
make<TH2F>(
"hprofGlobalAngleDT",
"Global DT angle (rad) absolute MEAN residuals;Sector;;rad", 14,0, 14,40,0,40);
634 hprofLocalPositionDT=
fs->
make<TH2F>(
"hprofLocalPositionDT",
"Local DT position (cm) absolute MEAN residuals;Sector;;cm", 14,0, 14,40,0,40);
635 hprofLocalAngleDT=
fs->
make<TH2F>(
"hprofLocalAngleDT",
"Local DT angle (rad) absolute MEAN residuals;Sector;;rad", 14,0, 14,40,0,40);
637 hprofLocalAngleRmsDT=
fs->
make<TH2F>(
"hprofLocalAngleRmsDT",
"Local DT angle (rad) RMS residuals;Sector;;rad", 14,0, 14,40,0,40);
639 hprofGlobalPositionCSC=
fs->
make<TH2F>(
"hprofGlobalPositionCSC",
"Global CSC position (cm) absolute MEAN residuals;Sector;;cm", 36,0,36,36,0,36);
640 hprofGlobalAngleCSC=
fs->
make<TH2F>(
"hprofGlobalAngleCSC",
"Global CSC angle (rad) absolute MEAN residuals;Sector;;rad", 36,0,36,36,0,36);
643 hprofLocalPositionCSC=
fs->
make<TH2F>(
"hprofLocalPositionCSC",
"Local CSC position (cm) absolute MEAN residuals;Sector;;cm", 36,0,36,36,0,36);
644 hprofLocalAngleCSC=
fs->
make<TH2F>(
"hprofLocalAngleCSC",
"Local CSC angle (rad) absolute MEAN residuals;Sector;;rad", 36,0,36,36,0,36);
649 Float_t labelSize=0.025;
651 hprofGlobalAngleDT->GetYaxis()->SetLabelSize(labelSize);
652 hprofGlobalPositionRmsDT->GetYaxis()->SetLabelSize(labelSize);
653 hprofGlobalAngleRmsDT->GetYaxis()->SetLabelSize(labelSize);
654 hprofLocalPositionDT->GetYaxis()->SetLabelSize(labelSize);
655 hprofLocalAngleDT->GetYaxis()->SetLabelSize(labelSize);
656 hprofLocalPositionRmsDT->GetYaxis()->SetLabelSize(labelSize);
657 hprofLocalAngleRmsDT->GetYaxis()->SetLabelSize(labelSize);
659 hprofGlobalPositionCSC->GetYaxis()->SetLabelSize(labelSize);
660 hprofGlobalAngleCSC->GetYaxis()->SetLabelSize(labelSize);
661 hprofGlobalPositionRmsCSC->GetYaxis()->SetLabelSize(labelSize);
662 hprofGlobalAngleRmsCSC->GetYaxis()->SetLabelSize(labelSize);
663 hprofLocalPositionCSC->GetYaxis()->SetLabelSize(labelSize);
664 hprofLocalAngleCSC->GetYaxis()->SetLabelSize(labelSize);
665 hprofLocalPositionRmsCSC->GetYaxis()->SetLabelSize(labelSize);
666 hprofLocalAngleRmsCSC->GetYaxis()->SetLabelSize(labelSize);
669 for (
int i=1;
i<15;
i++){
670 sprintf(binLabel,
"Sec-%d",
i );
672 hprofGlobalAngleDT->GetXaxis()->SetBinLabel(
i,binLabel);
673 hprofGlobalPositionRmsDT->GetXaxis()->SetBinLabel(
i,binLabel);
674 hprofGlobalAngleRmsDT->GetXaxis()->SetBinLabel(
i,binLabel);
675 hprofLocalPositionDT->GetXaxis()->SetBinLabel(
i,binLabel);
676 hprofLocalAngleDT->GetXaxis()->SetBinLabel(
i,binLabel);
677 hprofLocalPositionRmsDT->GetXaxis()->SetBinLabel(
i,binLabel);
678 hprofLocalAngleRmsDT->GetXaxis()->SetBinLabel(
i,binLabel);
681 for (
int i=1;
i<37;
i++){
682 sprintf(binLabel,
"Ch-%d",
i );
683 hprofGlobalPositionCSC->GetXaxis()->SetBinLabel(
i,binLabel);
684 hprofGlobalAngleCSC->GetXaxis()->SetBinLabel(
i,binLabel);
685 hprofGlobalPositionRmsCSC->GetXaxis()->SetBinLabel(
i,binLabel);
686 hprofGlobalAngleRmsCSC->GetXaxis()->SetBinLabel(
i,binLabel);
687 hprofLocalPositionCSC->GetXaxis()->SetBinLabel(
i,binLabel);
688 hprofLocalAngleCSC->GetXaxis()->SetBinLabel(
i,binLabel);
689 hprofLocalPositionRmsCSC->GetXaxis()->SetBinLabel(
i,binLabel);
690 hprofLocalAngleRmsCSC->GetXaxis()->SetBinLabel(
i,binLabel);
700 edm::LogInfo(
"MuonAlignmentAnalyzer") <<
"----------------- " << std::endl << std::endl;
715 edm::LogInfo(
"MuonAlignmentAnalyzer") <<
"Number of Hits considered for residuals: " <<
numberOfHits << std::endl << std::endl;
740 if (nameHistoLocalX.Contains(
"MB"))
744 sscanf(nameHistoLocalX,
"ResidualLocalX_W%dMB%1dS%d",&wheel,&station,§or);
746 Int_t nstation=station - 1;
747 Int_t nwheel=wheel+2;
752 Int_t xbin=sector+14*nstation+14*4*nwheel;
754 sprintf(binLabel,
"MB%d/%dS%d", wheel, station, sector );
762 Int_t ybin=1+nwheel*8+nstation*2;
764 sprintf(binLabel,
"MB%d/%d_LocalX",wheel, station );
770 if (nameHistoLocalX.Contains(
"ME"))
775 sscanf(nameHistoLocalX,
"ResidualLocalX_ME%dR%1dC%d",&station,&ring,&chamber);
780 Int_t xbin=
abs(station)*2+
ring;
782 if (station>0) xbin=xbin+9;
783 else xbin = 10 -xbin;
786 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
787 else if(xbin<6) xbin=108+chamber;
788 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
789 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
790 else xbin=522+chamber;
792 sprintf(binLabel,
"ME%d/%dC%d", station, ring, chamber );
800 Int_t ybin=
abs(station)*2+
ring;
802 if (station>0) ybin=ybin+9;
803 else ybin = 10 -ybin;
806 sprintf(binLabel,
"ME%d/%d_LocalX", station,ring );
812 if (nameHistoLocalTheta.Contains(
"MB"))
817 sscanf(nameHistoLocalTheta,
"ResidualLocalTheta_W%dMB%1dS%d",&wheel,&station,§or);
820 Int_t nstation=station - 1;
821 Int_t nwheel=wheel+2;
826 Int_t xbin=sector+14*nstation+14*4*nwheel;
828 sprintf(binLabel,
"MB%d/%dS%d", wheel, station, sector );
836 Int_t ybin=2+nwheel*8+nstation*2;
838 sprintf(binLabel,
"MB%d/%d_LocalTheta",wheel,station );
846 if (nameHistoLocalPhi.Contains(
"MB"))
851 sscanf(nameHistoLocalPhi,
"ResidualLocalPhi_W%dMB%1dS%d",&wheel,&station,§or);
853 Int_t nstation=station - 1;
854 Int_t nwheel=wheel+2;
859 Int_t xbin=sector+14*nstation+14*4*nwheel;
861 sprintf(binLabel,
"MB%d/%dS%d", wheel, station, sector );
869 Int_t ybin=1+nwheel*8+nstation*2;
871 sprintf(binLabel,
"MB%d/%d_LocalPhi", wheel,station );
877 if (nameHistoLocalPhi.Contains(
"ME"))
882 sscanf(nameHistoLocalPhi,
"ResidualLocalPhi_ME%dR%1dC%d",&station,&ring,&chamber);
887 Int_t xbin=
abs(station)*2+
ring;
889 if (station>0) xbin=xbin+9;
890 else xbin = 10 -xbin;
893 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
894 else if(xbin<6) xbin=108+chamber;
895 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
896 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
897 else xbin=522+chamber;
899 sprintf(binLabel,
"ME%d/%dC%d", station, ring, chamber );
907 Int_t ybin=
abs(station)*2+
ring;
909 if (station>0) ybin=ybin+9;
910 else ybin = 10 -ybin;
913 sprintf(binLabel,
"ME%d/%d_LocalPhi", station,ring );
919 if (nameHistoLocalTheta.Contains(
"ME"))
924 sscanf(nameHistoLocalTheta,
"ResidualLocalTheta_ME%dR%1dC%d",&station,&ring,&chamber);
929 Int_t xbin=
abs(station)*2+
ring;
931 if (station>0) xbin=xbin+9;
932 else xbin = 10 -xbin;
935 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
936 else if(xbin<6) xbin=108+chamber;
937 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
938 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
939 else xbin=522+chamber;
941 sprintf(binLabel,
"ME%d/%dC%d", station, ring, chamber );
949 Int_t ybin=
abs(station)*2+
ring;
951 if (station>0) ybin=ybin+9;
952 else ybin = 10 -ybin;
955 sprintf(binLabel,
"ME%d/%d_LocalTheta", station,ring );
961 if (nameHistoLocalY.Contains(
"MB"))
966 sscanf(nameHistoLocalY,
"ResidualLocalY_W%dMB%1dS%d",&wheel,&station,§or);
969 Int_t nstation=station - 1;
970 Int_t nwheel=wheel+2;
975 Int_t xbin=sector+14*nstation+14*4*nwheel;
977 sprintf(binLabel,
"MB%d/%dS%d", wheel, station, sector );
985 Int_t ybin=2+nwheel*8+nstation*2;
987 sprintf(binLabel,
"MB%d/%d_LocalY", wheel,station );
994 if (nameHistoLocalY.Contains(
"ME"))
999 sscanf(nameHistoLocalY,
"ResidualLocalY_ME%dR%1dC%d",&station,&ring,&chamber);
1004 Int_t xbin=
abs(station)*2+
ring;
1005 if(
abs(station)==1) xbin=
ring;
1006 if (station>0) xbin=xbin+9;
1007 else xbin = 10 -xbin;
1010 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1011 else if(xbin<6) xbin=108+chamber;
1012 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1013 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1014 else xbin=522+chamber;
1016 sprintf(binLabel,
"ME%d/%dC%d", station, ring, chamber );
1024 Int_t ybin=
abs(station)*2+
ring;
1025 if(
abs(station)==1) ybin=
ring;
1026 if (station>0) ybin=ybin+9;
1027 else ybin = 10 -ybin;
1030 sprintf(binLabel,
"ME%d/%d_LocalY", station,ring );
1036 if (nameHistoGlobalRPhi.Contains(
"MB"))
1040 sscanf(nameHistoGlobalRPhi,
"ResidualGlobalRPhi_W%dMB%1dS%d",&wheel,&station,§or);
1042 Int_t nstation=station - 1;
1043 Int_t nwheel=wheel+2;
1048 Int_t xbin=sector+14*nstation+14*4*nwheel;
1050 sprintf(binLabel,
"MB%d/%dS%d", wheel, station, sector );
1058 Int_t ybin=1+nwheel*8+nstation*2;
1060 sprintf(binLabel,
"MB%d/%d_GlobalRPhi", wheel,station );
1066 if (nameHistoGlobalRPhi.Contains(
"ME"))
1071 sscanf(nameHistoGlobalRPhi,
"ResidualGlobalRPhi_ME%dR%1dC%d",&station,&ring,&chamber);
1076 Int_t xbin=
abs(station)*2+
ring;
1077 if(
abs(station)==1) xbin=
ring;
1078 if (station>0) xbin=xbin+9;
1079 else xbin = 10 -xbin;
1082 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1083 else if(xbin<6) xbin=108+chamber;
1084 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1085 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1086 else xbin=522+chamber;
1088 sprintf(binLabel,
"ME%d/%dC%d", station, ring, chamber );
1096 Int_t ybin=
abs(station)*2+
ring;
1097 if(
abs(station)==1) ybin=
ring;
1098 if (station>0) ybin=ybin+9;
1099 else ybin = 10 -ybin;
1102 sprintf(binLabel,
"ME%d/%d_GlobalRPhi", station,ring );
1108 if (nameHistoGlobalTheta.Contains(
"MB"))
1113 sscanf(nameHistoGlobalTheta,
"ResidualGlobalTheta_W%dMB%1dS%d",&wheel,&station,§or);
1116 Int_t nstation=station - 1;
1117 Int_t nwheel=wheel+2;
1122 Int_t xbin=sector+14*nstation+14*4*nwheel;
1124 sprintf(binLabel,
"MB%d/%dS%d", wheel, station, sector );
1132 Int_t ybin=2+nwheel*8+nstation*2;
1134 sprintf(binLabel,
"MB%d/%d_GlobalTheta", wheel,station );
1141 if (nameHistoGlobalPhi.Contains(
"MB"))
1146 sscanf(nameHistoGlobalPhi,
"ResidualGlobalPhi_W%dMB%1dS%d",&wheel,&station,§or);
1148 Int_t nstation=station - 1;
1149 Int_t nwheel=wheel+2;
1154 Int_t xbin=sector+14*nstation+14*4*nwheel;
1156 sprintf(binLabel,
"MB%d/%dS%d", wheel, station, sector );
1164 Int_t ybin=1+nwheel*8+nstation*2;
1166 sprintf(binLabel,
"MB%d/%d_GlobalPhi", wheel,station );
1172 if (nameHistoGlobalPhi.Contains(
"ME"))
1177 sscanf(nameHistoGlobalPhi,
"ResidualGlobalPhi_ME%dR%1dC%d",&station,&ring,&chamber);
1182 Int_t xbin=
abs(station)*2+
ring;
1183 if(
abs(station)==1) xbin=
ring;
1184 if (station>0) xbin=xbin+9;
1185 else xbin = 10 -xbin;
1188 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1189 else if(xbin<6) xbin=108+chamber;
1190 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1191 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1192 else xbin=522+chamber;
1194 sprintf(binLabel,
"ME%d/%dC%d", station, ring, chamber );
1202 Int_t ybin=
abs(station)*2+
ring;
1203 if(
abs(station)==1) ybin=
ring;
1204 if (station>0) ybin=ybin+9;
1205 else ybin = 10 -ybin;
1208 sprintf(binLabel,
"ME%d/%d_GlobalPhi", station,ring );
1214 if (nameHistoGlobalTheta.Contains(
"ME"))
1219 sscanf(nameHistoGlobalTheta,
"ResidualGlobalTheta_ME%dR%1dC%d",&station,&ring,&chamber);
1224 Int_t xbin=
abs(station)*2+
ring;
1225 if(
abs(station)==1) xbin=
ring;
1226 if (station>0) xbin=xbin+9;
1227 else xbin = 10 -xbin;
1230 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1231 else if(xbin<6) xbin=108+chamber;
1232 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1233 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1234 else xbin=522+chamber;
1236 sprintf(binLabel,
"ME%d/%dC%d", station, ring, chamber );
1244 Int_t ybin=
abs(station)*2+
ring;
1245 if(
abs(station)==1) ybin=
ring;
1246 if (station>0) ybin=ybin+9;
1247 else ybin = 10 -ybin;
1250 sprintf(binLabel,
"ME%d/%d_GlobalTheta", station,ring );
1256 if (nameHistoGlobalRZ.Contains(
"MB"))
1261 sscanf(nameHistoGlobalRZ,
"ResidualGlobalZ_W%dMB%1dS%d",&wheel,&station,§or);
1264 Int_t nstation=station - 1;
1265 Int_t nwheel=wheel+2;
1270 Int_t xbin=sector+14*nstation+14*4*nwheel;
1272 sprintf(binLabel,
"MB%d/%dS%d", wheel, station, sector );
1281 Int_t ybin=2+nwheel*8+nstation*2;
1283 sprintf(binLabel,
"MB%d/%d_GlobalZ", wheel,station );
1290 if (nameHistoGlobalRZ.Contains(
"ME"))
1295 sscanf(nameHistoGlobalRZ,
"ResidualGlobalR_ME%dR%1dC%d",&station,&ring,&chamber);
1300 Int_t xbin=
abs(station)*2+
ring;
1301 if(
abs(station)==1) xbin=
ring;
1302 if (station>0) xbin=xbin+9;
1303 else xbin = 10 -xbin;
1306 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1307 else if(xbin<6) xbin=108+chamber;
1308 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1309 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1310 else xbin=522+chamber;
1312 sprintf(binLabel,
"ME%d/%dC%d", station, ring, chamber );
1320 Int_t ybin=
abs(station)*2+
ring;
1321 if(
abs(station)==1) ybin=
ring;
1322 if (station>0) ybin=ybin+9;
1323 else ybin = 10 -ybin;
1326 sprintf(binLabel,
"ME%d/%d_GlobalR", station,ring );
1342 std::vector< double > simPar[4] ;
1354 event.getByLabel(
"g4SimHits",simTracks);
1357 edm::SimTrackContainer::const_iterator simTrack;
1359 for (simTrack = simTracks->begin(); simTrack != simTracks->end(); ++simTrack){
1360 if (
abs((*simTrack).type()) == 13) {
1362 simPt=(*simTrack).momentum().Pt();
1363 simEta=(*simTrack).momentum().eta();
1364 simPhi=(*simTrack).momentum().phi();
1373 simPar[0].push_back(simPt);
1374 simPar[1].push_back(simEta);
1375 simPar[2].push_back(simPhi);
1376 simPar[3].push_back((*simTrack).charge());
1379 if(i==1) p1=
GlobalVector((*simTrack).momentum().x(),(*simTrack).momentum().y(),(*simTrack).momentum().z());
1380 if(i==2) p2=
GlobalVector((*simTrack).momentum().x(),(*simTrack).momentum().y(),(*simTrack).momentum().z());
1388 TLorentzVector mu1(p1.
x(), p1.
y(), p1.
z(), p1.
mag());
1389 TLorentzVector mu2(p2.
x(), p2.
y(), p2.
z(), p2.
mag());
1390 TLorentzVector pair = mu1 + mu2;
1391 double Minv = pair.M();
1415 reco::TrackCollection::const_iterator staTrack;
1417 for (staTrack = staTracks->begin(); staTrack != staTracks->end(); ++staTrack){
1420 SArecPt = (*staTrack).pt();
1421 SAeta = (*staTrack).eta();
1422 SAphi = (*staTrack).phi();
1423 ich= (*staTrack).charge();
1427 hSAChi2->Fill((*staTrack).chi2());
1428 hSANhits->Fill((*staTrack).numberOfValidHits());
1433 if(i==1) p1=
GlobalVector((*staTrack).momentum().x(),(*staTrack).momentum().y(),(*staTrack).momentum().z());
1434 if(i==2) p2=
GlobalVector((*staTrack).momentum().x(),(*staTrack).momentum().y(),(*staTrack).momentum().z());
1439 double candDeltaR= -999.0, dR;
1441 if(simPar[0].
size()>0){
1442 for(
unsigned int iSim = 0; iSim <simPar[0].size(); iSim++) {
1443 dR=
deltaR(SAeta,SAphi,simPar[1][iSim],simPar[2][iSim]);
1444 if(candDeltaR<0 || dR<candDeltaR) {
1450 double simPt=simPar[0][iCand];
1451 hSAPTres->Fill( (SArecPt-simPt)/simPt);
1459 double ptInvRes= ( ich/SArecPt - simPar[3][iCand]/simPt)/ (simPar[3][iCand]/simPt);
1476 TLorentzVector mu1(p1.
x(), p1.
y(), p1.
z(), p1.
mag());
1477 TLorentzVector mu2(p2.
x(), p2.
y(), p2.
z(), p2.
mag());
1478 TLorentzVector pair = mu1 + mu2;
1479 double Minv = pair.M();
1504 reco::TrackCollection::const_iterator glbTrack;
1506 for (glbTrack = glbTracks->begin(); glbTrack != glbTracks->end(); ++glbTrack){
1509 GBrecPt = (*glbTrack).pt();
1510 GBeta = (*glbTrack).eta();
1511 GBphi = (*glbTrack).phi();
1512 ich= (*glbTrack).charge();
1516 hGBChi2->Fill((*glbTrack).chi2());
1517 hGBNhits->Fill((*glbTrack).numberOfValidHits());
1522 if(i==1) p1=
GlobalVector((*glbTrack).momentum().x(),(*glbTrack).momentum().y(),(*glbTrack).momentum().z());
1523 if(i==2) p2=
GlobalVector((*glbTrack).momentum().x(),(*glbTrack).momentum().y(),(*glbTrack).momentum().z());
1526 double candDeltaR= -999.0, dR;
1528 if(simPar[0].
size()>0){
1529 for(
unsigned int iSim = 0; iSim <simPar[0].size(); iSim++) {
1530 dR=
deltaR(GBeta,GBphi,simPar[1][iSim],simPar[2][iSim]);
1531 if(candDeltaR<0 || dR<candDeltaR) {
1537 double simPt=simPar[0][iCand];
1539 hGBPTres->Fill( (GBrecPt-simPt)/simPt);
1548 double ptInvRes= ( ich/GBrecPt - simPar[3][iCand]/simPt)/ (simPar[3][iCand]/simPt);
1567 TLorentzVector mu1(p1.
x(), p1.
y(), p1.
z(), p1.
mag());
1568 TLorentzVector mu2(p2.
x(), p2.
y(), p2.
z(), p2.
mag());
1569 TLorentzVector pair = mu1 + mu2;
1570 double Minv = pair.M();
1624 reco::TrackCollection::const_iterator staTrack;
1625 for (staTrack = staTracks->begin(); staTrack != staTracks->end(); ++staTrack){
1627 int countPoints = 0;
1634 RecHitVector my4DTrack = this->
doMatching(*staTrack, all4DSegmentsDT, all4DSegmentsCSC, &indexCollectionDT, &indexCollectionCSC, theTrackingGeometry);
1649 for(RecHitVector::iterator rechit = my4DTrack.begin(); rechit != my4DTrack.end(); ++rechit) {
1651 const GeomDet* geomDet = theTrackingGeometry->idToDet((*rechit)->geographicalId());
1656 if(pDest != 0 || cDest != 0) {
1667 const long rawId= (*rechit)->geographicalId().rawId();
1669 bool newDetector =
true;
1674 if(*myIds == rawId) {
1675 newDetector =
false;
1682 int wheel=0,
station=0,sector=0;
1685 double residualGlobalRPhi=0,residualGlobalPhi=0,residualGlobalR=0,residualGlobalTheta=0,residualGlobalZ=0;
1686 double residualLocalX=0,residualLocalPhi=0,residualLocalY=0,residualLocalTheta=0;
1692 wheel=myChamber.
wheel();
1694 sector=myChamber.
sector();
1700 residualLocalX = (*rechit)->localPosition().x() -destiny.
localPosition().
x();
1706 residualLocalPhi = atan2(((
RecSegment *)(*rechit))->localDirection().
z(),
1719 residualLocalY = (*rechit)->localPosition().y() - destiny.
localPosition().
y();
1725 residualLocalTheta = atan2(((
RecSegment *)(*rechit))->localDirection().
z(),
1735 int index = wheel+2;
1762 endcap= myChamber.
endcap();
1773 residualLocalX = (*rechit)->localPosition().x() -destiny.
localPosition().
x();
1779 residualLocalY = (*rechit)->localPosition().y() - destiny.
localPosition().
y();
1785 residualLocalPhi = atan2(((
RecSegment *)(*rechit))->localDirection().
y(),
1792 residualLocalTheta = atan2(((
RecSegment *)(*rechit))->localDirection().
y(),
1806 if(ring==4) index=6;}
1808 if(ring==4) index=9;}
1819 else{residualGlobalRPhi=0,residualGlobalPhi=0,residualGlobalR=0,residualGlobalTheta=0,residualGlobalZ=0;
1820 residualLocalX=0,residualLocalPhi=0,residualLocalY=0,residualLocalTheta=0,residualLocalY=0;
1829 double rangeX = 3.0, rangeY =5.;
1849 char nameOfHistoLocalX[50];
1850 char nameOfHistoLocalTheta[50];
1851 char nameOfHistoLocalY[50];
1852 char nameOfHistoLocalPhi[50];
1853 char nameOfHistoGlobalRPhi[50];
1854 char nameOfHistoGlobalTheta[50];
1855 char nameOfHistoGlobalR[50];
1856 char nameOfHistoGlobalPhi[50];
1857 char nameOfHistoGlobalZ[50];
1860 sprintf(nameOfHistoLocalX,
"ResidualLocalX_W%dMB%1dS%1d",wheel,
station,sector );
1861 sprintf(nameOfHistoLocalPhi,
"ResidualLocalPhi_W%dMB%1dS%1d",wheel,
station,sector);
1862 sprintf(nameOfHistoGlobalRPhi,
"ResidualGlobalRPhi_W%dMB%1dS%1d",wheel,
station,sector );
1863 sprintf(nameOfHistoGlobalPhi,
"ResidualGlobalPhi_W%dMB%1dS%1d",wheel,
station,sector);
1864 sprintf(nameOfHistoLocalTheta,
"ResidualLocalTheta_W%dMB%1dS%1d",wheel,
station,sector);
1865 sprintf(nameOfHistoLocalY,
"ResidualLocalY_W%dMB%1dS%1d",wheel,
station,sector);
1866 TH1F *histoLocalY =
fs->
make<TH1F>(nameOfHistoLocalY, nameOfHistoLocalY,
nbins, -rangeY, rangeY);
1868 sprintf(nameOfHistoGlobalTheta,
"ResidualGlobalTheta_W%dMB%1dS%1d",wheel,
station,sector);
1869 sprintf(nameOfHistoGlobalZ,
"ResidualGlobalZ_W%dMB%1dS%1d",wheel,
station,sector);
1870 TH1F *histoGlobalZ =
fs->
make<TH1F>(nameOfHistoGlobalZ, nameOfHistoGlobalZ,
nbins, -rangeY, rangeY);
1875 sprintf(nameOfHistoLocalX,
"ResidualLocalX_ME%dR%1dC%1d",
station,
ring,chamber );
1876 sprintf(nameOfHistoLocalPhi,
"ResidualLocalPhi_ME%dR%1dC%1d",
station,
ring,chamber);
1877 sprintf(nameOfHistoLocalTheta,
"ResidualLocalTheta_ME%dR%1dC%1d",
station,
ring,chamber);
1878 sprintf(nameOfHistoLocalY,
"ResidualLocalY_ME%dR%1dC%1d",
station,
ring,chamber);
1879 TH1F *histoLocalY =
fs->
make<TH1F>(nameOfHistoLocalY, nameOfHistoLocalY,
nbins, -rangeY, rangeY);
1881 sprintf(nameOfHistoGlobalRPhi,
"ResidualGlobalRPhi_ME%dR%1dC%1d",
station,
ring,chamber );
1882 sprintf(nameOfHistoGlobalPhi,
"ResidualGlobalPhi_ME%dR%1dC%1d",
station,
ring,chamber);
1883 sprintf(nameOfHistoGlobalTheta,
"ResidualGlobalTheta_ME%dR%1dC%1d",
station,
ring,chamber);
1884 sprintf(nameOfHistoGlobalR,
"ResidualGlobalR_ME%dR%1dC%1d",
station,
ring,chamber);
1885 TH1F *histoGlobalR =
fs->
make<TH1F>(nameOfHistoGlobalR, nameOfHistoGlobalR,
nbins, -rangeY, rangeY);
1890 TH1F *histoLocalX =
fs->
make<TH1F>(nameOfHistoLocalX, nameOfHistoLocalX,
nbins, -rangeX, rangeX);
1891 TH1F *histoGlobalRPhi =
fs->
make<TH1F>(nameOfHistoGlobalRPhi, nameOfHistoGlobalRPhi,
nbins, -rangeX, rangeX);
1897 histoLocalX->Fill(residualLocalX);
1898 histoLocalPhi->Fill(residualLocalPhi);
1899 histoLocalTheta->Fill(residualLocalTheta);
1900 histoGlobalRPhi->Fill(residualGlobalRPhi);
1901 histoGlobalPhi->Fill(residualGlobalPhi);
1902 histoGlobalTheta->Fill(residualGlobalTheta);
1921 else if(det==2) {
unitsLocalY.at(position)->Fill(residualLocalY);
unitsGlobalRZ.at(position)->Fill(residualGlobalR);}
1926 innerTSOS = destiny;
1930 edm::LogError(
"MuonAlignmentAnalyzer") <<
" Error!! Exception in propagator catched" << std::endl;
1955 std::vector<int> positionDT;
1956 std::vector<int> positionCSC;
1972 int NumberOfDTSegment = 0;
1974 for(segmentDT = all4DSegmentsDT->begin(); segmentDT != all4DSegmentsDT->end(); ++segmentDT) {
1977 bool isNewChamber =
true;
1980 for(std::vector<int>::iterator positionIt = positionDT.begin(); positionIt != positionDT.end(); positionIt++) {
1983 if(NumberOfDTSegment == *positionIt) isNewChamber =
false;
1987 for(std::vector<std::vector<int> >::iterator collect = indexCollectionDT->begin(); collect != indexCollectionDT->end(); ++collect) {
1990 for(std::vector<int>::iterator positionIt = (*collect).begin(); positionIt != (*collect).end(); positionIt++) {
1993 if(NumberOfDTSegment == *positionIt) isNewChamber =
false;
2000 DTChamberId myChamber((*segmentDT).geographicalId().rawId());
2002 if(myLayer.wheel() == myChamber.wheel() && myLayer.station() == myChamber.station() && myLayer.sector() == myChamber.sector()) {
2005 positionDT.push_back(NumberOfDTSegment);
2009 NumberOfDTSegment++;
2017 int NumberOfCSCSegment = 0;
2019 for(segmentCSC = all4DSegmentsCSC->begin(); segmentCSC != all4DSegmentsCSC->end(); segmentCSC++) {
2022 bool isNewChamber =
true;
2025 for(std::vector<int>::iterator positionIt = positionCSC.begin(); positionIt != positionCSC.end(); positionIt++) {
2028 if(NumberOfCSCSegment == *positionIt) isNewChamber =
false;
2031 for(std::vector<std::vector<int> >::iterator collect = indexCollectionCSC->begin(); collect != indexCollectionCSC->end(); ++collect) {
2034 for(std::vector<int>::iterator positionIt = (*collect).begin(); positionIt != (*collect).end(); positionIt++) {
2037 if(NumberOfCSCSegment == *positionIt) isNewChamber =
false;
2043 CSCDetId myChamber((*segmentCSC).geographicalId().rawId());
2045 if(myLayer.chamberId() == myChamber.chamberId()) {
2047 positionCSC.push_back(NumberOfCSCSegment);
2051 NumberOfCSCSegment++;
2056 indexCollectionDT->push_back(positionDT);
2057 indexCollectionCSC->push_back(positionCSC);
double resLocalYRangeStation3
std::vector< TH1F * > hResidualLocalXCSC_ME
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
TH2F * hprofGlobalAngleDT
std::vector< TH1F * > hResidualLocalThetaDT_W
std::vector< TH1F * > hResidualGlobalZDT_MB
std::vector< TH1F * > hResidualLocalYCSC_ME
edm::InputTag theRecHits4DTagCSC
TH2F * hprofGlobalAngleCSC
TH2F * hprofGlobalPositionRmsDT
std::vector< TH1F * > unitsGlobalPhi
TH1F * hResidualLocalXCSC
TH1F * hResidualGlobalThetaDT
std::vector< TH1F * > hResidualGlobalThetaCSC_ME
Propagator * thePropagator
RecHitVector doMatching(const reco::Track &, edm::Handle< DTRecSegment4DCollection > &, edm::Handle< CSCSegmentCollection > &, intDVector *, intDVector *, edm::ESHandle< GlobalTrackingGeometry > &)
edm::InputTag theSTAMuonTag
double resLocalYRangeStation1
#define DEFINE_FWK_MODULE(type)
std::vector< TH1F * > hResidualGlobalPhiCSC_ME
LocalVector localDirection() const
LocalPoint localPosition() const
TH2F * hprofLocalPositionRmsDT
edm::InputTag theGLBMuonTag
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
TH1F * hResidualLocalThetaCSC
T perp() const
Magnitude of transverse component.
std::vector< TH1F * > hResidualLocalYDT_W
std::vector< TH1F * > hResidualGlobalZDT_W
edm::Service< TFileService > fs
virtual SubDetector subDetector() const =0
Which subdetector.
TH2F * hprofLocalPositionDT
unsigned int min1DTrackRecHitSize
std::vector< TH1F * > unitsGlobalRPhi
std::vector< TH1F * > hResidualLocalXDT_W
TH2F * hprofLocalPositionRmsCSC
TH2F * hprofLocalAngleCSC
double resLocalYRangeStation2
std::vector< TH1F * > unitsLocalX
std::vector< TH1F * > hResidualLocalThetaCSC_ME
edm::InputTag theRecHits4DTagDT
static int position[TOTALCHAMBERS][3]
std::vector< TrackingRecHit * > RecHitVector
TH1F * hResidualLocalThetaDT
std::vector< TH1F * > hResidualLocalPhiDT_W
std::vector< TH1F * > hResidualGlobalRPhiCSC_ME
TrajectoryStateOnSurface innermostMeasurementState() const
std::vector< TH1F * > unitsLocalTheta
double resLocalYRangeStation4
uint32_t rawId() const
get the raw id
C::const_iterator const_iterator
constant access iterator type
TH1F * hResidualGlobalThetaCSC
TH1F * hResidualGlobalZDT
std::vector< TH1F * > hResidualGlobalThetaDT_W
TH2F * hprofLocalPositionCSC
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
tuple SteppingHelixPropagator
FreeTrajectoryState * freeState(bool withErrors=true) const
TH1F * hResidualLocalPhiDT
TH1F * hprofGlobalThetaCSC
double resLocalXRangeStation4
std::vector< TH1F * > unitsGlobalRZ
std::vector< TH1F * > hResidualGlobalRCSC_ME
TH1F * hResidualGlobalRPhiDT
unsigned short numberOfValidHits() const
number of valid hits found
TH1F * hprofGlobalRPhiCSC
virtual ~MuonAlignmentAnalyzer()
Destructor.
double resLocalXRangeStation3
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< TH1F * > hResidualLocalPhiCSC_ME
TH1F * hResidualGlobalRCSC
double resLocalXRangeStation2
TH1F * hResidualLocalYCSC
std::vector< TH1F * > hResidualGlobalPhiDT_MB
virtual TrajectoryStateOnSurface propagate(const FreeTrajectoryState &, const Surface &) const
double deltaR(double eta1, double eta2, double phi1, double phi2)
std::vector< TH1F * > unitsLocalPhi
std::vector< TH1F * > hResidualLocalPhiDT_MB
GlobalPoint position() const
std::vector< TH1F * > hResidualLocalXDT_MB
std::vector< std::vector< int > > intDVector
TH2F * hprofLocalAngleRmsCSC
std::vector< TH1F * > hResidualGlobalRPhiDT_W
TH2F * hprofLocalAngleRmsDT
std::vector< TH1F * > hResidualGlobalThetaDT_MB
TH1F * hResidualGlobalPhiDT
std::vector< TH1F * > hResidualGlobalRPhiDT_MB
MuonAlignmentAnalyzer(const edm::ParameterSet &pset)
Constructor.
TH2F * hprofGlobalAngleRmsDT
std::vector< TH1F * > hResidualLocalYDT_MB
TH2F * hprofGlobalPositionRmsCSC
std::vector< TH1F * > unitsLocalY
TH1F * hprofLocalThetaCSC
TH2F * hprofGlobalAngleRmsCSC
TH1F * hResidualLocalPhiCSC
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
TH1F * hResidualGlobalRPhiCSC
T * make() const
make new ROOT object
std::vector< TH1F * > hResidualGlobalPhiDT_W
TH1F * hResidualGlobalPhiCSC
unsigned int min4DTrackSegmentSize
DetId geographicalId() const
int station() const
Return the station number.
T const * get() const
Returns C++ pointer to the item.
int wheel() const
Return the wheel number.
TH2F * hprofGlobalPositionCSC
std::vector< long > detectorCollection
std::vector< TH1F * > unitsGlobalTheta
std::vector< TH1F * > hResidualLocalThetaDT_MB
virtual const BoundPlane & surface() const
The nominal surface of the GeomDet.
tuple size
Write out results.
TH1F * hprofGlobalThetaDT
Global3DVector GlobalVector
GlobalVector globalDirection() const
TH2F * hprofGlobalPositionDT
double resLocalXRangeStation1