19 #include "boost/mpl/vector.hpp"
47 #include "TLorentzVector.h"
122 hResidualLocalXDT(0),
123 hResidualLocalPhiDT(0),
124 hResidualLocalThetaDT(0),
125 hResidualLocalYDT(0),
126 hResidualLocalXCSC(0),
127 hResidualLocalPhiCSC(0),
128 hResidualLocalThetaCSC(0),
129 hResidualLocalYCSC(0),
131 hResidualLocalXDT_W(5),
132 hResidualLocalPhiDT_W(5),
133 hResidualLocalThetaDT_W(5),
134 hResidualLocalYDT_W(5),
135 hResidualLocalXCSC_ME(18),
136 hResidualLocalPhiCSC_ME(18),
137 hResidualLocalThetaCSC_ME(18),
138 hResidualLocalYCSC_ME(18),
139 hResidualLocalXDT_MB(20),
140 hResidualLocalPhiDT_MB(20),
141 hResidualLocalThetaDT_MB(20),
142 hResidualLocalYDT_MB(20),
144 hResidualGlobalRPhiDT(0),
145 hResidualGlobalPhiDT(0),
146 hResidualGlobalThetaDT(0),
147 hResidualGlobalZDT(0),
148 hResidualGlobalRPhiCSC(0),
149 hResidualGlobalPhiCSC(0),
150 hResidualGlobalThetaCSC(0),
151 hResidualGlobalRCSC(0),
153 hResidualGlobalRPhiDT_W(5),
154 hResidualGlobalPhiDT_W(5),
155 hResidualGlobalThetaDT_W(5),
156 hResidualGlobalZDT_W(5),
157 hResidualGlobalRPhiCSC_ME(18),
158 hResidualGlobalPhiCSC_ME(18),
159 hResidualGlobalThetaCSC_ME(18),
160 hResidualGlobalRCSC_ME(18),
161 hResidualGlobalRPhiDT_MB(20),
162 hResidualGlobalPhiDT_MB(20),
163 hResidualGlobalThetaDT_MB(20),
164 hResidualGlobalZDT_MB(20),
166 hprofLocalPositionCSC(0),
167 hprofLocalAngleCSC(0),
168 hprofLocalPositionRmsCSC(0),
169 hprofLocalAngleRmsCSC(0),
170 hprofGlobalPositionCSC(0),
171 hprofGlobalAngleCSC(0),
172 hprofGlobalPositionRmsCSC(0),
173 hprofGlobalAngleRmsCSC(0),
174 hprofLocalPositionDT(0),
175 hprofLocalAngleDT(0),
176 hprofLocalPositionRmsDT(0),
177 hprofLocalAngleRmsDT(0),
178 hprofGlobalPositionDT(0),
179 hprofGlobalAngleDT(0),
180 hprofGlobalPositionRmsDT(0),
181 hprofGlobalAngleRmsDT(0),
184 hprofLocalThetaDT(0),
188 hprofLocalThetaCSC(0),
190 hprofGlobalRPhiDT(0),
192 hprofGlobalThetaDT(0),
194 hprofGlobalRPhiCSC(0),
195 hprofGlobalPhiCSC(0),
196 hprofGlobalThetaCSC(0),
229 if(theDataType !=
"RealData" && theDataType !=
"SimData")
230 edm::LogError(
"MuonAlignmentAnalyzer") <<
"Error in Data Type!!"<<std::endl;
266 hGBPhivsEta =
fs->
make<TH2F> (
"GBPhivsEta",
"#phi VS #eta",100,-2.5,2.5,100,-3.1416,3.1416);
269 hGBPTDiff =
fs->
make<TH1F>(
"GBpTDiff",
"p_{T}^{rec} - p_{T}^{gen} ",250,-120,120);
270 hGBPTDiffvsEta =
fs->
make<TH2F> (
"GBPTDiffvsEta",
"p_{T}^{rec} - p_{T}^{gen} VS #eta",100,-2.5,2.5,250,-120,120);
271 hGBPTDiffvsPhi =
fs->
make<TH2F> (
"GBPTDiffvsPhi",
"p_{T}^{rec} - p_{T}^{gen} VS #phi",100,-3.1416,3.1416,250,-120,120);
275 hGBinvPTres =
fs->
make<TH1F>(
"GBinvPTRes",
"#sigma (q/p_{T}) Resolution",100,-2,2);
276 hGBinvPTvsEta =
fs->
make<TH2F> (
"GBinvPTvsEta",
"#sigma (q/p_{T}) VS #eta",100,-2.5,2.5,100,-2,2);
277 hGBinvPTvsPhi =
fs->
make<TH2F> (
"GBinvPTvsPhi",
"#sigma (q/p_{T}) VS #phi",100,-3.1416,3.1416,100,-2,2);
303 hSAPhivsEta =
fs->
make<TH2F> (
"SAPhivsEta",
"#phi VS #eta",100,-2.5,2.5,100,-3.1416,3.1416);
306 hSAPTDiff =
fs->
make<TH1F>(
"SApTDiff",
"p_{T}^{rec} - p_{T}^{gen} ",250,-120,120);
307 hSAPTDiffvsEta =
fs->
make<TH2F> (
"SAPTDiffvsEta",
"p_{T}^{rec} - p_{T}^{gen} VS #eta",100,-2.5,2.5,250,-120,120);
308 hSAPTDiffvsPhi =
fs->
make<TH2F> (
"SAPTDiffvsPhi",
"p_{T}^{rec} - p_{T}^{gen} VS #phi",100,-3.1416,3.1416,250,-120,120);
314 hSAinvPTvsEta =
fs->
make<TH2F> (
"SAinvPTvsEta",
"#sigma (q/p_{T}) VS #eta",100,-2.5,2.5,100,-2,2);
315 hSAinvPTvsPhi =
fs->
make<TH2F> (
"SAinvPTvsPhi",
"#sigma (q/p_{T}) VS #phi",100,-3.1416,3.1416,100,-2,2);
337 hSimPhivsEta =
fs->
make<TH2F> (
"SimPhivsEta",
"#phi VS #eta",100,-2.5,2.5,100,-3.1416,3.1416);
368 hResidualLocalXDT_W[1]=
fs->
make<TH1F>(
"hResidualLocalXDT_W-1",
"hResidualLocalXDT_W-1",200,-10,10);
369 hResidualLocalPhiDT_W[1]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_W-1",
"hResidualLocalPhiDT_W-1",200,-1,1);
370 hResidualLocalThetaDT_W[1]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_W-1",
"hResidualLocalThetaDT_W-1",200,-1,1);
371 hResidualLocalYDT_W[1] =
fs->
make<TH1F>(
"hResidualLocalYDT_W-1",
"hResidualLocalYDT_W-1",200,-10,10);
372 hResidualLocalXDT_W[2]=
fs->
make<TH1F>(
"hResidualLocalXDT_W0",
"hResidualLocalXDT_W0",200,-10,10);
373 hResidualLocalPhiDT_W[2]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_W0",
"hResidualLocalPhiDT_W0",200,-1,1);
374 hResidualLocalThetaDT_W[2]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_W0",
"hResidualLocalThetaDT_W0",200,-1,1);
375 hResidualLocalYDT_W[2] =
fs->
make<TH1F>(
"hResidualLocalYDT_W0",
"hResidualLocalYDT_W0",200,-10,10);
376 hResidualLocalXDT_W[3]=
fs->
make<TH1F>(
"hResidualLocalXDT_W1",
"hResidualLocalXDT_W1",200,-10,10);
377 hResidualLocalPhiDT_W[3]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_W1",
"hResidualLocalPhiDT_W1",200,-1,1);
378 hResidualLocalThetaDT_W[3]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_W1",
"hResidualLocalThetaDT_W1",200,-1,1);
379 hResidualLocalYDT_W[3] =
fs->
make<TH1F>(
"hResidualLocalYDT_W1",
"hResidualLocalYDT_W1",200,-10,10);
380 hResidualLocalXDT_W[4]=
fs->
make<TH1F>(
"hResidualLocalXDT_W2",
"hResidualLocalXDT_W2",200,-10,10);
381 hResidualLocalPhiDT_W[4]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_W2",
"hResidualLocalPhiDT_W2",200,-1,1);
382 hResidualLocalThetaDT_W[4]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_W2",
"hResidualLocalThetaDT_W2",200,-1,1);
383 hResidualLocalYDT_W[4] =
fs->
make<TH1F>(
"hResidualLocalYDT_W2",
"hResidualLocalYDT_W2",200,-10,10);
388 hResidualGlobalRPhiDT_W[1]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_W-1",
"hResidualGlobalRPhiDT_W-1",200,-10,10);
389 hResidualGlobalPhiDT_W[1]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_W-1",
"hResidualGlobalPhiDT_W-1",200,-1,1);
390 hResidualGlobalThetaDT_W[1]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_W-1",
"hResidualGlobalThetaDT_W-1",200,-1,1);
391 hResidualGlobalZDT_W[1] =
fs->
make<TH1F>(
"hResidualGlobalZDT_W-1",
"hResidualGlobalZDT_W-1",200,-10,10);
392 hResidualGlobalRPhiDT_W[2]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_W0",
"hResidualGlobalRPhiDT_W0",200,-10,10);
393 hResidualGlobalPhiDT_W[2]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_W0",
"hResidualGlobalPhiDT_W0",200,-1,1);
394 hResidualGlobalThetaDT_W[2]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_W0",
"hResidualGlobalThetaDT_W0",200,-1,1);
395 hResidualGlobalZDT_W[2] =
fs->
make<TH1F>(
"hResidualGlobalZDT_W0",
"hResidualGlobalZDT_W0",200,-10,10);
396 hResidualGlobalRPhiDT_W[3]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_W1",
"hResidualGlobalRPhiDT_W1",200,-10,10);
397 hResidualGlobalPhiDT_W[3]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_W1",
"hResidualGlobalPhiDT_W1",200,-1,1);
398 hResidualGlobalThetaDT_W[3]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_W1",
"hResidualGlobalThetaDT_W1",200,-1,1);
399 hResidualGlobalZDT_W[3] =
fs->
make<TH1F>(
"hResidualGlobalZDT_W1",
"hResidualGlobalZDT_W1",200,-10,10);
400 hResidualGlobalRPhiDT_W[4]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_W2",
"hResidualGlobalRPhiDT_W2",200,-10,10);
401 hResidualGlobalPhiDT_W[4]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_W2",
"hResidualGlobalPhiDT_W2",200,-1,1);
402 hResidualGlobalThetaDT_W[4]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_W2",
"hResidualGlobalThetaDT_W2",200,-1,1);
403 hResidualGlobalZDT_W[4] =
fs->
make<TH1F>(
"hResidualGlobalZDT_W2",
"hResidualGlobalZDT_W2",200,-10,10);
410 hResidualLocalXDT_MB[1]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-2/2",
"hResidualLocalXDT_MB-2/2",200,-10,10);
411 hResidualLocalPhiDT_MB[1]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-2/2",
"hResidualLocalPhiDT_MB-2/2",200,-1,1);
412 hResidualLocalThetaDT_MB[1]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-2/2",
"hResidualLocalThetaDT_MB-2/2",200,-1,1);
413 hResidualLocalYDT_MB[1] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-2/2",
"hResidualLocalYDT_MB-2/2",200,-10,10);
414 hResidualLocalXDT_MB[2]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-2/3",
"hResidualLocalXDT_MB-2/3",200,-10,10);
415 hResidualLocalPhiDT_MB[2]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-2/3",
"hResidualLocalPhiDT_MB-2/3",200,-1,1);
416 hResidualLocalThetaDT_MB[2]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-2/3",
"hResidualLocalThetaDT_MB-2/3",200,-1,1);
417 hResidualLocalYDT_MB[2] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-2/3",
"hResidualLocalYDT_MB-2/3",200,-10,10);
418 hResidualLocalXDT_MB[3]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-2/4",
"hResidualLocalXDT_MB-2/4",200,-10,10);
419 hResidualLocalPhiDT_MB[3]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-2/4",
"hResidualLocalPhiDT_MB-2/4",200,-1,1);
420 hResidualLocalThetaDT_MB[3]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-2/4",
"hResidualLocalThetaDT_MB-2/4",200,-1,1);
421 hResidualLocalYDT_MB[3] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-2/4",
"hResidualLocalYDT_MB-2/4",200,-10,10);
422 hResidualLocalXDT_MB[4]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-1/1",
"hResidualLocalXDT_MB-1/1",200,-10,10);
423 hResidualLocalPhiDT_MB[4]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-1/1",
"hResidualLocalPhiDT_MB-1/1",200,-1,1);
424 hResidualLocalThetaDT_MB[4]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-1/1",
"hResidualLocalThetaDT_MB-1/1",200,-1,1);
425 hResidualLocalYDT_MB[4] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-1/1",
"hResidualLocalYDT_MB-1/1",200,-10,10);
426 hResidualLocalXDT_MB[5]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-1/2",
"hResidualLocalXDT_MB-1/2",200,-10,10);
427 hResidualLocalPhiDT_MB[5]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-1/2",
"hResidualLocalPhiDT_MB-1/2",200,-1,1);
428 hResidualLocalThetaDT_MB[5]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-1/2",
"hResidualLocalThetaDT_MB-1/2",200,-1,1);
429 hResidualLocalYDT_MB[5] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-1/2",
"hResidualLocalYDT_MB-1/2",200,-10,10);
430 hResidualLocalXDT_MB[6]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-1/3",
"hResidualLocalXDT_MB-1/3",200,-10,10);
431 hResidualLocalPhiDT_MB[6]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-1/3",
"hResidualLocalPhiDT_MB-1/3",200,-1,1);
432 hResidualLocalThetaDT_MB[6]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-1/3",
"hResidualLocalThetaDT_MB-1/3",200,-1,1);
433 hResidualLocalYDT_MB[6] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-1/3",
"hResidualLocalYDT_MB-1/3",200,-10,10);
434 hResidualLocalXDT_MB[7]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB-1/4",
"hResidualLocalXDT_MB-1/4",200,-10,10);
435 hResidualLocalPhiDT_MB[7]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB-1/4",
"hResidualLocalPhiDT_MB-1/4",200,-1,1);
436 hResidualLocalThetaDT_MB[7]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB-1/4",
"hResidualLocalThetaDT_MB-1/4",200,-1,1);
437 hResidualLocalYDT_MB[7] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB-1/4",
"hResidualLocalYDT_MB-1/4",200,-10,10);
438 hResidualLocalXDT_MB[8]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB0/1",
"hResidualLocalXDT_MB0/1",200,-10,10);
439 hResidualLocalPhiDT_MB[8]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB0/1",
"hResidualLocalPhiDT_MB0/1",200,-1,1);
440 hResidualLocalThetaDT_MB[8]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB0/1",
"hResidualLocalThetaDT_MB0/1",200,-1,1);
441 hResidualLocalYDT_MB[8] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB0/1",
"hResidualLocalYDT_MB0/1",200,-10,10);
442 hResidualLocalXDT_MB[9]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB0/2",
"hResidualLocalXDT_MB0/2",200,-10,10);
443 hResidualLocalPhiDT_MB[9]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB0/2",
"hResidualLocalPhiDT_MB0/2",200,-1,1);
444 hResidualLocalThetaDT_MB[9]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB0/2",
"hResidualLocalThetaDT_MB0/2",200,-1,1);
445 hResidualLocalYDT_MB[9] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB0/2",
"hResidualLocalYDT_MB0/2",200,-10,10);
446 hResidualLocalXDT_MB[10]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB0/3",
"hResidualLocalXDT_MB0/3",200,-10,10);
447 hResidualLocalThetaDT_MB[10]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB0/3",
"hResidualLocalThetaDT_MB0/3",200,-1,1);
448 hResidualLocalPhiDT_MB[10]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB0/3",
"hResidualLocalPhiDT_MB0/3",200,-1,1);
449 hResidualLocalYDT_MB[10] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB0/3",
"hResidualLocalYDT_MB0/3",200,-10,10);
450 hResidualLocalXDT_MB[11]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB0/4",
"hResidualLocalXDT_MB0/4",200,-10,10);
451 hResidualLocalPhiDT_MB[11]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB0/4",
"hResidualLocalPhiDT_MB0/4",200,-1,1);
452 hResidualLocalThetaDT_MB[11]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB0/4",
"hResidualLocalThetaDT_MB0/4",200,-1,1);
453 hResidualLocalYDT_MB[11] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB0/4",
"hResidualLocalYDT_MB0/4",200,-10,10);
454 hResidualLocalXDT_MB[12]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB1/1",
"hResidualLocalXDT_MB1/1",200,-10,10);
455 hResidualLocalPhiDT_MB[12]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB1/1",
"hResidualLocalPhiDT_MB1/1",200,-1,1);
456 hResidualLocalThetaDT_MB[12]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB1/1",
"hResidualLocalThetaDT_MB1/1",200,-1,1);
457 hResidualLocalYDT_MB[12] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB1/1",
"hResidualLocalYDT_MB1/1",200,-10,10);
458 hResidualLocalXDT_MB[13]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB1/2",
"hResidualLocalXDT_MB1/2",200,-10,10);
459 hResidualLocalPhiDT_MB[13]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB1/2",
"hResidualLocalPhiDT_MB1/2",200,-1,1);
460 hResidualLocalThetaDT_MB[13]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB1/2",
"hResidualLocalThetaDT_MB1/2",200,-1,1);
461 hResidualLocalYDT_MB[13] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB1/2",
"hResidualLocalYDT_MB1/2",200,-10,10);
462 hResidualLocalXDT_MB[14]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB1/3",
"hResidualLocalXDT_MB1/3",200,-10,10);
463 hResidualLocalPhiDT_MB[14]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB1/3",
"hResidualLocalPhiDT_MB1/3",200,-1,1);
464 hResidualLocalThetaDT_MB[14]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB1/3",
"hResidualLocalThetaDT_MB1/3",200,-1,1);
465 hResidualLocalYDT_MB[14] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB1/3",
"hResidualLocalYDT_MB1/3",200,-10,10);
466 hResidualLocalXDT_MB[15]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB1/4",
"hResidualLocalXDT_MB1/4",200,-10,10);
467 hResidualLocalPhiDT_MB[15]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB1/4",
"hResidualLocalPhiDT_MB1/4",200,-1,1);
468 hResidualLocalThetaDT_MB[15]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB1/4",
"hResidualLocalThetaDT_MB1/4",200,-1,1);
469 hResidualLocalYDT_MB[15] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB1/4",
"hResidualLocalYDT_MB1/4",200,-10,10);
470 hResidualLocalXDT_MB[16]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB2/1",
"hResidualLocalXDT_MB2/1",200,-10,10);
471 hResidualLocalPhiDT_MB[16]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB2/1",
"hResidualLocalPhiDT_MB2/1",200,-1,1);
472 hResidualLocalThetaDT_MB[16]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB2/1",
"hResidualLocalThetaDT_MB2/1",200,-1,1);
473 hResidualLocalYDT_MB[16] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB2/1",
"hResidualLocalYDT_MB2/1",200,-10,10);
474 hResidualLocalXDT_MB[17]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB2/2",
"hResidualLocalXDT_MB2/2",200,-10,10);
475 hResidualLocalPhiDT_MB[17]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB2/2",
"hResidualLocalPhiDT_MB2/2",200,-1,1);
476 hResidualLocalThetaDT_MB[17]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB2/2",
"hResidualLocalThetaDT_MB2/2",200,-1,1);
477 hResidualLocalYDT_MB[17] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB2/2",
"hResidualLocalYDT_MB2/2",200,-10,10);
478 hResidualLocalXDT_MB[18]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB2/3",
"hResidualLocalXDT_MB2/3",200,-10,10);
479 hResidualLocalPhiDT_MB[18]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB2/3",
"hResidualLocalPhiDT_MB2/3",200,-1,1);
480 hResidualLocalThetaDT_MB[18]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB2/3",
"hResidualLocalThetaDT_MB2/3",200,-1,1);
481 hResidualLocalYDT_MB[18] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB2/3",
"hResidualLocalYDT_MB2/3",200,-10,10);
482 hResidualLocalXDT_MB[19]=
fs->
make<TH1F>(
"hResidualLocalXDT_MB2/4",
"hResidualLocalXDT_MB2/4",200,-10,10);
483 hResidualLocalPhiDT_MB[19]=
fs->
make<TH1F>(
"hResidualLocalPhiDT_MB2/4",
"hResidualLocalPhiDT_MB2/4",200,-1,1);
484 hResidualLocalThetaDT_MB[19]=
fs->
make<TH1F>(
"hResidualLocalThetaDT_MB2/4",
"hResidualLocalThetaDT_MB2/4",200,-1,1);
485 hResidualLocalYDT_MB[19] =
fs->
make<TH1F>(
"hResidualLocalYDT_MB2/4",
"hResidualLocalYDT_MB2/4",200,-10,10);
490 hResidualGlobalRPhiDT_MB[1]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-2/2",
"hResidualGlobalRPhiDT_MB-2/2",200,-10,10);
491 hResidualGlobalPhiDT_MB[1]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-2/2",
"hResidualGlobalPhiDT_MB-2/2",200,-1,1);
492 hResidualGlobalThetaDT_MB[1]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-2/2",
"hResidualGlobalThetaDT_MB-2/2",200,-1,1);
493 hResidualGlobalZDT_MB[1] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-2/2",
"hResidualGlobalZDT_MB-2/2",200,-10,10);
494 hResidualGlobalRPhiDT_MB[2]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-2/3",
"hResidualGlobalRPhiDT_MB-2/3",200,-10,10);
495 hResidualGlobalPhiDT_MB[2]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-2/3",
"hResidualGlobalPhiDT_MB-2/3",200,-1,1);
496 hResidualGlobalThetaDT_MB[2]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-2/3",
"hResidualGlobalThetaDT_MB-2/3",200,-1,1);
497 hResidualGlobalZDT_MB[2] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-2/3",
"hResidualGlobalZDT_MB-2/3",200,-10,10);
498 hResidualGlobalRPhiDT_MB[3]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-2/4",
"hResidualGlobalRPhiDT_MB-2/4",200,-10,10);
499 hResidualGlobalPhiDT_MB[3]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-2/4",
"hResidualGlobalPhiDT_MB-2/4",200,-1,1);
500 hResidualGlobalThetaDT_MB[3]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-2/4",
"hResidualGlobalThetaDT_MB-2/4",200,-1,1);
501 hResidualGlobalZDT_MB[3] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-2/4",
"hResidualGlobalZDT_MB-2/4",200,-10,10);
502 hResidualGlobalRPhiDT_MB[4]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-1/1",
"hResidualGlobalRPhiDT_MB-1/1",200,-10,10);
503 hResidualGlobalPhiDT_MB[4]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-1/1",
"hResidualGlobalPhiDT_MB-1/1",200,-1,1);
504 hResidualGlobalThetaDT_MB[4]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-1/1",
"hResidualGlobalThetaDT_MB-1/1",200,-1,1);
505 hResidualGlobalZDT_MB[4] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-1/1",
"hResidualGlobalZDT_MB-1/1",200,-10,10);
506 hResidualGlobalRPhiDT_MB[5]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-1/2",
"hResidualGlobalRPhiDT_MB-1/2",200,-10,10);
507 hResidualGlobalPhiDT_MB[5]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-1/2",
"hResidualGlobalPhiDT_MB-1/2",200,-1,1);
508 hResidualGlobalThetaDT_MB[5]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-1/2",
"hResidualGlobalThetaDT_MB-1/2",200,-1,1);
509 hResidualGlobalZDT_MB[5] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-1/2",
"hResidualGlobalZDT_MB-1/2",200,-10,10);
510 hResidualGlobalRPhiDT_MB[6]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-1/3",
"hResidualGlobalRPhiDT_MB-1/3",200,-10,10);
511 hResidualGlobalPhiDT_MB[6]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-1/3",
"hResidualGlobalPhiDT_MB-1/3",200,-1,1);
512 hResidualGlobalThetaDT_MB[6]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-1/3",
"hResidualGlobalThetaDT_MB-1/3",200,-1,1);
513 hResidualGlobalZDT_MB[6] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-1/3",
"hResidualGlobalZDT_MB-1/3",200,-10,10);
514 hResidualGlobalRPhiDT_MB[7]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB-1/4",
"hResidualGlobalRPhiDT_MB-1/4",200,-10,10);
515 hResidualGlobalPhiDT_MB[7]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB-1/4",
"hResidualGlobalPhiDT_MB-1/4",200,-1,1);
516 hResidualGlobalThetaDT_MB[7]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB-1/4",
"hResidualGlobalThetaDT_MB-1/4",200,-1,1);
517 hResidualGlobalZDT_MB[7] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB-1/4",
"hResidualGlobalZDT_MB-1/4",200,-10,10);
518 hResidualGlobalRPhiDT_MB[8]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB0/1",
"hResidualGlobalRPhiDT_MB0/1",200,-10,10);
519 hResidualGlobalPhiDT_MB[8]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB0/1",
"hResidualGlobalPhiDT_MB0/1",200,-1,1);
520 hResidualGlobalThetaDT_MB[8]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB0/1",
"hResidualGlobalThetaDT_MB0/1",200,-1,1);
521 hResidualGlobalZDT_MB[8] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB0/1",
"hResidualGlobalZDT_MB0/1",200,-10,10);
522 hResidualGlobalRPhiDT_MB[9]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB0/2",
"hResidualGlobalRPhiDT_MB0/2",200,-10,10);
523 hResidualGlobalPhiDT_MB[9]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB0/2",
"hResidualGlobalPhiDT_MB0/2",200,-1,1);
524 hResidualGlobalThetaDT_MB[9]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB0/2",
"hResidualGlobalThetaDT_MB0/2",200,-1,1);
525 hResidualGlobalZDT_MB[9] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB0/2",
"hResidualGlobalZDT_MB0/2",200,-10,10);
526 hResidualGlobalRPhiDT_MB[10]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB0/3",
"hResidualGlobalRPhiDT_MB0/3",200,-10,10);
527 hResidualGlobalThetaDT_MB[10]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB0/3",
"hResidualGlobalThetaDT_MB0/3",200,-1,1);
528 hResidualGlobalPhiDT_MB[10]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB0/3",
"hResidualGlobalPhiDT_MB0/3",200,-1,1);
529 hResidualGlobalZDT_MB[10] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB0/3",
"hResidualGlobalZDT_MB0/3",200,-10,10);
530 hResidualGlobalRPhiDT_MB[11]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB0/4",
"hResidualGlobalRPhiDT_MB0/4",200,-10,10);
531 hResidualGlobalPhiDT_MB[11]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB0/4",
"hResidualGlobalPhiDT_MB0/4",200,-1,1);
532 hResidualGlobalThetaDT_MB[11]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB0/4",
"hResidualGlobalThetaDT_MB0/4",200,-1,1);
533 hResidualGlobalZDT_MB[11] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB0/4",
"hResidualGlobalZDT_MB0/4",200,-10,10);
534 hResidualGlobalRPhiDT_MB[12]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB1/1",
"hResidualGlobalRPhiDT_MB1/1",200,-10,10);
535 hResidualGlobalPhiDT_MB[12]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB1/1",
"hResidualGlobalPhiDT_MB1/1",200,-1,1);
536 hResidualGlobalThetaDT_MB[12]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB1/1",
"hResidualGlobalThetaDT_MB1/1",200,-1,1);
537 hResidualGlobalZDT_MB[12] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB1/1",
"hResidualGlobalZDT_MB1/1",200,-10,10);
538 hResidualGlobalRPhiDT_MB[13]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB1/2",
"hResidualGlobalRPhiDT_MB1/2",200,-10,10);
539 hResidualGlobalPhiDT_MB[13]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB1/2",
"hResidualGlobalPhiDT_MB1/2",200,-1,1);
540 hResidualGlobalThetaDT_MB[13]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB1/2",
"hResidualGlobalThetaDT_MB1/2",200,-1,1);
541 hResidualGlobalZDT_MB[13] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB1/2",
"hResidualGlobalZDT_MB1/2",200,-10,10);
542 hResidualGlobalRPhiDT_MB[14]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB1/3",
"hResidualGlobalRPhiDT_MB1/3",200,-10,10);
543 hResidualGlobalPhiDT_MB[14]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB1/3",
"hResidualGlobalPhiDT_MB1/3",200,-1,1);
544 hResidualGlobalThetaDT_MB[14]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB1/3",
"hResidualGlobalThetaDT_MB1/3",200,-1,1);
545 hResidualGlobalZDT_MB[14] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB1/3",
"hResidualGlobalZDT_MB1/3",200,-10,10);
546 hResidualGlobalRPhiDT_MB[15]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB1/4",
"hResidualGlobalRPhiDT_MB1/4",200,-10,10);
547 hResidualGlobalPhiDT_MB[15]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB1/4",
"hResidualGlobalPhiDT_MB1/4",200,-1,1);
548 hResidualGlobalThetaDT_MB[15]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB1/4",
"hResidualGlobalThetaDT_MB1/4",200,-1,1);
549 hResidualGlobalZDT_MB[15] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB1/4",
"hResidualGlobalZDT_MB1/4",200,-10,10);
550 hResidualGlobalRPhiDT_MB[16]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB2/1",
"hResidualGlobalRPhiDT_MB2/1",200,-10,10);
551 hResidualGlobalPhiDT_MB[16]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB2/1",
"hResidualGlobalPhiDT_MB2/1",200,-1,1);
552 hResidualGlobalThetaDT_MB[16]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB2/1",
"hResidualGlobalThetaDT_MB2/1",200,-1,1);
553 hResidualGlobalZDT_MB[16] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB2/1",
"hResidualGlobalZDT_MB2/1",200,-10,10);
554 hResidualGlobalRPhiDT_MB[17]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB2/2",
"hResidualGlobalRPhiDT_MB2/2",200,-10,10);
555 hResidualGlobalPhiDT_MB[17]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB2/2",
"hResidualGlobalPhiDT_MB2/2",200,-1,1);
556 hResidualGlobalThetaDT_MB[17]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB2/2",
"hResidualGlobalThetaDT_MB2/2",200,-1,1);
557 hResidualGlobalZDT_MB[17] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB2/2",
"hResidualGlobalZDT_MB2/2",200,-10,10);
558 hResidualGlobalRPhiDT_MB[18]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB2/3",
"hResidualGlobalRPhiDT_MB2/3",200,-10,10);
559 hResidualGlobalPhiDT_MB[18]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB2/3",
"hResidualGlobalPhiDT_MB2/3",200,-1,1);
560 hResidualGlobalThetaDT_MB[18]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB2/3",
"hResidualGlobalThetaDT_MB2/3",200,-1,1);
561 hResidualGlobalZDT_MB[18] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB2/3",
"hResidualGlobalZDT_MB2/3",200,-10,10);
562 hResidualGlobalRPhiDT_MB[19]=
fs->
make<TH1F>(
"hResidualGlobalRPhiDT_MB2/4",
"hResidualGlobalRPhiDT_MB2/4",200,-10,10);
563 hResidualGlobalPhiDT_MB[19]=
fs->
make<TH1F>(
"hResidualGlobalPhiDT_MB2/4",
"hResidualGlobalPhiDT_MB2/4",200,-1,1);
564 hResidualGlobalThetaDT_MB[19]=
fs->
make<TH1F>(
"hResidualGlobalThetaDT_MB2/4",
"hResidualGlobalThetaDT_MB2/4",200,-1,1);
565 hResidualGlobalZDT_MB[19] =
fs->
make<TH1F>(
"hResidualGlobalZDT_MB2/4",
"hResidualGlobalZDT_MB2/4",200,-10,10);
573 hResidualLocalXCSC_ME[1]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-4/2",
"hResidualLocalXCSC_ME-4/2",200,-10,10);
574 hResidualLocalPhiCSC_ME[1]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-4/2",
"hResidualLocalPhiCSC_ME-4/2",200,-1,1);
575 hResidualLocalThetaCSC_ME[1]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-4/2",
"hResidualLocalThetaCSC_ME-4/2",200,-1,1);
576 hResidualLocalYCSC_ME[1] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-4/2",
"hResidualLocalYCSC_ME-4/2",200,-10,10);
577 hResidualLocalXCSC_ME[2]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-3/1",
"hResidualLocalXCSC_ME-3/1",200,-10,10);
578 hResidualLocalPhiCSC_ME[2]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-3/1",
"hResidualLocalPhiCSC_ME-3/1",200,-1,1);
579 hResidualLocalThetaCSC_ME[2]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-3/1",
"hResidualLocalThetaCSC_ME-3/1",200,-1,1);
580 hResidualLocalYCSC_ME[2] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-3/1",
"hResidualLocalYCSC_ME-3/1",200,-10,10);
581 hResidualLocalXCSC_ME[3]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-3/2",
"hResidualLocalXCSC_ME-3/2",200,-10,10);
582 hResidualLocalPhiCSC_ME[3]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-3/2",
"hResidualLocalPhiCSC_ME-3/2",200,-1,1);
583 hResidualLocalThetaCSC_ME[3]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-3/2",
"hResidualLocalThetaCSC_ME-3/2",200,-1,1);
584 hResidualLocalYCSC_ME[3] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-3/2",
"hResidualLocalYCSC_ME-3/2",200,-10,10);
585 hResidualLocalXCSC_ME[4]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-2/1",
"hResidualLocalXCSC_ME-2/1",200,-10,10);
586 hResidualLocalPhiCSC_ME[4]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-2/1",
"hResidualLocalPhiCSC_ME-2/1",200,-1,1);
587 hResidualLocalThetaCSC_ME[4]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-2/1",
"hResidualLocalThetaCSC_ME-2/1",200,-1,1);
588 hResidualLocalYCSC_ME[4] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-2/1",
"hResidualLocalYCSC_ME-2/1",200,-10,10);
589 hResidualLocalXCSC_ME[5]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-2/2",
"hResidualLocalXCSC_ME-2/2",200,-10,10);
590 hResidualLocalPhiCSC_ME[5]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-2/2",
"hResidualLocalPhiCSC_ME-2/2",200,-1,1);
591 hResidualLocalThetaCSC_ME[5]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-2/2",
"hResidualLocalThetaCSC_ME-2/2",200,-1,1);
592 hResidualLocalYCSC_ME[5] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-2/2",
"hResidualLocalYCSC_ME-2/2",200,-10,10);
593 hResidualLocalXCSC_ME[6]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-1/1",
"hResidualLocalXCSC_ME-1/1",200,-10,10);
594 hResidualLocalPhiCSC_ME[6]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-1/1",
"hResidualLocalPhiCSC_ME-1/1",200,-1,1);
595 hResidualLocalThetaCSC_ME[6]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-1/1",
"hResidualLocalThetaCSC_ME-1/1",200,-1,1);
596 hResidualLocalYCSC_ME[6] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-1/1",
"hResidualLocalYCSC_ME-1/1",200,-10,10);
597 hResidualLocalXCSC_ME[7]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-1/2",
"hResidualLocalXCSC_ME-1/2",200,-10,10);
598 hResidualLocalPhiCSC_ME[7]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-1/2",
"hResidualLocalPhiCSC_ME-1/2",200,-1,1);
599 hResidualLocalThetaCSC_ME[7]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-1/2",
"hResidualLocalThetaCSC_ME-1/2",200,-1,1);
600 hResidualLocalYCSC_ME[7] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-1/2",
"hResidualLocalYCSC_ME-1/2",200,-10,10);
601 hResidualLocalXCSC_ME[8]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME-1/3",
"hResidualLocalXCSC_ME-1/3",200,-10,10);
602 hResidualLocalPhiCSC_ME[8]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME-1/3",
"hResidualLocalPhiCSC_ME-1/3",200,-1,1);
603 hResidualLocalThetaCSC_ME[8]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME-1/3",
"hResidualLocalThetaCSC_ME-1/3",200,-1,1);
604 hResidualLocalYCSC_ME[8] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME-1/3",
"hResidualLocalYCSC_ME-1/3",200,-10,10);
605 hResidualLocalXCSC_ME[9]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME1/1",
"hResidualLocalXCSC_ME1/1",200,-10,10);
606 hResidualLocalPhiCSC_ME[9]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME1/1",
"hResidualLocalPhiCSC_ME1/1",100,-1,1);
607 hResidualLocalThetaCSC_ME[9]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME1/1",
"hResidualLocalThetaCSC_ME1/1",200,-1,1);
608 hResidualLocalYCSC_ME[9] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME1/1",
"hResidualLocalYCSC_ME1/1",200,-10,10);
609 hResidualLocalXCSC_ME[10]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME1/2",
"hResidualLocalXCSC_ME1/2",200,-10,10);
610 hResidualLocalPhiCSC_ME[10]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME1/2",
"hResidualLocalPhiCSC_ME1/2",200,-1,1);
611 hResidualLocalThetaCSC_ME[10]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME1/2",
"hResidualLocalThetaCSC_ME1/2",200,-1,1);
612 hResidualLocalYCSC_ME[10] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME1/2",
"hResidualLocalYCSC_ME1/2",200,-10,10);
613 hResidualLocalXCSC_ME[11]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME1/3",
"hResidualLocalXCSC_ME1/3",200,-10,10);
614 hResidualLocalPhiCSC_ME[11]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME1/3",
"hResidualLocalPhiCSC_ME1/3",200,-1,1);
615 hResidualLocalThetaCSC_ME[11]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME1/3",
"hResidualLocalThetaCSC_ME1/3",200,-1,1);
616 hResidualLocalYCSC_ME[11] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME1/3",
"hResidualLocalYCSC_ME1/3",200,-10,10);
617 hResidualLocalXCSC_ME[12]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME2/1",
"hResidualLocalXCSC_ME2/1",200,-10,10);
618 hResidualLocalPhiCSC_ME[12]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME2/1",
"hResidualLocalPhiCSC_ME2/1",200,-1,1);
619 hResidualLocalThetaCSC_ME[12]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME2/1",
"hResidualLocalThetaCSC_ME2/1",200,-1,1);
620 hResidualLocalYCSC_ME[12] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME2/1",
"hResidualLocalYCSC_ME2/1",200,-10,10);
621 hResidualLocalXCSC_ME[13]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME2/2",
"hResidualLocalXCSC_ME2/2",200,-10,10);
622 hResidualLocalPhiCSC_ME[13]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME2/2",
"hResidualLocalPhiCSC_ME2/2",200,-1,1);
623 hResidualLocalThetaCSC_ME[13]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME2/2",
"hResidualLocalThetaCSC_ME2/2",200,-1,1);
624 hResidualLocalYCSC_ME[13] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME2/2",
"hResidualLocalYCSC_ME2/2",200,-10,10);
625 hResidualLocalXCSC_ME[14]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME3/1",
"hResidualLocalXCSC_ME3/1",200,-10,10);
626 hResidualLocalPhiCSC_ME[14]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME3/1",
"hResidualLocalPhiCSC_ME3/1",200,-1,1);
627 hResidualLocalThetaCSC_ME[14]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME3/1",
"hResidualLocalThetaCSC_ME3/1",200,-1,1);
628 hResidualLocalYCSC_ME[14] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME3/1",
"hResidualLocalYCSC_ME3/1",200,-10,10);
629 hResidualLocalXCSC_ME[15]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME3/2",
"hResidualLocalXCSC_ME3/2",200,-10,10);
630 hResidualLocalPhiCSC_ME[15]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME3/2",
"hResidualLocalPhiCSC_ME3/2",200,-1,1);
631 hResidualLocalThetaCSC_ME[15]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME3/2",
"hResidualLocalThetaCSC_ME3/2",200,-1,1);
632 hResidualLocalYCSC_ME[15] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME3/2",
"hResidualLocalYCSC_ME3/2",200,-10,10);
633 hResidualLocalXCSC_ME[16]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME4/1",
"hResidualLocalXCSC_ME4/1",200,-10,10);
634 hResidualLocalPhiCSC_ME[16]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME4/1",
"hResidualLocalPhiCSC_ME4/1",200,-1,1);
635 hResidualLocalThetaCSC_ME[16]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME4/1",
"hResidualLocalThetaCSC_ME4/1",200,-1,1);
636 hResidualLocalYCSC_ME[16] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME4/1",
"hResidualLocalYCSC_ME4/1",200,-10,10);
637 hResidualLocalXCSC_ME[17]=
fs->
make<TH1F>(
"hResidualLocalXCSC_ME4/2",
"hResidualLocalXCSC_ME4/2",200,-10,10);
638 hResidualLocalPhiCSC_ME[17]=
fs->
make<TH1F>(
"hResidualLocalPhiCSC_ME4/2",
"hResidualLocalPhiCSC_ME4/2",200,-1,1);
639 hResidualLocalThetaCSC_ME[17]=
fs->
make<TH1F>(
"hResidualLocalThetaCSC_ME4/2",
"hResidualLocalThetaCSC_ME4/2",200,-1,1);
640 hResidualLocalYCSC_ME[17] =
fs->
make<TH1F>(
"hResidualLocalYCSC_ME4/2",
"hResidualLocalYCSC_ME4/2",200,-10,10);
645 hResidualGlobalRPhiCSC_ME[1]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-4/2",
"hResidualGlobalRPhiCSC_ME-4/2",200,-10,10);
646 hResidualGlobalPhiCSC_ME[1]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-4/2",
"hResidualGlobalPhiCSC_ME-4/2",200,-1,1);
647 hResidualGlobalThetaCSC_ME[1]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-4/2",
"hResidualGlobalThetaCSC_ME-4/2",200,-1,1);
648 hResidualGlobalRCSC_ME[1] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-4/2",
"hResidualGlobalRCSC_ME-4/2",200,-10,10);
649 hResidualGlobalRPhiCSC_ME[2]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-3/1",
"hResidualGlobalRPhiCSC_ME-3/1",200,-10,10);
650 hResidualGlobalPhiCSC_ME[2]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-3/1",
"hResidualGlobalPhiCSC_ME-3/1",200,-1,1);
651 hResidualGlobalThetaCSC_ME[2]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-3/1",
"hResidualGlobalThetaCSC_ME-3/1",200,-1,1);
652 hResidualGlobalRCSC_ME[2] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-3/1",
"hResidualGlobalRCSC_ME-3/1",200,-10,10);
653 hResidualGlobalRPhiCSC_ME[3]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-3/2",
"hResidualGlobalRPhiCSC_ME-3/2",200,-10,10);
654 hResidualGlobalPhiCSC_ME[3]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-3/2",
"hResidualGlobalPhiCSC_ME-3/2",200,-1,1);
655 hResidualGlobalThetaCSC_ME[3]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-3/2",
"hResidualGlobalThetaCSC_ME-3/2",200,-1,1);
656 hResidualGlobalRCSC_ME[3] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-3/2",
"hResidualGlobalRCSC_ME-3/2",200,-10,10);
657 hResidualGlobalRPhiCSC_ME[4]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-2/1",
"hResidualGlobalRPhiCSC_ME-2/1",200,-10,10);
658 hResidualGlobalPhiCSC_ME[4]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-2/1",
"hResidualGlobalPhiCSC_ME-2/1",200,-1,1);
659 hResidualGlobalThetaCSC_ME[4]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-2/1",
"hResidualGlobalThetaCSC_ME-2/1",200,-1,1);
660 hResidualGlobalRCSC_ME[4] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-2/1",
"hResidualGlobalRCSC_ME-2/1",200,-10,10);
661 hResidualGlobalRPhiCSC_ME[5]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-2/2",
"hResidualGlobalRPhiCSC_ME-2/2",200,-10,10);
662 hResidualGlobalPhiCSC_ME[5]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-2/2",
"hResidualGlobalPhiCSC_ME-2/2",200,-1,1);
663 hResidualGlobalThetaCSC_ME[5]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-2/2",
"hResidualGlobalThetaCSC_ME-2/2",200,-1,1);
664 hResidualGlobalRCSC_ME[5] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-2/2",
"hResidualGlobalRCSC_ME-2/2",200,-10,10);
665 hResidualGlobalRPhiCSC_ME[6]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-1/1",
"hResidualGlobalRPhiCSC_ME-1/1",200,-10,10);
666 hResidualGlobalPhiCSC_ME[6]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-1/1",
"hResidualGlobalPhiCSC_ME-1/1",200,-1,1);
667 hResidualGlobalThetaCSC_ME[6]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-1/1",
"hResidualGlobalThetaCSC_ME-1/1",200,-1,1);
668 hResidualGlobalRCSC_ME[6] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-1/1",
"hResidualGlobalRCSC_ME-1/1",200,-10,10);
669 hResidualGlobalRPhiCSC_ME[7]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-1/2",
"hResidualGlobalRPhiCSC_ME-1/2",200,-10,10);
670 hResidualGlobalPhiCSC_ME[7]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-1/2",
"hResidualGlobalPhiCSC_ME-1/2",200,-1,1);
671 hResidualGlobalThetaCSC_ME[7]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-1/2",
"hResidualGlobalThetaCSC_ME-1/2",200,-1,1);
672 hResidualGlobalRCSC_ME[7] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-1/2",
"hResidualGlobalRCSC_ME-1/2",200,-10,10);
673 hResidualGlobalRPhiCSC_ME[8]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME-1/3",
"hResidualGlobalRPhiCSC_ME-1/3",200,-10,10);
674 hResidualGlobalPhiCSC_ME[8]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME-1/3",
"hResidualGlobalPhiCSC_ME-1/3",200,-1,1);
675 hResidualGlobalThetaCSC_ME[8]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME-1/3",
"hResidualGlobalThetaCSC_ME-1/3",200,-1,1);
676 hResidualGlobalRCSC_ME[8] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME-1/3",
"hResidualGlobalRCSC_ME-1/3",200,-10,10);
677 hResidualGlobalRPhiCSC_ME[9]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME1/1",
"hResidualGlobalRPhiCSC_ME1/1",200,-10,10);
678 hResidualGlobalPhiCSC_ME[9]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME1/1",
"hResidualGlobalPhiCSC_ME1/1",100,-1,1);
679 hResidualGlobalThetaCSC_ME[9]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME1/1",
"hResidualGlobalThetaCSC_ME1/1",200,-1,1);
680 hResidualGlobalRCSC_ME[9] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME1/1",
"hResidualGlobalRCSC_ME1/1",200,-10,10);
681 hResidualGlobalRPhiCSC_ME[10]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME1/2",
"hResidualGlobalRPhiCSC_ME1/2",200,-10,10);
682 hResidualGlobalPhiCSC_ME[10]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME1/2",
"hResidualGlobalPhiCSC_ME1/2",200,-1,1);
683 hResidualGlobalThetaCSC_ME[10]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME1/2",
"hResidualGlobalThetaCSC_ME1/2",200,-1,1);
684 hResidualGlobalRCSC_ME[10] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME1/2",
"hResidualGlobalRCSC_ME1/2",200,-10,10);
685 hResidualGlobalRPhiCSC_ME[11]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME1/3",
"hResidualGlobalRPhiCSC_ME1/3",200,-10,10);
686 hResidualGlobalPhiCSC_ME[11]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME1/3",
"hResidualGlobalPhiCSC_ME1/3",200,-1,1);
687 hResidualGlobalThetaCSC_ME[11]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME1/3",
"hResidualGlobalThetaCSC_ME1/3",200,-1,1);
688 hResidualGlobalRCSC_ME[11] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME1/3",
"hResidualGlobalRCSC_ME1/3",200,-10,10);
689 hResidualGlobalRPhiCSC_ME[12]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME2/1",
"hResidualGlobalRPhiCSC_ME2/1",200,-10,10);
690 hResidualGlobalPhiCSC_ME[12]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME2/1",
"hResidualGlobalPhiCSC_ME2/1",200,-1,1);
691 hResidualGlobalThetaCSC_ME[12]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME2/1",
"hResidualGlobalThetaCSC_ME2/1",200,-1,1);
692 hResidualGlobalRCSC_ME[12] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME2/1",
"hResidualGlobalRCSC_ME2/1",200,-10,10);
693 hResidualGlobalRPhiCSC_ME[13]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME2/2",
"hResidualGlobalRPhiCSC_ME2/2",200,-10,10);
694 hResidualGlobalPhiCSC_ME[13]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME2/2",
"hResidualGlobalPhiCSC_ME2/2",200,-1,1);
695 hResidualGlobalThetaCSC_ME[13]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME2/2",
"hResidualGlobalThetaCSC_ME2/2",200,-1,1);
696 hResidualGlobalRCSC_ME[13] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME2/2",
"hResidualGlobalRCSC_ME2/2",200,-10,10);
697 hResidualGlobalRPhiCSC_ME[14]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME3/1",
"hResidualGlobalRPhiCSC_ME3/1",200,-10,10);
698 hResidualGlobalPhiCSC_ME[14]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME3/1",
"hResidualGlobalPhiCSC_ME3/1",200,-1,1);
699 hResidualGlobalThetaCSC_ME[14]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME3/1",
"hResidualGlobalThetaCSC_ME3/1",200,-1,1);
700 hResidualGlobalRCSC_ME[14] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME3/1",
"hResidualGlobalRCSC_ME3/1",200,-10,10);
701 hResidualGlobalRPhiCSC_ME[15]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME3/2",
"hResidualGlobalRPhiCSC_ME3/2",200,-10,10);
702 hResidualGlobalPhiCSC_ME[15]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME3/2",
"hResidualGlobalPhiCSC_ME3/2",200,-1,1);
703 hResidualGlobalThetaCSC_ME[15]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME3/2",
"hResidualGlobalThetaCSC_ME3/2",200,-1,1);
704 hResidualGlobalRCSC_ME[15] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME3/2",
"hResidualGlobalRCSC_ME3/2",200,-10,10);
705 hResidualGlobalRPhiCSC_ME[16]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME4/1",
"hResidualGlobalRPhiCSC_ME4/1",200,-10,10);
706 hResidualGlobalPhiCSC_ME[16]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME4/1",
"hResidualGlobalPhiCSC_ME4/1",200,-1,1);
707 hResidualGlobalThetaCSC_ME[16]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME4/1",
"hResidualGlobalThetaCSC_ME4/1",200,-1,1);
708 hResidualGlobalRCSC_ME[16] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME4/1",
"hResidualGlobalRCSC_ME4/1",200,-10,10);
709 hResidualGlobalRPhiCSC_ME[17]=
fs->
make<TH1F>(
"hResidualGlobalRPhiCSC_ME4/2",
"hResidualGlobalRPhiCSC_ME4/2",200,-10,10);
710 hResidualGlobalPhiCSC_ME[17]=
fs->
make<TH1F>(
"hResidualGlobalPhiCSC_ME4/2",
"hResidualGlobalPhiCSC_ME4/2",200,-1,1);
711 hResidualGlobalThetaCSC_ME[17]=
fs->
make<TH1F>(
"hResidualGlobalThetaCSC_ME4/2",
"hResidualGlobalThetaCSC_ME4/2",200,-1,1);
712 hResidualGlobalRCSC_ME[17] =
fs->
make<TH1F>(
"hResidualGlobalRCSC_ME4/2",
"hResidualGlobalRCSC_ME4/2",200,-10,10);
733 hprofLocalXDT->GetXaxis()->SetLabelSize(0.025);
734 hprofLocalPhiDT->GetXaxis()->SetLabelSize(0.025);
735 hprofLocalThetaDT->GetXaxis()->SetLabelSize(0.025);
736 hprofLocalYDT->GetXaxis()->SetLabelSize(0.025);
737 hprofLocalXCSC->GetXaxis()->SetLabelSize(0.025);
738 hprofLocalPhiCSC->GetXaxis()->SetLabelSize(0.025);
739 hprofLocalThetaCSC->GetXaxis()->SetLabelSize(0.025);
740 hprofLocalYCSC->GetXaxis()->SetLabelSize(0.025);
741 hprofGlobalRPhiDT->GetXaxis()->SetLabelSize(0.025);
742 hprofGlobalPhiDT->GetXaxis()->SetLabelSize(0.025);
743 hprofGlobalThetaDT->GetXaxis()->SetLabelSize(0.025);
744 hprofGlobalZDT->GetXaxis()->SetLabelSize(0.025);
745 hprofGlobalRPhiCSC->GetXaxis()->SetLabelSize(0.025);
746 hprofGlobalPhiCSC->GetXaxis()->SetLabelSize(0.025);
747 hprofGlobalThetaCSC->GetXaxis()->SetLabelSize(0.025);
748 hprofGlobalRCSC->GetXaxis()->SetLabelSize(0.025);
751 hprofGlobalPositionDT=
fs->
make<TH2F>(
"hprofGlobalPositionDT",
"Global DT position (cm) absolute MEAN residuals;Sector;;cm", 14,0, 14,40,0,40);
752 hprofGlobalAngleDT=
fs->
make<TH2F>(
"hprofGlobalAngleDT",
"Global DT angle (rad) absolute MEAN residuals;Sector;;rad", 14,0, 14,40,0,40);
755 hprofLocalPositionDT=
fs->
make<TH2F>(
"hprofLocalPositionDT",
"Local DT position (cm) absolute MEAN residuals;Sector;;cm", 14,0, 14,40,0,40);
756 hprofLocalAngleDT=
fs->
make<TH2F>(
"hprofLocalAngleDT",
"Local DT angle (rad) absolute MEAN residuals;Sector;;rad", 14,0, 14,40,0,40);
758 hprofLocalAngleRmsDT=
fs->
make<TH2F>(
"hprofLocalAngleRmsDT",
"Local DT angle (rad) RMS residuals;Sector;;rad", 14,0, 14,40,0,40);
760 hprofGlobalPositionCSC=
fs->
make<TH2F>(
"hprofGlobalPositionCSC",
"Global CSC position (cm) absolute MEAN residuals;Sector;;cm", 36,0,36,36,0,36);
761 hprofGlobalAngleCSC=
fs->
make<TH2F>(
"hprofGlobalAngleCSC",
"Global CSC angle (rad) absolute MEAN residuals;Sector;;rad", 36,0,36,36,0,36);
764 hprofLocalPositionCSC=
fs->
make<TH2F>(
"hprofLocalPositionCSC",
"Local CSC position (cm) absolute MEAN residuals;Sector;;cm", 36,0,36,36,0,36);
765 hprofLocalAngleCSC=
fs->
make<TH2F>(
"hprofLocalAngleCSC",
"Local CSC angle (rad) absolute MEAN residuals;Sector;;rad", 36,0,36,36,0,36);
770 Float_t labelSize=0.025;
772 hprofGlobalAngleDT->GetYaxis()->SetLabelSize(labelSize);
773 hprofGlobalPositionRmsDT->GetYaxis()->SetLabelSize(labelSize);
774 hprofGlobalAngleRmsDT->GetYaxis()->SetLabelSize(labelSize);
775 hprofLocalPositionDT->GetYaxis()->SetLabelSize(labelSize);
776 hprofLocalAngleDT->GetYaxis()->SetLabelSize(labelSize);
777 hprofLocalPositionRmsDT->GetYaxis()->SetLabelSize(labelSize);
778 hprofLocalAngleRmsDT->GetYaxis()->SetLabelSize(labelSize);
780 hprofGlobalPositionCSC->GetYaxis()->SetLabelSize(labelSize);
781 hprofGlobalAngleCSC->GetYaxis()->SetLabelSize(labelSize);
782 hprofGlobalPositionRmsCSC->GetYaxis()->SetLabelSize(labelSize);
783 hprofGlobalAngleRmsCSC->GetYaxis()->SetLabelSize(labelSize);
784 hprofLocalPositionCSC->GetYaxis()->SetLabelSize(labelSize);
785 hprofLocalAngleCSC->GetYaxis()->SetLabelSize(labelSize);
786 hprofLocalPositionRmsCSC->GetYaxis()->SetLabelSize(labelSize);
787 hprofLocalAngleRmsCSC->GetYaxis()->SetLabelSize(labelSize);
790 for (
int i=1;
i<15;
i++){
791 snprintf(binLabel,
sizeof(binLabel),
"Sec-%d",
i );
793 hprofGlobalAngleDT->GetXaxis()->SetBinLabel(
i,binLabel);
794 hprofGlobalPositionRmsDT->GetXaxis()->SetBinLabel(
i,binLabel);
795 hprofGlobalAngleRmsDT->GetXaxis()->SetBinLabel(
i,binLabel);
796 hprofLocalPositionDT->GetXaxis()->SetBinLabel(
i,binLabel);
797 hprofLocalAngleDT->GetXaxis()->SetBinLabel(
i,binLabel);
798 hprofLocalPositionRmsDT->GetXaxis()->SetBinLabel(
i,binLabel);
799 hprofLocalAngleRmsDT->GetXaxis()->SetBinLabel(
i,binLabel);
802 for (
int i=1;
i<37;
i++){
803 snprintf(binLabel,
sizeof(binLabel),
"Ch-%d",
i );
804 hprofGlobalPositionCSC->GetXaxis()->SetBinLabel(
i,binLabel);
805 hprofGlobalAngleCSC->GetXaxis()->SetBinLabel(
i,binLabel);
806 hprofGlobalPositionRmsCSC->GetXaxis()->SetBinLabel(
i,binLabel);
807 hprofGlobalAngleRmsCSC->GetXaxis()->SetBinLabel(
i,binLabel);
808 hprofLocalPositionCSC->GetXaxis()->SetBinLabel(
i,binLabel);
809 hprofLocalAngleCSC->GetXaxis()->SetBinLabel(
i,binLabel);
810 hprofLocalPositionRmsCSC->GetXaxis()->SetBinLabel(
i,binLabel);
811 hprofLocalAngleRmsCSC->GetXaxis()->SetBinLabel(
i,binLabel);
821 edm::LogInfo(
"MuonAlignmentAnalyzer") <<
"----------------- " << std::endl << std::endl;
836 edm::LogInfo(
"MuonAlignmentAnalyzer") <<
"Number of Hits considered for residuals: " <<
numberOfHits << std::endl << std::endl;
861 if (nameHistoLocalX.Contains(
"MB"))
865 sscanf(nameHistoLocalX,
"ResidualLocalX_W%dMB%1dS%d",&wheel,&station,§or);
867 Int_t nstation=station - 1;
868 Int_t nwheel=wheel+2;
873 Int_t xbin=sector+14*nstation+14*4*nwheel;
875 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%dS%d", wheel, station, sector );
883 Int_t ybin=1+nwheel*8+nstation*2;
885 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%d_LocalX",wheel, station );
891 if (nameHistoLocalX.Contains(
"ME"))
896 sscanf(nameHistoLocalX,
"ResidualLocalX_ME%dR%1dC%d",&station,&ring,&chamber);
901 Int_t xbin=
abs(station)*2+
ring;
903 if (station>0) xbin=xbin+9;
904 else xbin = 10 -xbin;
907 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
908 else if(xbin<6) xbin=108+chamber;
909 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
910 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
911 else xbin=522+chamber;
913 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%dC%d", station, ring, chamber );
921 Int_t ybin=
abs(station)*2+
ring;
923 if (station>0) ybin=ybin+9;
924 else ybin = 10 -ybin;
927 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%d_LocalX", station,ring );
933 if (nameHistoLocalTheta.Contains(
"MB"))
938 sscanf(nameHistoLocalTheta,
"ResidualLocalTheta_W%dMB%1dS%d",&wheel,&station,§or);
941 Int_t nstation=station - 1;
942 Int_t nwheel=wheel+2;
947 Int_t xbin=sector+14*nstation+14*4*nwheel;
949 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%dS%d", wheel, station, sector );
957 Int_t ybin=2+nwheel*8+nstation*2;
959 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%d_LocalTheta",wheel,station );
967 if (nameHistoLocalPhi.Contains(
"MB"))
972 sscanf(nameHistoLocalPhi,
"ResidualLocalPhi_W%dMB%1dS%d",&wheel,&station,§or);
974 Int_t nstation=station - 1;
975 Int_t nwheel=wheel+2;
980 Int_t xbin=sector+14*nstation+14*4*nwheel;
982 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%dS%d", wheel, station, sector );
990 Int_t ybin=1+nwheel*8+nstation*2;
992 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%d_LocalPhi", wheel,station );
998 if (nameHistoLocalPhi.Contains(
"ME"))
1003 sscanf(nameHistoLocalPhi,
"ResidualLocalPhi_ME%dR%1dC%d",&station,&ring,&chamber);
1008 Int_t xbin=
abs(station)*2+
ring;
1009 if(
abs(station)==1) xbin=
ring;
1010 if (station>0) xbin=xbin+9;
1011 else xbin = 10 -xbin;
1014 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1015 else if(xbin<6) xbin=108+chamber;
1016 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1017 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1018 else xbin=522+chamber;
1020 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%dC%d", station, ring, chamber );
1028 Int_t ybin=
abs(station)*2+
ring;
1029 if(
abs(station)==1) ybin=
ring;
1030 if (station>0) ybin=ybin+9;
1031 else ybin = 10 -ybin;
1034 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%d_LocalPhi", station,ring );
1040 if (nameHistoLocalTheta.Contains(
"ME"))
1045 sscanf(nameHistoLocalTheta,
"ResidualLocalTheta_ME%dR%1dC%d",&station,&ring,&chamber);
1050 Int_t xbin=
abs(station)*2+
ring;
1051 if(
abs(station)==1) xbin=
ring;
1052 if (station>0) xbin=xbin+9;
1053 else xbin = 10 -xbin;
1056 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1057 else if(xbin<6) xbin=108+chamber;
1058 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1059 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1060 else xbin=522+chamber;
1062 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%dC%d", station, ring, chamber );
1070 Int_t ybin=
abs(station)*2+
ring;
1071 if(
abs(station)==1) ybin=
ring;
1072 if (station>0) ybin=ybin+9;
1073 else ybin = 10 -ybin;
1076 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%d_LocalTheta", station,ring );
1082 if (nameHistoLocalY.Contains(
"MB"))
1087 sscanf(nameHistoLocalY,
"ResidualLocalY_W%dMB%1dS%d",&wheel,&station,§or);
1090 Int_t nstation=station - 1;
1091 Int_t nwheel=wheel+2;
1096 Int_t xbin=sector+14*nstation+14*4*nwheel;
1098 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%dS%d", wheel, station, sector );
1106 Int_t ybin=2+nwheel*8+nstation*2;
1108 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%d_LocalY", wheel,station );
1115 if (nameHistoLocalY.Contains(
"ME"))
1120 sscanf(nameHistoLocalY,
"ResidualLocalY_ME%dR%1dC%d",&station,&ring,&chamber);
1125 Int_t xbin=
abs(station)*2+
ring;
1126 if(
abs(station)==1) xbin=
ring;
1127 if (station>0) xbin=xbin+9;
1128 else xbin = 10 -xbin;
1131 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1132 else if(xbin<6) xbin=108+chamber;
1133 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1134 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1135 else xbin=522+chamber;
1137 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%dC%d", station, ring, chamber );
1145 Int_t ybin=
abs(station)*2+
ring;
1146 if(
abs(station)==1) ybin=
ring;
1147 if (station>0) ybin=ybin+9;
1148 else ybin = 10 -ybin;
1151 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%d_LocalY", station,ring );
1157 if (nameHistoGlobalRPhi.Contains(
"MB"))
1161 sscanf(nameHistoGlobalRPhi,
"ResidualGlobalRPhi_W%dMB%1dS%d",&wheel,&station,§or);
1163 Int_t nstation=station - 1;
1164 Int_t nwheel=wheel+2;
1169 Int_t xbin=sector+14*nstation+14*4*nwheel;
1171 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%dS%d", wheel, station, sector );
1179 Int_t ybin=1+nwheel*8+nstation*2;
1181 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%d_GlobalRPhi", wheel,station );
1187 if (nameHistoGlobalRPhi.Contains(
"ME"))
1192 sscanf(nameHistoGlobalRPhi,
"ResidualGlobalRPhi_ME%dR%1dC%d",&station,&ring,&chamber);
1197 Int_t xbin=
abs(station)*2+
ring;
1198 if(
abs(station)==1) xbin=
ring;
1199 if (station>0) xbin=xbin+9;
1200 else xbin = 10 -xbin;
1203 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1204 else if(xbin<6) xbin=108+chamber;
1205 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1206 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1207 else xbin=522+chamber;
1209 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%dC%d", station, ring, chamber );
1217 Int_t ybin=
abs(station)*2+
ring;
1218 if(
abs(station)==1) ybin=
ring;
1219 if (station>0) ybin=ybin+9;
1220 else ybin = 10 -ybin;
1223 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%d_GlobalRPhi", station,ring );
1229 if (nameHistoGlobalTheta.Contains(
"MB"))
1234 sscanf(nameHistoGlobalTheta,
"ResidualGlobalTheta_W%dMB%1dS%d",&wheel,&station,§or);
1237 Int_t nstation=station - 1;
1238 Int_t nwheel=wheel+2;
1243 Int_t xbin=sector+14*nstation+14*4*nwheel;
1245 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%dS%d", wheel, station, sector );
1253 Int_t ybin=2+nwheel*8+nstation*2;
1255 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%d_GlobalTheta", wheel,station );
1262 if (nameHistoGlobalPhi.Contains(
"MB"))
1267 sscanf(nameHistoGlobalPhi,
"ResidualGlobalPhi_W%dMB%1dS%d",&wheel,&station,§or);
1269 Int_t nstation=station - 1;
1270 Int_t nwheel=wheel+2;
1275 Int_t xbin=sector+14*nstation+14*4*nwheel;
1277 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%dS%d", wheel, station, sector );
1285 Int_t ybin=1+nwheel*8+nstation*2;
1287 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%d_GlobalPhi", wheel,station );
1293 if (nameHistoGlobalPhi.Contains(
"ME"))
1298 sscanf(nameHistoGlobalPhi,
"ResidualGlobalPhi_ME%dR%1dC%d",&station,&ring,&chamber);
1303 Int_t xbin=
abs(station)*2+
ring;
1304 if(
abs(station)==1) xbin=
ring;
1305 if (station>0) xbin=xbin+9;
1306 else xbin = 10 -xbin;
1309 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1310 else if(xbin<6) xbin=108+chamber;
1311 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1312 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1313 else xbin=522+chamber;
1315 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%dC%d", station, ring, chamber );
1323 Int_t ybin=
abs(station)*2+
ring;
1324 if(
abs(station)==1) ybin=
ring;
1325 if (station>0) ybin=ybin+9;
1326 else ybin = 10 -ybin;
1329 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%d_GlobalPhi", station,ring );
1335 if (nameHistoGlobalTheta.Contains(
"ME"))
1340 sscanf(nameHistoGlobalTheta,
"ResidualGlobalTheta_ME%dR%1dC%d",&station,&ring,&chamber);
1345 Int_t xbin=
abs(station)*2+
ring;
1346 if(
abs(station)==1) xbin=
ring;
1347 if (station>0) xbin=xbin+9;
1348 else xbin = 10 -xbin;
1351 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1352 else if(xbin<6) xbin=108+chamber;
1353 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1354 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1355 else xbin=522+chamber;
1357 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%dC%d", station, ring, chamber );
1365 Int_t ybin=
abs(station)*2+
ring;
1366 if(
abs(station)==1) ybin=
ring;
1367 if (station>0) ybin=ybin+9;
1368 else ybin = 10 -ybin;
1371 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%d_GlobalTheta", station,ring );
1377 if (nameHistoGlobalRZ.Contains(
"MB"))
1382 sscanf(nameHistoGlobalRZ,
"ResidualGlobalZ_W%dMB%1dS%d",&wheel,&station,§or);
1385 Int_t nstation=station - 1;
1386 Int_t nwheel=wheel+2;
1391 Int_t xbin=sector+14*nstation+14*4*nwheel;
1393 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%dS%d", wheel, station, sector );
1402 Int_t ybin=2+nwheel*8+nstation*2;
1404 snprintf(binLabel,
sizeof(binLabel),
"MB%d/%d_GlobalZ", wheel,station );
1411 if (nameHistoGlobalRZ.Contains(
"ME"))
1416 sscanf(nameHistoGlobalRZ,
"ResidualGlobalR_ME%dR%1dC%d",&station,&ring,&chamber);
1421 Int_t xbin=
abs(station)*2+
ring;
1422 if(
abs(station)==1) xbin=
ring;
1423 if (station>0) xbin=xbin+9;
1424 else xbin = 10 -xbin;
1427 if(xbin<5) xbin= 18*(((Int_t)(xbin/3))*2+(Int_t)(xbin/2))+chamber;
1428 else if(xbin<6) xbin=108+chamber;
1429 else if(xbin<14) xbin=126 +(xbin-6)*36+chamber;
1430 else if(xbin<18) xbin=414+18*(((Int_t)(xbin-13)/3)*2+((Int_t)(xbin-13)/2))+chamber;
1431 else xbin=522+chamber;
1433 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%dC%d", station, ring, chamber );
1441 Int_t ybin=
abs(station)*2+
ring;
1442 if(
abs(station)==1) ybin=
ring;
1443 if (station>0) ybin=ybin+9;
1444 else ybin = 10 -ybin;
1447 snprintf(binLabel,
sizeof(binLabel),
"ME%d/%d_GlobalR", station,ring );
1463 std::vector< double > simPar[4] ;
1475 event.getByLabel(
"g4SimHits",simTracks);
1478 edm::SimTrackContainer::const_iterator simTrack;
1480 for (simTrack = simTracks->begin(); simTrack != simTracks->end(); ++simTrack){
1481 if (
abs((*simTrack).type()) == 13) {
1483 simPt=(*simTrack).momentum().Pt();
1484 simEta=(*simTrack).momentum().eta();
1485 simPhi=(*simTrack).momentum().phi();
1494 simPar[0].push_back(simPt);
1495 simPar[1].push_back(simEta);
1496 simPar[2].push_back(simPhi);
1497 simPar[3].push_back((*simTrack).charge());
1500 if(i==1) p1=
GlobalVector((*simTrack).momentum().x(),(*simTrack).momentum().y(),(*simTrack).momentum().z());
1501 if(i==2) p2=
GlobalVector((*simTrack).momentum().x(),(*simTrack).momentum().y(),(*simTrack).momentum().z());
1509 TLorentzVector mu1(p1.
x(), p1.
y(), p1.
z(), p1.
mag());
1510 TLorentzVector mu2(p2.
x(), p2.
y(), p2.
z(), p2.
mag());
1511 TLorentzVector pair = mu1 + mu2;
1512 double Minv = pair.M();
1536 reco::TrackCollection::const_iterator staTrack;
1538 for (staTrack = staTracks->begin(); staTrack != staTracks->end(); ++staTrack){
1541 SArecPt = (*staTrack).pt();
1542 SAeta = (*staTrack).eta();
1543 SAphi = (*staTrack).phi();
1544 ich= (*staTrack).charge();
1548 hSAChi2->Fill((*staTrack).chi2());
1549 hSANhits->Fill((*staTrack).numberOfValidHits());
1554 if(i==1) p1=
GlobalVector((*staTrack).momentum().x(),(*staTrack).momentum().y(),(*staTrack).momentum().z());
1555 if(i==2) p2=
GlobalVector((*staTrack).momentum().x(),(*staTrack).momentum().y(),(*staTrack).momentum().z());
1560 double candDeltaR= -999.0,
dR;
1562 if(simPar[0].
size()>0){
1563 for(
unsigned int iSim = 0; iSim <simPar[0].size(); iSim++) {
1564 dR=
deltaR(SAeta,SAphi,simPar[1][iSim],simPar[2][iSim]);
1565 if(candDeltaR<0 ||
dR<candDeltaR) {
1571 double simPt=simPar[0][iCand];
1572 hSAPTres->Fill( (SArecPt-simPt)/simPt);
1580 double ptInvRes= ( ich/SArecPt - simPar[3][iCand]/simPt)/ (simPar[3][iCand]/simPt);
1597 TLorentzVector mu1(p1.
x(), p1.
y(), p1.
z(), p1.
mag());
1598 TLorentzVector mu2(p2.
x(), p2.
y(), p2.
z(), p2.
mag());
1599 TLorentzVector pair = mu1 + mu2;
1600 double Minv = pair.M();
1625 reco::TrackCollection::const_iterator glbTrack;
1627 for (glbTrack = glbTracks->begin(); glbTrack != glbTracks->end(); ++glbTrack){
1630 GBrecPt = (*glbTrack).pt();
1631 GBeta = (*glbTrack).eta();
1632 GBphi = (*glbTrack).phi();
1633 ich= (*glbTrack).charge();
1637 hGBChi2->Fill((*glbTrack).chi2());
1638 hGBNhits->Fill((*glbTrack).numberOfValidHits());
1643 if(i==1) p1=
GlobalVector((*glbTrack).momentum().x(),(*glbTrack).momentum().y(),(*glbTrack).momentum().z());
1644 if(i==2) p2=
GlobalVector((*glbTrack).momentum().x(),(*glbTrack).momentum().y(),(*glbTrack).momentum().z());
1647 double candDeltaR= -999.0,
dR;
1649 if(simPar[0].
size()>0){
1650 for(
unsigned int iSim = 0; iSim <simPar[0].size(); iSim++) {
1651 dR=
deltaR(GBeta,GBphi,simPar[1][iSim],simPar[2][iSim]);
1652 if(candDeltaR<0 ||
dR<candDeltaR) {
1658 double simPt=simPar[0][iCand];
1660 hGBPTres->Fill( (GBrecPt-simPt)/simPt);
1669 double ptInvRes= ( ich/GBrecPt - simPar[3][iCand]/simPt)/ (simPar[3][iCand]/simPt);
1688 TLorentzVector mu1(p1.
x(), p1.
y(), p1.
z(), p1.
mag());
1689 TLorentzVector mu2(p2.
x(), p2.
y(), p2.
z(), p2.
mag());
1690 TLorentzVector pair = mu1 + mu2;
1691 double Minv = pair.M();
1745 reco::TrackCollection::const_iterator staTrack;
1746 for (staTrack = staTracks->begin(); staTrack != staTracks->end(); ++staTrack){
1748 int countPoints = 0;
1755 RecHitVector my4DTrack = this->
doMatching(*staTrack, all4DSegmentsDT, all4DSegmentsCSC, &indexCollectionDT, &indexCollectionCSC, theTrackingGeometry);
1770 for(RecHitVector::iterator rechit = my4DTrack.begin(); rechit != my4DTrack.end(); ++rechit) {
1772 const GeomDet* geomDet = theTrackingGeometry->idToDet((*rechit)->geographicalId());
1777 if(pDest != 0 || cDest != 0) {
1788 const long rawId= (*rechit)->geographicalId().rawId();
1790 bool newDetector =
true;
1795 if(*myIds == rawId) {
1796 newDetector =
false;
1803 int wheel=0,
station=0,sector=0;
1806 double residualGlobalRPhi=0,residualGlobalPhi=0,residualGlobalR=0,residualGlobalTheta=0,residualGlobalZ=0;
1807 double residualLocalX=0,residualLocalPhi=0,residualLocalY=0,residualLocalTheta=0;
1813 wheel=myChamber.
wheel();
1815 sector=myChamber.
sector();
1821 residualLocalX = (*rechit)->localPosition().x() -destiny.
localPosition().
x();
1827 residualLocalPhi = atan2(((
RecSegment *)(*rechit))->localDirection().
z(),
1840 residualLocalY = (*rechit)->localPosition().y() - destiny.
localPosition().
y();
1846 residualLocalTheta = atan2(((
RecSegment *)(*rechit))->localDirection().
z(),
1856 int index = wheel+2;
1883 endcap= myChamber.
endcap();
1894 residualLocalX = (*rechit)->localPosition().x() -destiny.
localPosition().
x();
1900 residualLocalY = (*rechit)->localPosition().y() - destiny.
localPosition().
y();
1906 residualLocalPhi = atan2(((
RecSegment *)(*rechit))->localDirection().
y(),
1913 residualLocalTheta = atan2(((
RecSegment *)(*rechit))->localDirection().
y(),
1927 if(ring==4) index=6;}
1929 if(ring==4) index=9;}
1940 else{residualGlobalRPhi=0,residualGlobalPhi=0,residualGlobalR=0,residualGlobalTheta=0,residualGlobalZ=0;
1941 residualLocalX=0,residualLocalPhi=0,residualLocalY=0,residualLocalTheta=0,residualLocalY=0;
1950 double rangeX = 3.0, rangeY =5.;
1970 char nameOfHistoLocalX[50];
1971 char nameOfHistoLocalTheta[50];
1972 char nameOfHistoLocalY[50];
1973 char nameOfHistoLocalPhi[50];
1974 char nameOfHistoGlobalRPhi[50];
1975 char nameOfHistoGlobalTheta[50];
1976 char nameOfHistoGlobalR[50];
1977 char nameOfHistoGlobalPhi[50];
1978 char nameOfHistoGlobalZ[50];
1981 snprintf(nameOfHistoLocalX,
sizeof(nameOfHistoLocalX),
"ResidualLocalX_W%dMB%1dS%1d",wheel,
station,sector );
1982 snprintf(nameOfHistoLocalPhi,
sizeof(nameOfHistoLocalPhi),
"ResidualLocalPhi_W%dMB%1dS%1d",wheel,
station,sector);
1983 snprintf(nameOfHistoGlobalRPhi,
sizeof(nameOfHistoGlobalRPhi),
"ResidualGlobalRPhi_W%dMB%1dS%1d",wheel,
station,sector );
1984 snprintf(nameOfHistoGlobalPhi,
sizeof(nameOfHistoGlobalPhi),
"ResidualGlobalPhi_W%dMB%1dS%1d",wheel,
station,sector);
1985 snprintf(nameOfHistoLocalTheta,
sizeof(nameOfHistoLocalTheta),
"ResidualLocalTheta_W%dMB%1dS%1d",wheel,
station,sector);
1986 snprintf(nameOfHistoLocalY,
sizeof(nameOfHistoLocalY),
"ResidualLocalY_W%dMB%1dS%1d",wheel,
station,sector);
1987 TH1F *histoLocalY =
fs->
make<TH1F>(nameOfHistoLocalY, nameOfHistoLocalY,
nbins, -rangeY, rangeY);
1989 snprintf(nameOfHistoGlobalTheta,
sizeof(nameOfHistoGlobalTheta),
"ResidualGlobalTheta_W%dMB%1dS%1d",wheel,
station,sector);
1990 snprintf(nameOfHistoGlobalZ,
sizeof(nameOfHistoGlobalZ),
"ResidualGlobalZ_W%dMB%1dS%1d",wheel,
station,sector);
1991 TH1F *histoGlobalZ =
fs->
make<TH1F>(nameOfHistoGlobalZ, nameOfHistoGlobalZ,
nbins, -rangeY, rangeY);
1996 snprintf(nameOfHistoLocalX,
sizeof(nameOfHistoLocalX),
"ResidualLocalX_ME%dR%1dC%1d",
station,
ring,chamber );
1997 snprintf(nameOfHistoLocalPhi,
sizeof(nameOfHistoLocalPhi),
"ResidualLocalPhi_ME%dR%1dC%1d",
station,
ring,chamber);
1998 snprintf(nameOfHistoLocalTheta,
sizeof(nameOfHistoLocalTheta),
"ResidualLocalTheta_ME%dR%1dC%1d",
station,
ring,chamber);
1999 snprintf(nameOfHistoLocalY,
sizeof(nameOfHistoLocalY),
"ResidualLocalY_ME%dR%1dC%1d",
station,
ring,chamber);
2000 TH1F *histoLocalY =
fs->
make<TH1F>(nameOfHistoLocalY, nameOfHistoLocalY,
nbins, -rangeY, rangeY);
2002 snprintf(nameOfHistoGlobalRPhi,
sizeof(nameOfHistoGlobalRPhi),
"ResidualGlobalRPhi_ME%dR%1dC%1d",
station,
ring,chamber );
2003 snprintf(nameOfHistoGlobalPhi,
sizeof(nameOfHistoGlobalPhi),
"ResidualGlobalPhi_ME%dR%1dC%1d",
station,
ring,chamber);
2004 snprintf(nameOfHistoGlobalTheta,
sizeof(nameOfHistoGlobalTheta),
"ResidualGlobalTheta_ME%dR%1dC%1d",
station,
ring,chamber);
2005 snprintf(nameOfHistoGlobalR,
sizeof(nameOfHistoGlobalR),
"ResidualGlobalR_ME%dR%1dC%1d",
station,
ring,chamber);
2006 TH1F *histoGlobalR =
fs->
make<TH1F>(nameOfHistoGlobalR, nameOfHistoGlobalR,
nbins, -rangeY, rangeY);
2011 TH1F *histoLocalX =
fs->
make<TH1F>(nameOfHistoLocalX, nameOfHistoLocalX,
nbins, -rangeX, rangeX);
2012 TH1F *histoGlobalRPhi =
fs->
make<TH1F>(nameOfHistoGlobalRPhi, nameOfHistoGlobalRPhi,
nbins, -rangeX, rangeX);
2018 histoLocalX->Fill(residualLocalX);
2019 histoLocalPhi->Fill(residualLocalPhi);
2020 histoLocalTheta->Fill(residualLocalTheta);
2021 histoGlobalRPhi->Fill(residualGlobalRPhi);
2022 histoGlobalPhi->Fill(residualGlobalPhi);
2023 histoGlobalTheta->Fill(residualGlobalTheta);
2042 else if(det==2) {
unitsLocalY.at(position)->Fill(residualLocalY);
unitsGlobalRZ.at(position)->Fill(residualGlobalR);}
2047 innerTSOS = destiny;
2051 edm::LogError(
"MuonAlignmentAnalyzer") <<
" Error!! Exception in propagator catched" << std::endl;
2076 std::vector<int> positionDT;
2077 std::vector<int> positionCSC;
2093 int NumberOfDTSegment = 0;
2095 for(segmentDT = all4DSegmentsDT->begin(); segmentDT != all4DSegmentsDT->end(); ++segmentDT) {
2098 bool isNewChamber =
true;
2101 for(std::vector<int>::iterator positionIt = positionDT.begin(); positionIt != positionDT.end(); positionIt++) {
2104 if(NumberOfDTSegment == *positionIt) isNewChamber =
false;
2108 for(std::vector<std::vector<int> >::iterator collect = indexCollectionDT->begin(); collect != indexCollectionDT->end(); ++collect) {
2111 for(std::vector<int>::iterator positionIt = (*collect).begin(); positionIt != (*collect).end(); positionIt++) {
2114 if(NumberOfDTSegment == *positionIt) isNewChamber =
false;
2121 DTChamberId myChamber((*segmentDT).geographicalId().rawId());
2123 if(myLayer.wheel() == myChamber.wheel() && myLayer.station() == myChamber.station() && myLayer.sector() == myChamber.sector()) {
2126 positionDT.push_back(NumberOfDTSegment);
2130 NumberOfDTSegment++;
2138 int NumberOfCSCSegment = 0;
2140 for(segmentCSC = all4DSegmentsCSC->begin(); segmentCSC != all4DSegmentsCSC->end(); segmentCSC++) {
2143 bool isNewChamber =
true;
2146 for(std::vector<int>::iterator positionIt = positionCSC.begin(); positionIt != positionCSC.end(); positionIt++) {
2149 if(NumberOfCSCSegment == *positionIt) isNewChamber =
false;
2152 for(std::vector<std::vector<int> >::iterator collect = indexCollectionCSC->begin(); collect != indexCollectionCSC->end(); ++collect) {
2155 for(std::vector<int>::iterator positionIt = (*collect).begin(); positionIt != (*collect).end(); positionIt++) {
2158 if(NumberOfCSCSegment == *positionIt) isNewChamber =
false;
2164 CSCDetId myChamber((*segmentCSC).geographicalId().rawId());
2166 if(myLayer.chamberId() == myChamber.chamberId()) {
2168 positionCSC.push_back(NumberOfCSCSegment);
2172 NumberOfCSCSegment++;
2177 indexCollectionDT->push_back(positionDT);
2178 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
std::vector< TH1F * > hResidualLocalYDT_W
std::vector< TH1F * > hResidualGlobalZDT_W
edm::Service< TFileService > fs
TH2F * hprofLocalPositionDT
T * make(const Args &...args) const
make new ROOT object
unsigned int min1DTrackRecHitSize
std::vector< TH1F * > unitsGlobalRPhi
std::vector< TH1F * > hResidualLocalXDT_W
TH2F * hprofLocalPositionRmsCSC
TH2F * hprofLocalAngleCSC
double resLocalYRangeStation2
std::vector< TH1F * > unitsLocalX
const Plane & surface() const
The nominal surface of the GeomDet.
std::vector< TH1F * > hResidualLocalThetaCSC_ME
edm::InputTag theRecHits4DTagDT
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
TH1F * hResidualGlobalThetaCSC
TH1F * hResidualGlobalZDT
std::vector< TH1F * > hResidualGlobalThetaDT_W
TH2F * hprofLocalPositionCSC
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
tuple SteppingHelixPropagator
TH1F * hResidualLocalPhiDT
TH1F * hprofGlobalThetaCSC
double resLocalXRangeStation4
FreeTrajectoryState const * freeState(bool withErrors=true) const
std::vector< TH1F * > unitsGlobalRZ
Abs< T >::type abs(const T &t)
std::vector< TH1F * > hResidualGlobalRCSC_ME
TH1F * hResidualGlobalRPhiDT
unsigned short numberOfValidHits() const
number of valid hits found
T const * get() const
Returns C++ pointer to the item.
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
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
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
TH2F * hprofGlobalAngleRmsCSC
T perp() const
Magnitude of transverse component.
TH1F * hResidualLocalPhiCSC
static std::atomic< unsigned int > counter
static int position[264][3]
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
TH1F * hResidualGlobalRPhiCSC
std::vector< TH1F * > hResidualGlobalPhiDT_W
TH1F * hResidualGlobalPhiCSC
unsigned int min4DTrackSegmentSize
DetId geographicalId() const
int station() const
Return the station number.
virtual SubDetector subDetector() const
Which subdetector.
int wheel() const
Return the wheel number.
TH2F * hprofGlobalPositionCSC
std::vector< long > detectorCollection
std::vector< TH1F * > unitsGlobalTheta
std::vector< TH1F * > hResidualLocalThetaDT_MB
tuple size
Write out results.
TH1F * hprofGlobalThetaDT
Global3DVector GlobalVector
GlobalVector globalDirection() const
TH2F * hprofGlobalPositionDT
double resLocalXRangeStation1