146 if (
verbose_)
std::cout <<
">>> EndRun (DataCertificationJetMET) <<<" << std::endl;
151 std::vector<MonitorElement*> mes;
152 std::vector<std::string> subDirVec;
167 if (
verbose_)
std::cout <<
"1 >>> found " << mes.size() <<
" monitoring elements!" << std::endl;
171 for (std::vector<std::string>::const_iterator ic = subDirVec.begin();
172 ic != subDirVec.end(); ic++) {
177 RunNumber = run.
id().
run();
185 if (
verbose_)
std::cout <<
"found " << mes.size() <<
" monitoring elements!" << std::endl;
195 for (std::vector<std::string>::const_iterator ic = subDirVec.begin();
196 ic != subDirVec.end(); ic++) {
206 if (RunDir ==
"JetMET") {
208 if (
verbose_)
std::cout <<
"-XXX- RunDir = >>" << RunDir.c_str() <<
"<<" << std::endl;
212 RunNumber = atoi(RunNum.c_str());
226 MonitorElement* CertificationSummaryMap =
dbe_->
book2D(
"CertificationSummaryMap",
"CertificationSummaryMap",3,0,3,5,0,5);
227 reportSummaryMap->
getTH2F()->SetStats(kFALSE);
228 CertificationSummaryMap->
getTH2F()->SetStats(kFALSE);
229 reportSummaryMap->
getTH2F()->SetOption(
"colz");
230 CertificationSummaryMap->
getTH2F()->SetOption(
"colz");
236 CertificationSummaryMap->
setBinLabel(1,
"CaloTower");
240 reportSummary->
Fill(1.);
241 CertificationSummary->
Fill(1.);
244 if (RunDir==
"Reference") RunDir=
"";
262 if (RunDir ==
"") newHistoName =
"JetMET/Jet/";
263 else newHistoName = RunDir+
"/JetMET/Run summary/Jet/";
266 cleaningdir =
"Cleaned";
268 meJetPhi[0] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Phi_Barrel");
269 meJetPhi[1] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Phi_EndCap");
270 meJetPhi[2] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Phi_Forward");
271 meJetPhi[3] =
dbe_->
get(newHistoName+
"PFJets/Phi");
272 meJetPhi[4] =
dbe_->
get(newHistoName+
"JPT/Phi");
275 meJetEta[0] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Eta");
276 meJetEta[1] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Eta");
277 meJetEta[2] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Eta");
278 meJetEta[3] =
dbe_->
get(newHistoName+
"PFJets/Eta");
279 meJetEta[4] =
dbe_->
get(newHistoName+
"JPT/Eta");
282 meJetPt[0] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Pt_Barrel");
283 meJetPt[1] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Pt_EndCap");
284 meJetPt[2] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Pt_Forward");
285 meJetPt[3] =
dbe_->
get(newHistoName+
"PFJets/Pt2");
286 meJetPt[4] =
dbe_->
get(newHistoName+
"JPT/Pt2");
289 meJetConstituents[0] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Constituents");
290 meJetConstituents[1] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Constituents");
291 meJetConstituents[2] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/Constituents");
292 meJetConstituents[3] =
dbe_->
get(newHistoName+
"PFJets/Constituents");
295 meJetEMFrac[0] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/EFrac");
296 meJetEMFrac[1] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/EFrac");
297 meJetEMFrac[2] =
dbe_->
get(newHistoName+cleaningdir+
"AntiKtJets/EFrac");
298 meJetEMFrac[3] =
dbe_->
get(newHistoName+
"PFJets/EFrac");
301 meJetNTracks =
dbe_->
get(newHistoName+
"JPT/nTracks");
318 const QReport* QReport_JetEta[5] = {0, 0, 0, 0, 0};
319 const QReport* QReport_JetPhi[5] = {0, 0, 0, 0, 0};
322 const QReport* QReport_JetConstituents[4][2] = {{0,0}, {0,0}, {0,0}, {0,0}};
323 const QReport* QReport_JetEFrac[4][2] = {{0,0}, {0,0}, {0,0}, {0,0}};
324 const QReport* QReport_JetPt[5][2] = {{0,0}, {0,0}, {0,0}, {0,0}, {0,0}};
327 const QReport* QReport_JetNTracks[2] = {0, 0};
329 float qr_Jet_NTracks[2] = {-1, -1};
330 float qr_Jet_Eta[5] = {-1, -1, -1, -1, -1};
331 float qr_Jet_Phi[5] = {-1, -1, -1, -1, -1};
332 float dc_Jet[5] = {-1, -1, -1, -1, -1};
334 float qr_Jet_Constituents[4][2] = {{-1,-1}, {-1,-1}, {-1,-1}, {-1,-1}};
335 float qr_Jet_EFrac[4][2] = {{-1,-1}, {-1,-1}, {-1,-1}, {-1,-1}};
336 float qr_Jet_Pt[5][2] = {{-1,-1}, {-1,-1}, {-1,-1}, {-1,-1}, {-1,-1}};
341 for (
int jtyp=0; jtyp<5; ++jtyp) {
345 if (meJetConstituents[jtyp]) {
346 QReport_JetConstituents[jtyp][0] = meJetConstituents[jtyp]->
getQReport(
"meanJetConstituentsTest");
347 QReport_JetConstituents[jtyp][1] = meJetConstituents[jtyp]->
getQReport(
"KolmogorovTest");
349 if (meJetEMFrac[jtyp]) {
350 QReport_JetEFrac[jtyp][0] = meJetEMFrac[jtyp]->
getQReport(
"meanEMFractionTest");
351 QReport_JetEFrac[jtyp][1] = meJetEMFrac[jtyp]->
getQReport(
"KolmogorovTest");
356 QReport_JetNTracks[0] = meJetNTracks->
getQReport(
"meanNTracksTest");
357 QReport_JetNTracks[1] = meJetNTracks->
getQReport(
"KolmogorovTest");
361 QReport_JetPt[jtyp][0] = meJetPt[jtyp]->
getQReport(
"meanJetPtTest");
362 QReport_JetPt[jtyp][1] = meJetPt[jtyp]->
getQReport(
"KolmogorovTest");
365 QReport_JetPhi[jtyp] = meJetPhi[jtyp]->
getQReport(
"KolmogorovTest");
367 QReport_JetEta[jtyp] = meJetEta[jtyp]->
getQReport(
"KolmogorovTest");
370 if (QReport_JetPt[jtyp][0]){
371 if (QReport_JetPt[jtyp][0]->getStatus()==100 ||
372 QReport_JetPt[jtyp][0]->getStatus()==200)
373 qr_Jet_Pt[jtyp][0] = 1;
374 else if (QReport_JetPt[jtyp][0]->getStatus()==300)
375 qr_Jet_Pt[jtyp][0] = 0;
377 qr_Jet_Pt[jtyp][0] = -1;
379 else qr_Jet_Pt[jtyp][0] = -2;
381 if (QReport_JetPt[jtyp][1]){
382 if (QReport_JetPt[jtyp][1]->getStatus()==100 ||
383 QReport_JetPt[jtyp][1]->getStatus()==200)
384 qr_Jet_Pt[jtyp][1] = 1;
385 else if (QReport_JetPt[jtyp][1]->getStatus()==300)
386 qr_Jet_Pt[jtyp][1] = 0;
388 qr_Jet_Pt[jtyp][1] = -1;
390 else qr_Jet_Pt[jtyp][1] = -2;
393 if (QReport_JetPhi[jtyp]){
394 if (QReport_JetPhi[jtyp]->getStatus()==100 ||
395 QReport_JetPhi[jtyp]->getStatus()==200)
396 qr_Jet_Phi[jtyp] = 1;
397 else if (QReport_JetPhi[jtyp]->getStatus()==300)
398 qr_Jet_Phi[jtyp] = 0;
400 qr_Jet_Phi[jtyp] = -1;
402 else qr_Jet_Phi[jtyp] = -2;
405 if (QReport_JetEta[jtyp]){
406 if (QReport_JetEta[jtyp]->getStatus()==100 ||
407 QReport_JetEta[jtyp]->getStatus()==200)
408 qr_Jet_Eta[jtyp] = 1;
409 else if (QReport_JetEta[jtyp]->getStatus()==300)
410 qr_Jet_Eta[jtyp] = 0;
412 qr_Jet_Eta[jtyp] = -1;
414 else qr_Jet_Eta[jtyp] = -2;
418 if (QReport_JetConstituents[jtyp][0]){
419 if (QReport_JetConstituents[jtyp][0]->getStatus()==100 ||
420 QReport_JetConstituents[jtyp][0]->getStatus()==200)
421 qr_Jet_Constituents[jtyp][0] = 1;
422 else if (QReport_JetConstituents[jtyp][0]->getStatus()==300)
423 qr_Jet_Constituents[jtyp][0] = 0;
425 qr_Jet_Constituents[jtyp][0] = -1;
427 else qr_Jet_Constituents[jtyp][0] = -2;
429 if (QReport_JetConstituents[jtyp][1]){
430 if (QReport_JetConstituents[jtyp][1]->getStatus()==100 ||
431 QReport_JetConstituents[jtyp][1]->getStatus()==200)
432 qr_Jet_Constituents[jtyp][1] = 1;
433 else if (QReport_JetConstituents[jtyp][1]->getStatus()==300)
434 qr_Jet_Constituents[jtyp][1] = 0;
436 qr_Jet_Constituents[jtyp][1] = -1;
438 else qr_Jet_Constituents[jtyp][1] = -2;
441 if (QReport_JetEFrac[jtyp][0]){
442 if (QReport_JetEFrac[jtyp][0]->getStatus()==100 ||
443 QReport_JetEFrac[jtyp][0]->getStatus()==200)
444 qr_Jet_EFrac[jtyp][0] = 1;
445 else if (QReport_JetEFrac[jtyp][0]->getStatus()==300)
446 qr_Jet_EFrac[jtyp][0] = 0;
448 qr_Jet_EFrac[jtyp][0] = -1;
450 else qr_Jet_EFrac[jtyp][0] = -2;
452 if (QReport_JetEFrac[jtyp][1]){
453 if (QReport_JetEFrac[jtyp][1]->getStatus()==100 ||
454 QReport_JetEFrac[jtyp][1]->getStatus()==200)
455 qr_Jet_EFrac[jtyp][1] = 1;
456 else if (QReport_JetEFrac[jtyp][1]->getStatus()==300)
457 qr_Jet_EFrac[jtyp][1] = 0;
459 qr_Jet_EFrac[jtyp][1] = -1;
461 else qr_Jet_EFrac[jtyp][1] = -2;
464 for (
int ii = 0;
ii < 2; ++
ii) {
466 if (QReport_JetNTracks[
ii]){
467 if (QReport_JetNTracks[ii]->getStatus()==100 ||
468 QReport_JetNTracks[ii]->getStatus()==200)
469 qr_Jet_NTracks[
ii] = 1;
470 else if (QReport_JetNTracks[ii]->getStatus()==300)
471 qr_Jet_NTracks[
ii] = 0;
473 qr_Jet_NTracks[
ii] = -1;
475 else qr_Jet_NTracks[
ii] = -2;
480 printf(
"====================Jet Type %d QTest Report Summary========================\n",jtyp);
481 printf(
"Eta: Phi: Pt 1: 2: Const/Ntracks 1: 2: EFrac/tracknhits 1: 2:\n");
483 printf(
"%2.2f %2.2f %2.2f %2.2f %2.2f %2.2f %2.2f %2.2f\n", \
486 qr_Jet_Pt[jtyp][0], \
487 qr_Jet_Pt[jtyp][1], \
488 qr_Jet_Constituents[jtyp][0], \
489 qr_Jet_Constituents[jtyp][1], \
490 qr_Jet_EFrac[jtyp][0], \
491 qr_Jet_EFrac[jtyp][1]);
494 printf(
"%2.2f %2.2f %2.2f %2.2f %2.2f %2.2f\n", \
497 qr_Jet_Pt[jtyp][0], \
498 qr_Jet_Pt[jtyp][1], \
502 printf(
"===========================================================================\n");
507 for (
int ttyp = 0; ttyp < 2; ++ttyp) {
509 qr_Jet_Pt[jtyp][ttyp] = 1;
511 qr_Jet_Eta[jtyp] = 1;
512 qr_Jet_Phi[jtyp] = 1;
515 qr_Jet_EFrac[jtyp][ttyp] = 1;
516 qr_Jet_Constituents[jtyp][ttyp] = 1;
519 qr_Jet_NTracks[ttyp] = 1;
526 if ( (qr_Jet_EFrac[jtyp][0] == 0) ||
527 (qr_Jet_EFrac[jtyp][1] == 0) ||
528 (qr_Jet_Constituents[jtyp][1] == 0) ||
529 (qr_Jet_Constituents[jtyp][0] == 0) ||
530 (qr_Jet_Eta[jtyp] == 0) ||
531 (qr_Jet_Phi[jtyp] == 0) ||
532 (qr_Jet_Pt[jtyp][0] == 0) ||
533 (qr_Jet_Pt[jtyp][1] == 0)
536 else if ( (qr_Jet_EFrac[jtyp][0] == -1) &&
537 (qr_Jet_EFrac[jtyp][1] == -1) &&
538 (qr_Jet_Constituents[jtyp][1] == -1) &&
539 (qr_Jet_Constituents[jtyp][0] == -1) &&
540 (qr_Jet_Eta[jtyp] == -1) &&
541 (qr_Jet_Phi[jtyp] == -1) &&
542 (qr_Jet_Pt[jtyp][0] == -1) &&
543 (qr_Jet_Pt[jtyp][1] == -1 )
546 else if ( (qr_Jet_EFrac[jtyp][0] == -2) &&
547 (qr_Jet_EFrac[jtyp][1] == -2) &&
548 (qr_Jet_Constituents[jtyp][1] == -2) &&
549 (qr_Jet_Constituents[jtyp][0] == -2) &&
550 (qr_Jet_Eta[jtyp] == -2) &&
551 (qr_Jet_Phi[jtyp] == -2) &&
552 (qr_Jet_Pt[jtyp][0] == -2) &&
553 (qr_Jet_Pt[jtyp][1] == -2)
560 if ( (qr_Jet_NTracks[0] == 0) ||
561 (qr_Jet_NTracks[1] == 0) ||
562 (qr_Jet_Eta[jtyp] == 0) ||
563 (qr_Jet_Phi[jtyp] == 0) ||
564 (qr_Jet_Pt[jtyp][0] == 0) ||
565 (qr_Jet_Pt[jtyp][1] == 0)
568 else if ( (qr_Jet_NTracks[0] == -1) &&
569 (qr_Jet_NTracks[1] == -1) &&
570 (qr_Jet_Eta[jtyp] == -1) &&
571 (qr_Jet_Phi[jtyp] == -1) &&
572 (qr_Jet_Pt[jtyp][0] == -1) &&
573 (qr_Jet_Pt[jtyp][1] == -1)
576 else if ( (qr_Jet_NTracks[0] == -2) &&
577 (qr_Jet_NTracks[1] == -2) &&
578 (qr_Jet_Eta[jtyp] == -2) &&
579 (qr_Jet_Phi[jtyp] == -2) &&
580 (qr_Jet_Pt[jtyp][0] == -2) &&
581 (qr_Jet_Pt[jtyp][1] == -2)
588 if (
verbose_)
std::cout<<
"Certifying Jet algo: "<<jtyp<<
" with value: "<<dc_Jet[jtyp]<<std::endl;
589 CertificationSummaryMap->
Fill(2, 4-jtyp, dc_Jet[jtyp]);
590 reportSummaryMap->
Fill(2, 4-jtyp, dc_Jet[jtyp]);
610 if (RunDir ==
"") newHistoName =
"JetMET/MET/";
611 else newHistoName = RunDir+
"/JetMET/Run summary/MET/";
614 cleaningdir =
"BasicCleanup";
618 meMExy[0][0] =
dbe_->
get(newHistoName+
"CaloMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloMEx");
619 meMExy[0][1] =
dbe_->
get(newHistoName+
"CaloMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloMEy");
622 meMExy[1][0] =
dbe_->
get(newHistoName+
"PfMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_PfMEx");
623 meMExy[1][1] =
dbe_->
get(newHistoName+
"PfMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_PfMEy");
624 meMExy[2][0] =
dbe_->
get(newHistoName+
"TcMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_MEx");
625 meMExy[2][1] =
dbe_->
get(newHistoName+
"TcMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_MEy");
626 meMExy[3][0] =
dbe_->
get(newHistoName+
"MuCorrMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloMEx");
627 meMExy[3][1] =
dbe_->
get(newHistoName+
"MuCorrMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloMEy");
629 meMETPhi[0] =
dbe_->
get(newHistoName+
"CaloMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloMETPhi");
631 meMETPhi[1] =
dbe_->
get(newHistoName+
"PfMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_PfMETPhi");
632 meMETPhi[2] =
dbe_->
get(newHistoName+
"TcMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_METPhi");
633 meMETPhi[3] =
dbe_->
get(newHistoName+
"MuCorrMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloMETPhi");
635 meMEt[0] =
dbe_->
get(newHistoName+
"CaloMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloMET");
637 meMEt[1] =
dbe_->
get(newHistoName+
"PfMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_PfMET");
638 meMEt[2] =
dbe_->
get(newHistoName+
"TcMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_MET");
639 meMEt[3] =
dbe_->
get(newHistoName+
"MuCorrMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloMET");
641 meSumEt[0] =
dbe_->
get(newHistoName+
"CaloMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloSumET");
643 meSumEt[1] =
dbe_->
get(newHistoName+
"PfMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_PfSumET");
644 meSumEt[2] =
dbe_->
get(newHistoName+
"TcMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_SumET");
645 meSumEt[3] =
dbe_->
get(newHistoName+
"MuCorrMET/"+cleaningdir+
"/"+
metFolder+
"/METTask_CaloSumET");
653 const QReport * QReport_MExy[4][2][2];
654 const QReport * QReport_MEt[4][2];
655 const QReport * QReport_SumEt[4][2];
657 const QReport * QReport_METPhi[4][2];
660 float qr_MET_MExy[4][2][2] = {{{-999.}}};
661 float qr_MET_MEt[4][2] = {{-999.}};
662 float qr_MET_SumEt[4][2] = {{-999.}};
663 float qr_MET_METPhi[4][2] = {{-999.}};
664 float dc_MET[4] = {-999.};
669 for (
int mtyp = 0; mtyp < 3; ++mtyp){
676 if (meMExy[mtyp][0]) {
677 QReport_MExy[mtyp][0][0] = meMExy[mtyp][0]->
getQReport(
"meanMExyTest");
678 QReport_MExy[mtyp][1][0] = meMExy[mtyp][0]->
getQReport(
"KolmogorovTest");
680 if (meMExy[mtyp][1]) {
681 QReport_MExy[mtyp][0][1] = meMExy[mtyp][1]->
getQReport(
"meanMExyTest");
682 QReport_MExy[mtyp][1][1] = meMExy[mtyp][1]->
getQReport(
"KolmogorovTest");
685 QReport_MEt[mtyp][0] = meMEt[mtyp]->
getQReport(
"meanMETTest");
686 QReport_MEt[mtyp][1] = meMEt[mtyp]->
getQReport(
"KolmogorovTest");
690 QReport_SumEt[mtyp][0] = meSumEt[mtyp]->
getQReport(
"meanSumETTest");
691 QReport_SumEt[mtyp][1] = meSumEt[mtyp]->
getQReport(
"KolmogorovTest");
694 if (meMETPhi[mtyp]) {
695 QReport_METPhi[mtyp][0] = meMETPhi[mtyp]->
getQReport(
"phiQTest");
696 QReport_METPhi[mtyp][1] = meMETPhi[mtyp]->
getQReport(
"KolmogorovTest");
698 for (
int testtyp = 0; testtyp < 2; ++testtyp) {
700 if (QReport_MExy[mtyp][testtyp][0]){
701 if (QReport_MExy[mtyp][testtyp][0]->getStatus()==100 ||
702 QReport_MExy[mtyp][testtyp][0]->getStatus()==200)
703 qr_MET_MExy[mtyp][testtyp][0] = 1;
704 else if (QReport_MExy[mtyp][testtyp][0]->getStatus()==300)
705 qr_MET_MExy[mtyp][testtyp][0] = 0;
707 qr_MET_MExy[mtyp][testtyp][0] = -1;
709 else qr_MET_MExy[mtyp][testtyp][0] = -2;
712 if (QReport_MExy[mtyp][testtyp][1]){
713 if (QReport_MExy[mtyp][testtyp][1]->getStatus()==100 ||
714 QReport_MExy[mtyp][testtyp][1]->getStatus()==200)
715 qr_MET_MExy[mtyp][testtyp][1] = 1;
716 else if (QReport_MExy[mtyp][testtyp][1]->getStatus()==300)
717 qr_MET_MExy[mtyp][testtyp][1] = 0;
719 qr_MET_MExy[mtyp][testtyp][1] = -1;
721 else qr_MET_MExy[mtyp][testtyp][1] = -2;
724 if (QReport_MEt[mtyp][testtyp]){
725 if (QReport_MEt[mtyp][testtyp]->getStatus()==100 ||
726 QReport_MEt[mtyp][testtyp]->getStatus()==200)
727 qr_MET_MEt[mtyp][testtyp] = 1;
728 else if (QReport_MEt[mtyp][testtyp]->getStatus()==300)
729 qr_MET_MEt[mtyp][testtyp] = 0;
731 qr_MET_MEt[mtyp][testtyp] = -1;
733 else qr_MET_MEt[mtyp][testtyp] = -2;
736 if (QReport_SumEt[mtyp][testtyp]){
737 if (QReport_SumEt[mtyp][testtyp]->getStatus()==100 ||
738 QReport_SumEt[mtyp][testtyp]->getStatus()==200)
739 qr_MET_SumEt[mtyp][testtyp] = 1;
740 else if (QReport_SumEt[mtyp][testtyp]->getStatus()==300)
741 qr_MET_SumEt[mtyp][testtyp] = 0;
743 qr_MET_SumEt[mtyp][testtyp] = -1;
745 else qr_MET_SumEt[mtyp][testtyp] = -2;
748 if (QReport_METPhi[mtyp][testtyp]){
749 if (QReport_METPhi[mtyp][testtyp]->getStatus()==100 ||
750 QReport_METPhi[mtyp][testtyp]->getStatus()==200)
751 qr_MET_METPhi[mtyp][testtyp] = 1;
752 else if (QReport_METPhi[mtyp][testtyp]->getStatus()==300)
753 qr_MET_METPhi[mtyp][testtyp] = 0;
755 qr_MET_METPhi[mtyp][testtyp] = -1;
757 else qr_MET_METPhi[mtyp][testtyp] = -2;
762 printf(
"====================MET Type %d QTest Report Summary========================\n",mtyp);
763 printf(
"MEx test MEy test MEt test: SumEt test: METPhi test:\n");
764 for (
int tt = 0;
tt < 2; ++
tt) {
765 printf(
"%2.2f %2.2f %2.2f %2.2f %2.2f\n",qr_MET_MExy[mtyp][
tt][0], \
766 qr_MET_MExy[mtyp][tt][1], \
767 qr_MET_MEt[mtyp][tt], \
768 qr_MET_SumEt[mtyp][tt], \
769 qr_MET_METPhi[mtyp][tt]);
771 printf(
"===========================================================================\n");
776 for (
int ttyp = 0; ttyp < 2; ++ttyp) {
778 qr_MET_MExy[mtyp][ttyp][0] = 1;
779 qr_MET_MExy[mtyp][ttyp][1] = 1;
780 qr_MET_MEt[mtyp][ttyp] = 1;
781 qr_MET_SumEt[mtyp][ttyp] = 1;
782 qr_MET_METPhi[mtyp][ttyp] = 1;
788 (qr_MET_MExy[mtyp][0][0] == 0) ||
789 (qr_MET_MExy[mtyp][0][1] == 0) ||
790 (qr_MET_MEt[mtyp][0] == 0) ||
791 (qr_MET_SumEt[mtyp][0] == 0) ||
792 (qr_MET_METPhi[mtyp][0] == 0) ||
793 (qr_MET_MExy[mtyp][1][0] == 0) ||
794 (qr_MET_MExy[mtyp][1][1] == 0) ||
795 (qr_MET_MEt[mtyp][1] == 0) ||
796 (qr_MET_SumEt[mtyp][1] == 0) ||
797 (qr_MET_METPhi[mtyp][1] == 0)
801 (qr_MET_MExy[mtyp][0][0] == -1) &&
802 (qr_MET_MExy[mtyp][0][1] == -1) &&
803 (qr_MET_MEt[mtyp][0] == -1) &&
804 (qr_MET_SumEt[mtyp][0] == -1) &&
805 (qr_MET_METPhi[mtyp][0] == -1) &&
806 (qr_MET_MExy[mtyp][1][0] == -1) &&
807 (qr_MET_MExy[mtyp][1][1] == -1) &&
808 (qr_MET_MEt[mtyp][1] == -1) &&
809 (qr_MET_SumEt[mtyp][1] == -1) &&
810 (qr_MET_METPhi[mtyp][1] == -1)
814 (qr_MET_MExy[mtyp][0][0] == -2) &&
815 (qr_MET_MExy[mtyp][0][1] == -2) &&
816 (qr_MET_MEt[mtyp][0] == -2) &&
817 (qr_MET_SumEt[mtyp][0] == -2) &&
818 (qr_MET_METPhi[mtyp][0] == -2) &&
819 (qr_MET_MExy[mtyp][1][0] == -2) &&
820 (qr_MET_MExy[mtyp][1][1] == -2) &&
821 (qr_MET_MEt[mtyp][1] == -2) &&
822 (qr_MET_SumEt[mtyp][1] == -2) &&
823 (qr_MET_METPhi[mtyp][1] == -2)
829 if (
verbose_)
std::cout<<
"Certifying MET algo: "<<mtyp<<
" with value: "<<dc_MET[mtyp]<<std::endl;
830 CertificationSummaryMap->
Fill(1, 4-mtyp, dc_MET[mtyp]);
831 reportSummaryMap->
Fill(1, 4-mtyp, dc_MET[mtyp]);
860 float dc_CT[3] = {-2.};
869 for (
int cttyp = 0; cttyp < 3; ++cttyp) {
871 if (
verbose_)
std::cout<<
"Certifying CaloTowers with value: "<<dc_CT[cttyp]<<std::endl;
872 CertificationSummaryMap->
Fill(0, 4-cttyp, dc_CT[cttyp]);
873 reportSummaryMap->
Fill(0, 4-cttyp, dc_CT[cttyp]);
const QReport * getQReport(const std::string &qtname) const
get QReport corresponding to <qtname> (null pointer if QReport does not exist)
std::vector< std::string > getSubdirs(void) const
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * bookFloat(const char *name)
Book float.
std::vector< MonitorElement * > getAllContents(const std::string &path, uint32_t runNumber=0, uint32_t lumi=0) const
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void showDirStructure(void) const
TH2F * getTH2F(void) const
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setCurrentFolder(const std::string &fullpath)
const std::string & pwd(void) const