49 percentual =
parameters.getUntrackedParameter<
int>(
"BadSLpercentual", 10);
79 vector<const DTChamber*>
chambers = muonGeom->chambers();
86 edm::LogVerbatim(
"resolution") <<
"[DTResolutionTest]: End of LS transition, performing the DQM client operation";
95 for (map<int, MonitorElement*>::const_iterator
histo = wheelMeanHistos.begin();
histo != wheelMeanHistos.end();
97 (*histo).second->Reset();
99 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest")) {
100 for (map<int, MonitorElement*>::const_iterator
histo = wheelSigmaHistos.begin();
histo != wheelSigmaHistos.end();
102 (*histo).second->Reset();
105 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest")) {
106 for (map<int, MonitorElement*>::const_iterator
histo = wheelSlopeHistos.begin();
histo != wheelSlopeHistos.end();
108 (*histo).second->Reset();
112 cmsMeanHistos.clear();
113 for (
int i = -2;
i < 3;
i++) {
114 for (
int j = 1;
j < 15;
j++) {
115 MeanFilled[make_pair(
i,
j)] =
false;
118 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest")) {
119 cmsSigmaHistos.clear();
120 for (
int i = -2;
i < 3;
i++) {
121 for (
int j = 1;
j < 15;
j++) {
122 SigmaFilled[make_pair(
i,
j)] =
false;
126 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest")) {
127 cmsSlopeHistos.clear();
128 for (
int i = -2;
i < 3;
i++) {
129 for (
int j = 1;
j < 15;
j++) {
130 SlopeFilled[make_pair(
i,
j)] =
false;
136 for (
int wh = -2; wh <= 3; wh++) {
140 wheelMeanHistos[wh]->setBinContent(
xBin,
yBin, 0);
141 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest"))
142 wheelSigmaHistos[wh]->setBinContent(
xBin,
yBin, 0);
143 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest"))
144 wheelSlopeHistos[wh]->setBinContent(
xBin,
yBin, 0);
150 wheelMeanHistos[wh]->setBinContent(
xBin,
yBin, 0);
151 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest"))
152 wheelSigmaHistos[wh]->setBinContent(
xBin,
yBin, 0);
153 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest"))
154 wheelSlopeHistos[wh]->setBinContent(
xBin,
yBin, 0);
160 edm::LogVerbatim(
"resolution") <<
"[DTResolutionTest]: " << nLumiSegs <<
" updates";
162 vector<const DTChamber*>::const_iterator ch_it = muonGeom->chambers().begin();
163 vector<const DTChamber*>::const_iterator ch_end = muonGeom->chambers().end();
165 edm::LogVerbatim(
"resolution") <<
"[DTResolutionTest]: Residual Distribution tests results";
167 for (; ch_it != ch_end; ++ch_it) {
181 vector<const DTSuperLayer*>::const_iterator sl_it = (*ch_it)->superLayers().begin();
182 vector<const DTSuperLayer*>::const_iterator sl_end = (*ch_it)->superLayers().end();
184 for (; sl_it != sl_end; ++sl_it) {
187 edm::LogVerbatim(
"resolution") <<
"[DTResolutionTest]: Superlayer: " << slID;
195 stringstream superLayer;
199 string supLayer =
"W" +
wheel.str() +
"_St" +
station.str() +
"_Sec" + sector.str() +
"_SL" + superLayer.str();
204 string GaussianCriterionName =
205 parameters.getUntrackedParameter<
string>(
"resDistributionTestName",
"ResidualsDistributionGaussianTest");
207 if (GaussianReport) {
215 float mean = (*res_histo).getMean(1);
216 float sigma = (*res_histo).getRMS(1);
217 MeanHistos.find(make_pair(slID.
wheel(), slID.
sector()))->second->setBinContent(BinNumber,
mean);
218 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest"))
219 SigmaHistos.find(make_pair(slID.
wheel(), slID.
sector()))->second->setBinContent(BinNumber, sigma);
222 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest")) {
225 TH2F* res_histo_2D_root = res_histo_2D->
getTH2F();
229 TProfile* prof = res_histo_2D_root->ProfileX();
230 prof->GetXaxis()->SetRangeUser(0, 2);
233 TF1 fitting(
"mypol1",
"pol1");
235 prof->Fit(&fitting,
"Q0");
237 edm::LogError(
"resolution") <<
"[DTResolutionTest]: Exception when fitting..."
238 <<
"SuperLayer : " << slID <<
"\n"
240 <<
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") <<
"\n"
241 <<
"Filling slope histogram with standard value -99. for bin " << BinNumber;
242 SlopeHistos.find(make_pair(slID.
wheel(), slID.
sector()))->second->setBinContent(BinNumber, -99.);
245 double slope = fitting.GetParameter(1);
246 SlopeHistos.find(make_pair(slID.
wheel(), slID.
sector()))->second->setBinContent(BinNumber,
slope);
253 string MeanCriterionName =
parameters.getUntrackedParameter<
string>(
"meanTestName",
"ResidualsMeanInRange");
254 for (
map<pair<int, int>,
MonitorElement*>::const_iterator hMean = MeanHistos.begin(); hMean != MeanHistos.end();
256 const QReport* theMeanQReport = (*hMean).second->getQReport(MeanCriterionName);
258 wheel << (*hMean).first.first;
260 sector << (*hMean).first.second;
262 if (theMeanQReport) {
263 vector<dqm::me_util::Channel> badChannels = theMeanQReport->
getBadChannels();
264 for (vector<dqm::me_util::Channel>::iterator channel = badChannels.begin(); channel != badChannels.end();
267 <<
" st: " << stationFromBin((*channel).getBin()) <<
" sect: " << sector.str()
268 <<
" sl: " << slFromBin((*channel).getBin())
269 <<
" mean (cm): " << (*channel).getContents();
271 if (
parameters.getUntrackedParameter<
bool>(
"meanWrongHisto")) {
272 MeanHistosSetRange.find(
HistoName)->second->Fill((*channel).getBin());
273 MeanHistosSetRange2D.find(
HistoName)->second->Fill((*channel).getBin(), (*channel).getContents());
276 if (
abs((*channel).getContents()) <
parameters.getUntrackedParameter<
double>(
"meanMaxLimit"))
277 wheelMeanHistos[(*hMean).first.first]->Fill(((*hMean).first.second) - 1, (*channel).getBin() - 1, 1);
279 wheelMeanHistos[(*hMean).first.first]->Fill(((*hMean).first.second) - 1, (*channel).getBin() - 1, 2);
282 if (
abs((*channel).getContents()) >
parameters.getUntrackedParameter<
double>(
"meanMaxLimit")) {
283 cmsMeanHistos[make_pair((*hMean).first.first, (*hMean).first.second)]++;
284 if (((*hMean).first.second < 13 &&
285 double(cmsMeanHistos[make_pair((*hMean).first.first, (*hMean).first.second)]) / 11 >
286 double(percentual) / 100 &&
287 MeanFilled[make_pair((*hMean).first.first, (*hMean).first.second)] ==
false) ||
288 ((*hMean).first.first >= 13 &&
289 double(cmsMeanHistos[make_pair((*hMean).first.first, (*hMean).first.second)]) / 2 >
290 double(percentual) / 100 &&
291 MeanFilled[make_pair((*hMean).first.first, (*hMean).first.second)] ==
false)) {
292 MeanFilled[make_pair((*hMean).first.first, (*hMean).first.second)] =
true;
293 wheelMeanHistos[3]->Fill(((*hMean).first.second) - 1, (*hMean).first.first);
301 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest")) {
302 string SigmaCriterionName =
parameters.getUntrackedParameter<
string>(
"sigmaTestName",
"ResidualsSigmaInRange");
303 for (
map<pair<int, int>,
MonitorElement*>::const_iterator hSigma = SigmaHistos.begin(); hSigma != SigmaHistos.end();
305 const QReport* theSigmaQReport = (*hSigma).second->getQReport(SigmaCriterionName);
307 wheel << (*hSigma).first.first;
309 sector << (*hSigma).first.second;
310 if (theSigmaQReport) {
311 vector<dqm::me_util::Channel> badChannels = theSigmaQReport->
getBadChannels();
312 for (vector<dqm::me_util::Channel>::iterator channel = badChannels.begin(); channel != badChannels.end();
315 <<
" st: " << stationFromBin((*channel).getBin()) <<
" sect: " << sector.str()
316 <<
" sl: " << slFromBin((*channel).getBin())
317 <<
" sigma (cm): " << (*channel).getContents();
319 SigmaHistosSetRange.find(
HistoName)->second->Fill((*channel).getBin());
320 SigmaHistosSetRange2D.find(
HistoName)->second->Fill((*channel).getBin(), (*channel).getContents());
322 wheelSigmaHistos[(*hSigma).first.first]->Fill(((*hSigma).first.second) - 1, (*channel).getBin() - 1);
325 cmsSigmaHistos[make_pair((*hSigma).first.first, (*hSigma).first.second)]++;
326 if (((*hSigma).first.second < 13 &&
327 double(cmsSigmaHistos[make_pair((*hSigma).first.first, (*hSigma).first.second)]) / 11 >
328 double(percentual) / 100 &&
329 SigmaFilled[make_pair((*hSigma).first.first, (*hSigma).first.second)] ==
false) ||
330 ((*hSigma).first.first >= 13 &&
331 double(cmsSigmaHistos[make_pair((*hSigma).first.first, (*hSigma).first.second)]) / 2 >
332 double(percentual) / 100 &&
333 SigmaFilled[make_pair((*hSigma).first.first, (*hSigma).first.second)] ==
false)) {
334 SigmaFilled[make_pair((*hSigma).first.first, (*hSigma).first.second)] =
true;
335 wheelSigmaHistos[3]->Fill((*hSigma).first.second - 1, (*hSigma).first.first);
343 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest")) {
344 string SlopeCriterionName =
parameters.getUntrackedParameter<
string>(
"slopeTestName",
"ResidualsSlopeInRange");
345 for (
map<pair<int, int>,
MonitorElement*>::const_iterator hSlope = SlopeHistos.begin(); hSlope != SlopeHistos.end();
347 const QReport* theSlopeQReport = (*hSlope).second->getQReport(SlopeCriterionName);
349 wheel << (*hSlope).first.first;
351 sector << (*hSlope).first.second;
352 if (theSlopeQReport) {
353 vector<dqm::me_util::Channel> badChannels = theSlopeQReport->
getBadChannels();
354 for (vector<dqm::me_util::Channel>::iterator channel = badChannels.begin(); channel != badChannels.end();
357 <<
" st: " << stationFromBin((*channel).getBin()) <<
" sect: " << sector.str()
358 <<
" sl: " << slFromBin((*channel).getBin())
359 <<
" slope: " << (*channel).getContents();
361 SlopeHistosSetRange.find(
HistoName)->second->Fill((*channel).getBin());
362 SlopeHistosSetRange2D.find(
HistoName)->second->Fill((*channel).getBin(), (*channel).getContents());
364 wheelSlopeHistos[(*hSlope).first.first]->Fill(((*hSlope).first.second) - 1, (*channel).getBin() - 1);
367 cmsSlopeHistos[make_pair((*hSlope).first.first, (*hSlope).first.second)]++;
368 if (((*hSlope).first.second < 13 &&
369 double(cmsSlopeHistos[make_pair((*hSlope).first.first, (*hSlope).first.second)]) / 11 >
370 double(percentual) / 100 &&
371 SlopeFilled[make_pair((*hSlope).first.first, (*hSlope).first.second)] ==
false) ||
372 ((*hSlope).first.first >= 13 &&
373 double(cmsSlopeHistos[make_pair((*hSlope).first.first, (*hSlope).first.second)]) / 2 >
374 double(percentual) / 100 &&
375 SlopeFilled[make_pair((*hSlope).first.first, (*hSlope).first.second)] ==
false)) {
376 SlopeFilled[make_pair((*hSlope).first.first, (*hSlope).first.second)] =
true;
377 wheelSlopeHistos[3]->Fill((*hSlope).first.second - 1, (*hSlope).first.first);
403 stringstream superLayer;
409 if (
parameters.getUntrackedParameter<
bool>(
"calibModule",
false)) {
414 "/Sector" + sector.str() +
"/";
420 "_SL" + superLayer.str();
432 stringstream superLayer;
438 if (
parameters.getUntrackedParameter<
bool>(
"calibModule",
false)) {
443 "/Sector" + sector.str() +
"/";
449 "_SL" + superLayer.str();
460 string MeanHistoName =
"MeanTest_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
wheel.str() +
461 "_Sec" + sector.str();
462 string SigmaHistoName =
"SigmaTest_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
463 wheel.str() +
"_Sec" + sector.str();
464 string SlopeHistoName =
"SlopeTest_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
465 wheel.str() +
"_Sec" + sector.str();
472 ibooker.
book1D(MeanHistoName.c_str(), MeanHistoName.c_str(), 11, 0, 11);
474 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(2,
"MB1_SL2", 1);
475 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(3,
"MB1_SL3", 1);
476 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(4,
"MB2_SL1", 1);
477 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(5,
"MB2_SL2", 1);
478 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(6,
"MB2_SL3", 1);
479 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(7,
"MB3_SL1", 1);
480 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(8,
"MB3_SL2", 1);
481 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(9,
"MB3_SL3", 1);
482 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(10,
"MB4_SL1", 1);
483 (MeanHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(11,
"MB4_SL3", 1);
486 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest")) {
488 ibooker.
book1D(SigmaHistoName.c_str(), SigmaHistoName.c_str(), 11, 0, 11);
490 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(2,
"MB1_SL2", 1);
491 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(3,
"MB1_SL3", 1);
492 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(4,
"MB2_SL1", 1);
493 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(5,
"MB2_SL2", 1);
494 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(6,
"MB2_SL3", 1);
495 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(7,
"MB3_SL1", 1);
496 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(8,
"MB3_SL2", 1);
497 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(9,
"MB3_SL3", 1);
498 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(10,
"MB4_SL1", 1);
499 (SigmaHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(11,
"MB4_SL3", 1);
503 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest")) {
505 ibooker.
book1D(SlopeHistoName.c_str(), SlopeHistoName.c_str(), 11, 0, 11);
507 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(2,
"MB1_SL2", 1);
508 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(3,
"MB1_SL3", 1);
509 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(4,
"MB2_SL1", 1);
510 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(5,
"MB2_SL2", 1);
511 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(6,
"MB2_SL3", 1);
512 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(7,
"MB3_SL1", 1);
513 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(8,
"MB3_SL2", 1);
514 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(9,
"MB3_SL3", 1);
515 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(10,
"MB4_SL1", 1);
516 (SlopeHistos[make_pair(ch.
wheel(), ch.
sector())])->setBinLabel(11,
"MB4_SL3", 1);
521 if (
parameters.getUntrackedParameter<
bool>(
"meanWrongHisto")) {
522 string MeanHistoNameSetRange =
"MeanWrong_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
523 wheel.str() +
"_Sec" + sector.str() +
"_SetRange";
526 ibooker.
book1D(MeanHistoNameSetRange.c_str(), MeanHistoNameSetRange.c_str(), 11, 0.5, 11.5);
527 string MeanHistoNameSetRange2D =
"MeanWrong_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
528 wheel.str() +
"_Sec" + sector.str() +
"_SetRange" +
"_2D";
530 MeanHistoNameSetRange2D.c_str(), MeanHistoNameSetRange2D.c_str(), 11, 0.5, 11.5, 100, -0.05, 0.05);
533 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest")) {
534 string SigmaHistoNameSetRange =
"SigmaWrong_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
535 wheel.str() +
"_Sec" + sector.str() +
"_SetRange";
538 ibooker.
book1D(SigmaHistoNameSetRange.c_str(), SigmaHistoNameSetRange.c_str(), 11, 0.5, 11.5);
539 string SigmaHistoNameSetRange2D =
"SigmaWrong_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
540 wheel.str() +
"_Sec" + sector.str() +
"_SetRange" +
"_2D";
543 ibooker.
book2D(SigmaHistoNameSetRange2D.c_str(), SigmaHistoNameSetRange2D.c_str(), 11, 0.5, 11.5, 500, 0, 0.5);
546 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest")) {
547 string SlopeHistoNameSetRange =
"SlopeWrong_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
548 wheel.str() +
"_Sec" + sector.str() +
"_SetRange";
551 ibooker.
book1D(SlopeHistoNameSetRange.c_str(), SlopeHistoNameSetRange.c_str(), 11, 0.5, 11.5);
552 string SlopeHistoNameSetRange2D =
"SlopeWrong_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
553 wheel.str() +
"_Sec" + sector.str() +
"_SetRange" +
"_2D";
556 SlopeHistoNameSetRange2D.c_str(), SlopeHistoNameSetRange2D.c_str(), 11, 0.5, 11.5, 200, -0.1, 0.1);
563 if (wheelMeanHistos.find(3) == wheelMeanHistos.end()) {
565 "MeanSummaryRes_testFailedByAtLeastBadSL_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3");
569 wheelMeanHistos[3]->setBinLabel(1,
"Sector1", 1);
570 wheelMeanHistos[3]->setBinLabel(2,
"Sector2", 1);
571 wheelMeanHistos[3]->setBinLabel(3,
"Sector3", 1);
572 wheelMeanHistos[3]->setBinLabel(4,
"Sector4", 1);
573 wheelMeanHistos[3]->setBinLabel(5,
"Sector5", 1);
574 wheelMeanHistos[3]->setBinLabel(6,
"Sector6", 1);
575 wheelMeanHistos[3]->setBinLabel(7,
"Sector7", 1);
576 wheelMeanHistos[3]->setBinLabel(8,
"Sector8", 1);
577 wheelMeanHistos[3]->setBinLabel(9,
"Sector9", 1);
578 wheelMeanHistos[3]->setBinLabel(10,
"Sector10", 1);
579 wheelMeanHistos[3]->setBinLabel(11,
"Sector11", 1);
580 wheelMeanHistos[3]->setBinLabel(12,
"Sector12", 1);
581 wheelMeanHistos[3]->setBinLabel(13,
"Sector13", 1);
582 wheelMeanHistos[3]->setBinLabel(14,
"Sector14", 1);
583 wheelMeanHistos[3]->setBinLabel(1,
"Wheel-2", 2);
584 wheelMeanHistos[3]->setBinLabel(2,
"Wheel-1", 2);
585 wheelMeanHistos[3]->setBinLabel(3,
"Wheel0", 2);
586 wheelMeanHistos[3]->setBinLabel(4,
"Wheel+1", 2);
587 wheelMeanHistos[3]->setBinLabel(5,
"Wheel+2", 2);
590 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest")) {
591 if (wheelSigmaHistos.find(3) == wheelSigmaHistos.end()) {
593 "SigmaSummaryRes_testFailedByAtLeastBadSL_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3");
597 wheelSigmaHistos[3]->setBinLabel(1,
"Sector1", 1);
598 wheelSigmaHistos[3]->setBinLabel(2,
"Sector2", 1);
599 wheelSigmaHistos[3]->setBinLabel(3,
"Sector3", 1);
600 wheelSigmaHistos[3]->setBinLabel(4,
"Sector4", 1);
601 wheelSigmaHistos[3]->setBinLabel(5,
"Sector5", 1);
602 wheelSigmaHistos[3]->setBinLabel(6,
"Sector6", 1);
603 wheelSigmaHistos[3]->setBinLabel(7,
"Sector7", 1);
604 wheelSigmaHistos[3]->setBinLabel(8,
"Sector8", 1);
605 wheelSigmaHistos[3]->setBinLabel(9,
"Sector9", 1);
606 wheelSigmaHistos[3]->setBinLabel(10,
"Sector10", 1);
607 wheelSigmaHistos[3]->setBinLabel(11,
"Sector11", 1);
608 wheelSigmaHistos[3]->setBinLabel(12,
"Sector12", 1);
609 wheelSigmaHistos[3]->setBinLabel(13,
"Sector13", 1);
610 wheelSigmaHistos[3]->setBinLabel(14,
"Sector14", 1);
611 wheelSigmaHistos[3]->setBinLabel(1,
"Wheel-2", 2);
612 wheelSigmaHistos[3]->setBinLabel(2,
"Wheel-1", 2);
613 wheelSigmaHistos[3]->setBinLabel(3,
"Wheel0", 2);
614 wheelSigmaHistos[3]->setBinLabel(4,
"Wheel+1", 2);
615 wheelSigmaHistos[3]->setBinLabel(5,
"Wheel+2", 2);
619 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest")) {
620 if (wheelSlopeHistos.find(3) == wheelSlopeHistos.end()) {
622 "SlopeSummaryRes_testFailedByAtLeastBadSL_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3");
626 wheelSlopeHistos[3]->setBinLabel(1,
"Sector1", 1);
627 wheelSlopeHistos[3]->setBinLabel(2,
"Sector2", 1);
628 wheelSlopeHistos[3]->setBinLabel(3,
"Sector3", 1);
629 wheelSlopeHistos[3]->setBinLabel(4,
"Sector4", 1);
630 wheelSlopeHistos[3]->setBinLabel(5,
"Sector5", 1);
631 wheelSlopeHistos[3]->setBinLabel(6,
"Sector6", 1);
632 wheelSlopeHistos[3]->setBinLabel(7,
"Sector7", 1);
633 wheelSlopeHistos[3]->setBinLabel(8,
"Sector8", 1);
634 wheelSlopeHistos[3]->setBinLabel(9,
"Sector9", 1);
635 wheelSlopeHistos[3]->setBinLabel(10,
"Sector10", 1);
636 wheelSlopeHistos[3]->setBinLabel(11,
"Sector11", 1);
637 wheelSlopeHistos[3]->setBinLabel(12,
"Sector12", 1);
638 wheelSlopeHistos[3]->setBinLabel(13,
"Sector13", 1);
639 wheelSlopeHistos[3]->setBinLabel(14,
"Sector14", 1);
640 wheelSlopeHistos[3]->setBinLabel(1,
"Wheel-2", 2);
641 wheelSlopeHistos[3]->setBinLabel(2,
"Wheel-1", 2);
642 wheelSlopeHistos[3]->setBinLabel(3,
"Wheel0", 2);
643 wheelSlopeHistos[3]->setBinLabel(4,
"Wheel+1", 2);
644 wheelSlopeHistos[3]->setBinLabel(5,
"Wheel+2", 2);
651 if (wheelMeanHistos.find(wh) == wheelMeanHistos.end()) {
653 "MeanSummaryRes_testFailed_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
"_W" +
wheel.str();
657 wheelMeanHistos[wh]->setBinLabel(2,
"Sector2", 1);
658 wheelMeanHistos[wh]->setBinLabel(3,
"Sector3", 1);
659 wheelMeanHistos[wh]->setBinLabel(4,
"Sector4", 1);
660 wheelMeanHistos[wh]->setBinLabel(5,
"Sector5", 1);
661 wheelMeanHistos[wh]->setBinLabel(6,
"Sector6", 1);
662 wheelMeanHistos[wh]->setBinLabel(7,
"Sector7", 1);
663 wheelMeanHistos[wh]->setBinLabel(8,
"Sector8", 1);
664 wheelMeanHistos[wh]->setBinLabel(9,
"Sector9", 1);
665 wheelMeanHistos[wh]->setBinLabel(10,
"Sector10", 1);
666 wheelMeanHistos[wh]->setBinLabel(11,
"Sector11", 1);
667 wheelMeanHistos[wh]->setBinLabel(12,
"Sector12", 1);
668 wheelMeanHistos[wh]->setBinLabel(13,
"Sector13", 1);
669 wheelMeanHistos[wh]->setBinLabel(14,
"Sector14", 1);
670 wheelMeanHistos[wh]->setBinLabel(1,
"MB1_SL1", 2);
671 wheelMeanHistos[wh]->setBinLabel(2,
"MB1_SL2", 2);
672 wheelMeanHistos[wh]->setBinLabel(3,
"MB1_SL3", 2);
673 wheelMeanHistos[wh]->setBinLabel(4,
"MB2_SL1", 2);
674 wheelMeanHistos[wh]->setBinLabel(5,
"MB2_SL2", 2);
675 wheelMeanHistos[wh]->setBinLabel(6,
"MB2_SL3", 2);
676 wheelMeanHistos[wh]->setBinLabel(7,
"MB3_SL1", 2);
677 wheelMeanHistos[wh]->setBinLabel(8,
"MB3_SL2", 2);
678 wheelMeanHistos[wh]->setBinLabel(9,
"MB3_SL3", 2);
679 wheelMeanHistos[wh]->setBinLabel(10,
"MB4_SL1", 2);
680 wheelMeanHistos[wh]->setBinLabel(11,
"MB4_SL3", 2);
683 if (
parameters.getUntrackedParameter<
bool>(
"sigmaTest")) {
684 if (wheelSigmaHistos.find(wh) == wheelSigmaHistos.end()) {
685 string histoName =
"SigmaSummaryRes_testFailed_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
689 wheelSigmaHistos[wh]->
setBinLabel(1,
"Sector1", 1);
690 wheelSigmaHistos[wh]->setBinLabel(2,
"Sector2", 1);
691 wheelSigmaHistos[wh]->setBinLabel(3,
"Sector3", 1);
692 wheelSigmaHistos[wh]->setBinLabel(4,
"Sector4", 1);
693 wheelSigmaHistos[wh]->setBinLabel(5,
"Sector5", 1);
694 wheelSigmaHistos[wh]->setBinLabel(6,
"Sector6", 1);
695 wheelSigmaHistos[wh]->setBinLabel(7,
"Sector7", 1);
696 wheelSigmaHistos[wh]->setBinLabel(8,
"Sector8", 1);
697 wheelSigmaHistos[wh]->setBinLabel(9,
"Sector9", 1);
698 wheelSigmaHistos[wh]->setBinLabel(10,
"Sector10", 1);
699 wheelSigmaHistos[wh]->setBinLabel(11,
"Sector11", 1);
700 wheelSigmaHistos[wh]->setBinLabel(12,
"Sector12", 1);
701 wheelSigmaHistos[wh]->setBinLabel(13,
"Sector13", 1);
702 wheelSigmaHistos[wh]->setBinLabel(14,
"Sector14", 1);
703 wheelSigmaHistos[wh]->setBinLabel(1,
"MB1_SL1", 2);
704 wheelSigmaHistos[wh]->setBinLabel(2,
"MB1_SL2", 2);
705 wheelSigmaHistos[wh]->setBinLabel(3,
"MB1_SL3", 2);
706 wheelSigmaHistos[wh]->setBinLabel(4,
"MB2_SL1", 2);
707 wheelSigmaHistos[wh]->setBinLabel(5,
"MB2_SL2", 2);
708 wheelSigmaHistos[wh]->setBinLabel(6,
"MB2_SL3", 2);
709 wheelSigmaHistos[wh]->setBinLabel(7,
"MB3_SL1", 2);
710 wheelSigmaHistos[wh]->setBinLabel(8,
"MB3_SL2", 2);
711 wheelSigmaHistos[wh]->setBinLabel(9,
"MB3_SL3", 2);
712 wheelSigmaHistos[wh]->setBinLabel(10,
"MB4_SL1", 2);
713 wheelSigmaHistos[wh]->setBinLabel(11,
"MB4_SL3", 2);
717 if (
parameters.getUntrackedParameter<
bool>(
"slopeTest")) {
718 if (wheelSlopeHistos.find(wh) == wheelSlopeHistos.end()) {
719 string histoName =
"SlopeSummaryRes_testFailed_" +
parameters.getUntrackedParameter<
string>(
"STEP",
"STEP3") +
723 wheelSlopeHistos[wh]->
setBinLabel(1,
"Sector1", 1);
724 wheelSlopeHistos[wh]->setBinLabel(2,
"Sector2", 1);
725 wheelSlopeHistos[wh]->setBinLabel(3,
"Sector3", 1);
726 wheelSlopeHistos[wh]->setBinLabel(4,
"Sector4", 1);
727 wheelSlopeHistos[wh]->setBinLabel(5,
"Sector5", 1);
728 wheelSlopeHistos[wh]->setBinLabel(6,
"Sector6", 1);
729 wheelSlopeHistos[wh]->setBinLabel(7,
"Sector7", 1);
730 wheelSlopeHistos[wh]->setBinLabel(8,
"Sector8", 1);
731 wheelSlopeHistos[wh]->setBinLabel(9,
"Sector9", 1);
732 wheelSlopeHistos[wh]->setBinLabel(10,
"Sector10", 1);
733 wheelSlopeHistos[wh]->setBinLabel(11,
"Sector11", 1);
734 wheelSlopeHistos[wh]->setBinLabel(12,
"Sector12", 1);
735 wheelSlopeHistos[wh]->setBinLabel(13,
"Sector13", 1);
736 wheelSlopeHistos[wh]->setBinLabel(14,
"Sector14", 1);
737 wheelSlopeHistos[wh]->setBinLabel(1,
"MB1_SL1", 2);
738 wheelSlopeHistos[wh]->setBinLabel(2,
"MB1_SL2", 2);
739 wheelSlopeHistos[wh]->setBinLabel(3,
"MB1_SL3", 2);
740 wheelSlopeHistos[wh]->setBinLabel(4,
"MB2_SL1", 2);
741 wheelSlopeHistos[wh]->setBinLabel(5,
"MB2_SL2", 2);
742 wheelSlopeHistos[wh]->setBinLabel(6,
"MB2_SL3", 2);
743 wheelSlopeHistos[wh]->setBinLabel(7,
"MB3_SL1", 2);
744 wheelSlopeHistos[wh]->setBinLabel(8,
"MB3_SL2", 2);
745 wheelSlopeHistos[wh]->setBinLabel(9,
"MB3_SL3", 2);
746 wheelSlopeHistos[wh]->setBinLabel(10,
"MB4_SL1", 2);
747 wheelSlopeHistos[wh]->setBinLabel(11,
"MB4_SL3", 2);
756 if (
ret == 0 ||
bin == 11)