39 LogDebug(
"JetMETHLTOfflineSource") <<
"constructor....";
90 std::vector<edm::ParameterSet>
paths = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"pathPairs");
109 cout <<
"============================================================" << endl;
110 cout <<
" New event" << endl << endl;
119 cout <<
" triggerResults not valid" << endl;
120 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"TriggerResults not found, " 126 cout <<
" done triggerResults" << endl;
136 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"TriggerEvent not found, " 142 cout <<
" done triggerSummary" << endl;
146 cout <<
"============================================================" << endl;
147 cout <<
" Reading in offline objects" << endl << endl;
158 cout <<
" done calo" << endl;
167 cout <<
" done pf" << endl;
179 cout <<
"============================================================" << endl;
180 cout <<
" Read in offline objects" << endl << endl;
185 cout <<
"Run = " <<
iEvent.id().run() <<
", LS = " <<
iEvent.luminosityBlock()
186 <<
", Event = " <<
iEvent.id().event() << endl;
189 for (
int i = 0;
i < 2;
i++) {
212 auto calojet_ =
calojet.begin();
213 for (; calojet_ !=
calojet.end(); ++calojet_) {
253 auto pfjet_ =
pfjet.begin();
254 for (; pfjet_ !=
pfjet.end(); ++pfjet_) {
274 PFJetNHEF[0] = pfjet_->neutralHadronEnergyFraction();
275 PFJetCHEF[0] = pfjet_->chargedHadronEnergyFraction();
276 PFJetNEMF[0] = pfjet_->neutralEmEnergyFraction();
277 PFJetCEMF[0] = pfjet_->chargedEmEnergyFraction();
284 PFJetNHEF[1] = pfjet_->neutralHadronEnergyFraction();
285 PFJetCHEF[1] = pfjet_->chargedHadronEnergyFraction();
286 PFJetNEMF[1] = pfjet_->neutralEmEnergyFraction();
287 PFJetCEMF[1] = pfjet_->chargedEmEnergyFraction();
293 for (
int i = 0;
i < 2;
i++) {
297 for (
int i = 0;
i < 2;
i++) {
316 cout <<
">> Inside fillMEforMonTriggerSummary " << endl;
321 for (
unsigned int j = 0;
j != nPath; ++
j) {
323 if (
pathname.find(MuonTrigPath) != std::string::npos) {
327 cout <<
"fillMEforMonTriggerSummary: Muon Match" << endl;
340 for (
unsigned int j = 0;
j != nPath; ++
j) {
342 if (
pathname.find(MBTrigPath) != std::string::npos) {
346 cout <<
"fillMEforMonTriggerSummary: MinBias Match" << endl;
358 bool trigFirst =
false;
377 bool trigSec =
false;
381 if (trigSec && trigFirst) {
388 if (!trigSec && trigFirst) {
402 for (
auto const& itv : *Vtx) {
416 cout <<
">> Inside fillMEforTriggerNTfired" << endl;
420 cout <<
" ... and triggerResults is valid" << endl;
426 v.getMEhisto_TriggerSummary()->Fill(0.);
429 bool l1found =
false;
430 if (l1Index < triggerObj_->sizeFilters())
433 v.getMEhisto_TriggerSummary()->Fill(1.);
435 v.getMEhisto_TriggerSummary()->Fill(2.);
437 v.getMEhisto_TriggerSummary()->Fill(3.);
439 v.getMEhisto_TriggerSummary()->Fill(4.);
441 v.getMEhisto_TriggerSummary()->Fill(5.);
443 v.getMEhisto_TriggerSummary()->Fill(6.);
448 v.getMEhisto_JetPt()->Fill(
jet->pt());
449 v.getMEhisto_EtavsPt()->Fill(
jet->eta(),
jet->pt());
450 v.getMEhisto_PhivsPt()->Fill(
jet->phi(),
jet->pt());
455 v.getMEhisto_JetSize()->Fill(
calojet.size());
465 v.getMEhisto_Pt12()->Fill((
jet->pt() + jet2->pt()) / 2.);
466 v.getMEhisto_Eta12()->Fill((
jet->eta() + jet2->eta()) / 2.);
467 v.getMEhisto_Phi12()->Fill(
deltaPhi(
jet->phi(), jet2->phi()));
468 v.getMEhisto_Pt3()->Fill(jet3pt);
469 v.getMEhisto_Pt12Pt3()->Fill((
jet->pt() + jet2->pt()) / 2., jet3pt);
470 v.getMEhisto_Pt12Phi12()->Fill((
jet->pt() + jet2->pt()) / 2.,
deltaPhi(
jet->phi(), jet2->phi()));
474 if (((
v.getTriggerType() ==
"MET_Trigger") || (
v.getTriggerType() ==
"TET_Trigger")) &&
478 v.getMEhisto_JetPt()->Fill(
met.pt());
488 cout <<
">> Inside fillMEforMonAllTrigger " << endl;
492 cout <<
" ... and triggerResults is valid" << endl;
497 cout <<
" + Checking path " <<
v.getPath();
500 cout <<
" - failed" << endl;
504 cout <<
" - PASSED! " << endl;
507 std::vector<double> jetPtVec;
508 std::vector<double> jetPhiVec;
509 std::vector<double> jetEtaVec;
510 std::vector<double> jetPxVec;
511 std::vector<double> jetPyVec;
512 std::vector<double> hltPtVec;
513 std::vector<double> hltPhiVec;
514 std::vector<double> hltEtaVec;
515 std::vector<double> hltPxVec;
516 std::vector<double> hltPyVec;
523 cout <<
" - L1Path = " <<
v.getl1Path() << endl;
524 cout <<
" - Label = " <<
v.getLabel() << endl;
531 cout <<
" - l1Index = " << l1Index <<
" - l1Tag = [" << l1Tag <<
"]" << endl;
536 cout <<
" - hltIndex = " << hltIndex <<
" - hltTag = [" <<
hltTag <<
"]" << endl;
539 bool hltTrigBool =
false;
540 bool diJetFire =
false;
544 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index " << l1Index <<
" of that name " << l1Tag;
546 cout <<
"[JetMETHLTOfflineSource::fillMEforMonAllTrigger] - No index l1Index=" << l1Index <<
" of that name \"" 547 << l1Tag <<
"\"" << endl;
553 v.getMEhisto_N_L1()->Fill(kl1.size());
555 auto ki = kl1.begin();
556 for (; ki != kl1.end(); ++ki) {
557 double l1TrigEta = -100;
558 double l1TrigPhi = -100;
561 l1TrigEta = toc[*ki].eta();
562 l1TrigPhi = toc[*ki].phi();
563 if (
v.getTriggerType() ==
"SingleJet_Trigger") {
564 v.getMEhisto_Pt_L1()->Fill(toc[*ki].
pt());
566 v.getMEhisto_PtBarrel_L1()->Fill(toc[*ki].
pt());
568 v.getMEhisto_PtEndcap_L1()->Fill(toc[*ki].
pt());
570 v.getMEhisto_PtForward_L1()->Fill(toc[*ki].
pt());
571 v.getMEhisto_Eta_L1()->Fill(toc[*ki].
eta());
572 v.getMEhisto_Phi_L1()->Fill(toc[*ki].
phi());
573 v.getMEhisto_EtaPhi_L1()->Fill(toc[*ki].
eta(), toc[*ki].
phi());
577 v.getMEhisto_Pt_L1()->Fill(toc[*ki].
pt());
578 v.getMEhisto_Phi_L1()->Fill(toc[*ki].
phi());
583 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
585 cout <<
"[JetMETHLTOfflineSource::fillMEforMonAllTrigger] - No index hltIndex=" << hltIndex
586 <<
" of that name " << endl;
590 v.getTriggerType() ==
"SingleJet_Trigger")
591 v.getMEhisto_N_HLT()->Fill(khlt.size());
593 auto kj = khlt.begin();
595 for (; kj != khlt.end(); ++kj) {
597 double hltTrigEta = -100;
598 double hltTrigPhi = -100;
599 hltTrigEta = toc[*kj].eta();
600 hltTrigPhi = toc[*kj].phi();
601 if ((
deltaR(hltTrigEta, hltTrigPhi, l1TrigEta, l1TrigPhi)) < 0.4 &&
602 (
v.getTriggerType() ==
"DiJet_Trigger"))
608 for (; kj != khlt.end(); ++kj) {
609 double hltTrigEta = -100.;
610 double hltTrigPhi = -100.;
614 cout <<
"+ MET Triggers plots" << endl;
616 v.getMEhisto_Pt_HLT()->Fill(toc[*kj].
pt());
617 v.getMEhisto_Phi_HLT()->Fill(toc[*kj].
phi());
618 v.getMEhisto_PtCorrelation_L1HLT()->Fill(toc[*ki].
pt(), toc[*kj].
pt());
619 v.getMEhisto_PhiCorrelation_L1HLT()->Fill(toc[*ki].
phi(), toc[*kj].
phi());
620 v.getMEhisto_PtResolution_L1HLT()->Fill((toc[*ki].
pt() - toc[*kj].
pt()) / (toc[*ki].
pt()));
621 v.getMEhisto_PhiResolution_L1HLT()->Fill(toc[*ki].
phi() - toc[*kj].
phi());
625 cout <<
"+ Jet Trigger plots" << endl;
628 cout <<
" - Going for those..." << endl;
629 hltTrigEta = toc[*kj].eta();
630 hltTrigPhi = toc[*kj].phi();
631 if ((
deltaR(hltTrigEta, hltTrigPhi, l1TrigEta, l1TrigPhi)) < 0.4) {
632 if (
v.getTriggerType() ==
"SingleJet_Trigger") {
633 v.getMEhisto_PtCorrelation_L1HLT()->Fill(toc[*ki].
pt(), toc[*kj].
pt());
634 v.getMEhisto_EtaCorrelation_L1HLT()->Fill(toc[*ki].
eta(), toc[*kj].
eta());
635 v.getMEhisto_PhiCorrelation_L1HLT()->Fill(toc[*ki].
phi(), toc[*kj].
phi());
636 v.getMEhisto_PtResolution_L1HLT()->Fill((toc[*ki].
pt() - toc[*kj].
pt()) / (toc[*ki].
pt()));
637 v.getMEhisto_EtaResolution_L1HLT()->Fill(toc[*ki].
eta() - toc[*kj].
eta());
638 v.getMEhisto_PhiResolution_L1HLT()->Fill(toc[*ki].
phi() - toc[*kj].
phi());
641 if (((
deltaR(hltTrigEta, hltTrigPhi, l1TrigEta, l1TrigPhi) < 0.4) ||
642 ((
v.getTriggerType() ==
"DiJet_Trigger") && hltTrigBool)) &&
644 if (
v.getTriggerType() ==
"SingleJet_Trigger") {
645 v.getMEhisto_Pt_HLT()->Fill(toc[*kj].
pt());
647 v.getMEhisto_PtBarrel_HLT()->Fill(toc[*kj].
pt());
649 v.getMEhisto_PtEndcap_HLT()->Fill(toc[*kj].
pt());
651 v.getMEhisto_PtForward_HLT()->Fill(toc[*kj].
pt());
652 v.getMEhisto_Eta_HLT()->Fill(toc[*kj].
eta());
653 v.getMEhisto_Phi_HLT()->Fill(toc[*kj].
phi());
654 v.getMEhisto_EtaPhi_HLT()->Fill(toc[*kj].
eta(), toc[*kj].
phi());
661 for (
int iCalo = 0; iCalo < 2; iCalo++) {
664 if (
v.getTriggerType() ==
"SingleJet_Trigger") {
667 v.getMEhisto_PtBarrel()->Fill(
CaloJetPt[iCalo]);
669 v.getMEhisto_PtEndcap()->Fill(
CaloJetPt[iCalo]);
671 v.getMEhisto_PtForward()->Fill(
CaloJetPt[iCalo]);
677 v.getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
pt(),
CaloJetPt[iCalo]);
678 v.getMEhisto_EtaCorrelation_HLTRecObj()->Fill(toc[*kj].
eta(),
CaloJetEta[iCalo]);
679 v.getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),
CaloJetPhi[iCalo]);
681 v.getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
pt() -
CaloJetPt[iCalo]) /
683 v.getMEhisto_EtaResolution_HLTRecObj()->Fill(toc[*kj].
eta() -
CaloJetEta[iCalo]);
684 v.getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi() -
CaloJetPhi[iCalo]);
688 if ((
v.getTriggerType() ==
"DiJet_Trigger")) {
695 hltPhiVec.push_back(toc[*kj].
phi());
696 hltPtVec.push_back(toc[*kj].
pt());
697 hltEtaVec.push_back(toc[*kj].
eta());
698 hltPxVec.push_back(toc[*kj].
px());
699 hltPyVec.push_back(toc[*kj].
py());
709 for (
int iPF = 0; iPF < 2; iPF++) {
712 if (
v.getTriggerType() ==
"SingleJet_Trigger") {
713 v.getMEhisto_Pt()->Fill(
PFJetPt[iPF]);
715 v.getMEhisto_PtBarrel()->Fill(
PFJetPt[iPF]);
717 v.getMEhisto_PtEndcap()->Fill(
PFJetPt[iPF]);
719 v.getMEhisto_PtForward()->Fill(
PFJetPt[iPF]);
725 v.getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
pt(),
PFJetPt[iPF]);
726 v.getMEhisto_EtaCorrelation_HLTRecObj()->Fill(toc[*kj].
eta(),
PFJetEta[iPF]);
727 v.getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),
PFJetPhi[iPF]);
729 v.getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
pt() -
PFJetPt[iPF]) / (toc[*kj].
pt()));
730 v.getMEhisto_EtaResolution_HLTRecObj()->Fill(toc[*kj].
eta() -
PFJetEta[iPF]);
731 v.getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi() -
PFJetPhi[iPF]);
735 if ((
v.getTriggerType() ==
"DiJet_Trigger")) {
737 jetPtVec.push_back(
PFJetPt[iPF]);
739 jetPxVec.push_back(
PFJetPx[iPF]);
740 jetPyVec.push_back(
PFJetPy[iPF]);
742 hltPhiVec.push_back(toc[*kj].
phi());
743 hltPtVec.push_back(toc[*kj].
pt());
744 hltEtaVec.push_back(toc[*kj].
eta());
745 hltPxVec.push_back(toc[*kj].
px());
746 hltPyVec.push_back(toc[*kj].
py());
758 (
v.getPath().find(
"HLT_PFMET") == std::string::npos)) {
762 v.getMEhisto_Pt()->Fill(
met.et());
763 v.getMEhisto_Phi()->Fill(
met.phi());
765 v.getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
et(),
met.et());
766 v.getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),
met.phi());
767 v.getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
et() -
met.et()) / (toc[*kj].
et()));
768 v.getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi() -
met.phi());
774 (
v.getPath().find(
"HLT_PFMET") != std::string::npos)) {
776 const PFMET pfmet = pfmetcol->front();
778 v.getMEhisto_Pt()->Fill(pfmet.
et());
779 v.getMEhisto_Phi()->Fill(pfmet.
phi());
781 v.getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
et(), pfmet.
et());
782 v.getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(), pfmet.
phi());
783 v.getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
et() - pfmet.
et()) / (toc[*kj].
et()));
784 v.getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi() - pfmet.
phi());
787 if ((
v.getTriggerType() ==
"DiJet_Trigger"))
792 v.getMEhisto_N()->Fill(jetsize);
795 if ((
v.getTriggerType() ==
"DiJet_Trigger") && jetPtVec.size() > 1) {
796 double AveJetPt = (jetPtVec[0] + jetPtVec[1]) / 2;
797 double AveJetEta = (jetEtaVec[0] + jetEtaVec[1]) / 2;
798 double JetDelPhi =
deltaPhi(jetPhiVec[0], jetPhiVec[1]);
799 double AveHLTPt = (hltPtVec[0] + hltPtVec[1]) / 2;
800 double AveHLTEta = (hltEtaVec[0] + hltEtaVec[1]) / 2;
801 double HLTDelPhi =
deltaPhi(hltPhiVec[0], hltPhiVec[1]);
802 v.getMEhisto_AveragePt_RecObj()->Fill(AveJetPt);
803 v.getMEhisto_AverageEta_RecObj()->Fill(AveJetEta);
804 v.getMEhisto_DeltaPhi_RecObj()->Fill(JetDelPhi);
806 v.getMEhisto_AveragePt_HLTObj()->Fill(AveHLTPt);
807 v.getMEhisto_AverageEta_HLTObj()->Fill(AveHLTEta);
808 v.getMEhisto_DeltaPhi_HLTObj()->Fill(HLTDelPhi);
812 cout <<
"<< Exiting fillMEforMonAllTrigger " << endl;
822 bool denompassed =
false;
823 bool numpassed =
false;
840 if (denompassed ==
false)
852 double trigLowpTcut = 0;
853 double trigMedpTcut = 0;
854 double trigHighpTcut = 0;
855 double trigLowpTcutFwd = 0;
856 double trigMedpTcutFwd = 0;
857 double trigHighpTcutFwd = 0;
860 double trigLowpTPFcut = 0;
861 double trigMedpTPFcut = 0;
862 double trigHighpTPFcut = 0;
863 double trigLowpTPFcutFwd = 0;
864 double trigMedpTPFcutFwd = 0;
865 double trigHighpTPFcutFwd = 0;
868 size_t jetstrfound =
v.getPath().find(
"Jet");
870 string tpath =
v.getPath();
874 if (jetstrfound != string::npos) {
876 for (
int trig =
int(jetstrfound) + 3;
trig <
int(jetstrfound) + 7;
trig++) {
877 if (!isdigit(tpath[
trig]))
879 jetTrigVal += tpath[
trig];
881 jetVal = atof(jetTrigVal.c_str());
886 trigMedpTcut = jetVal + 5.;
887 trigHighpTcut = jetVal + 10.;
889 trigLowpTcutFwd = jetVal + 9.;
890 trigMedpTcutFwd = jetVal + 15.;
891 trigHighpTcutFwd = jetVal + 21.;
894 trigMedpTcut = jetVal + 2.;
895 trigHighpTcut = jetVal + 60.;
897 trigLowpTcutFwd = jetVal + 22.;
898 trigMedpTcutFwd = jetVal + 25.;
899 trigHighpTcutFwd = jetVal + 110.;
901 trigLowpTcut = jetVal;
907 trigMedpTPFcut = jetVal + 20.;
908 trigHighpTPFcut = jetVal + 40.;
910 trigLowpTPFcutFwd = jetVal + 60.;
911 trigMedpTPFcutFwd = jetVal + 80.;
912 trigHighpTPFcutFwd = jetVal + 100.;
915 trigMedpTPFcut = jetVal + 40.;
916 trigHighpTPFcut = jetVal + 140.;
918 trigLowpTPFcutFwd = jetVal + 110.;
919 trigMedpTPFcutFwd = jetVal + 130.;
920 trigHighpTPFcutFwd = jetVal + 190.;
922 trigLowpTPFcut = jetVal;
929 std::cout <<
"fillMEforEffAllTrigger: CaloJet -------------------" << std::endl;
934 bool jetIDbool =
false;
941 if ((
v.getTriggerType() ==
"SingleJet_Trigger") && !
calojet.empty()) {
944 cout <<
"Passed CaloJet ID -------------------" << endl;
947 v.getMEhisto_DenominatorPt()->Fill(leadjpt);
949 v.getMEhisto_DenominatorPtBarrel()->Fill(leadjpt);
951 v.getMEhisto_DenominatorPtEndcap()->Fill(leadjpt);
953 v.getMEhisto_DenominatorPtForward()->Fill(leadjpt);
954 v.getMEhisto_DenominatorEta()->Fill(leadjeta);
955 v.getMEhisto_DenominatorPhi()->Fill(leadjphi);
956 v.getMEhisto_DenominatorEtaPhi()->Fill(leadjeta, leadjphi);
958 v.getMEhisto_DenominatorEtaBarrel()->Fill(leadjeta);
959 v.getMEhisto_DenominatorPhiBarrel()->Fill(leadjphi);
962 v.getMEhisto_DenominatorEtaEndcap()->Fill(leadjeta);
963 v.getMEhisto_DenominatorPhiEndcap()->Fill(leadjphi);
966 v.getMEhisto_DenominatorEtaForward()->Fill(leadjeta);
967 v.getMEhisto_DenominatorPhiForward()->Fill(leadjphi);
969 if ((leadjpt > trigLowpTcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))) {
970 v.getMEhisto_DenominatorEta_LowpTcut()->Fill(leadjeta);
971 v.getMEhisto_DenominatorPhi_LowpTcut()->Fill(leadjphi);
972 v.getMEhisto_DenominatorEtaPhi_LowpTcut()->Fill(leadjeta, leadjphi);
974 if ((leadjpt > trigMedpTcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))) {
975 v.getMEhisto_DenominatorEta_MedpTcut()->Fill(leadjeta);
976 v.getMEhisto_DenominatorPhi_MedpTcut()->Fill(leadjphi);
977 v.getMEhisto_DenominatorEtaPhi_MedpTcut()->Fill(leadjeta, leadjphi);
979 if ((leadjpt > trigHighpTcut && !
isForward(leadjeta)) ||
980 (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))) {
981 v.getMEhisto_DenominatorEta_HighpTcut()->Fill(leadjeta);
982 v.getMEhisto_DenominatorPhi_HighpTcut()->Fill(leadjphi);
983 v.getMEhisto_DenominatorEtaPhi_HighpTcut()->Fill(leadjeta, leadjphi);
989 double dRmin = 99999.;
990 double dPhimin = 9999.;
991 if (
v.getPath().find(
"L1") != std::string::npos) {
993 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
996 for (
unsigned short ki : kl1) {
997 double dR =
deltaR(toc[ki].
eta(), toc[ki].
phi(), leadjeta, leadjphi);
1005 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1008 auto kj = khlt.begin();
1009 for (; kj != khlt.end(); ++kj) {
1010 double dR =
deltaR(toc[*kj].
eta(), toc[*kj].
phi(), leadjeta, leadjphi);
1015 if (
dPhi < dPhimin) {
1020 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1021 v.getMEhisto_DeltaR()->Fill(
dRmin);
1024 if (
dRmin < 0.1 || (
v.getPath().find(
"L1") != std::string::npos &&
dRmin < 0.4)) {
1025 v.getMEhisto_NumeratorPt()->Fill(leadjpt);
1027 v.getMEhisto_NumeratorPtBarrel()->Fill(leadjpt);
1029 v.getMEhisto_NumeratorPtEndcap()->Fill(leadjpt);
1031 v.getMEhisto_NumeratorPtForward()->Fill(leadjpt);
1032 v.getMEhisto_NumeratorEta()->Fill(leadjeta);
1033 v.getMEhisto_NumeratorPhi()->Fill(leadjphi);
1034 v.getMEhisto_NumeratorEtaPhi()->Fill(leadjeta, leadjphi);
1036 v.getMEhisto_NumeratorEtaBarrel()->Fill(leadjeta);
1037 v.getMEhisto_NumeratorPhiBarrel()->Fill(leadjphi);
1040 v.getMEhisto_NumeratorEtaEndcap()->Fill(leadjeta);
1041 v.getMEhisto_NumeratorPhiEndcap()->Fill(leadjphi);
1044 v.getMEhisto_NumeratorEtaForward()->Fill(leadjeta);
1045 v.getMEhisto_NumeratorPhiForward()->Fill(leadjphi);
1047 if ((leadjpt > trigLowpTcut && !
isForward(leadjeta)) ||
1048 (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))) {
1049 v.getMEhisto_NumeratorEta_LowpTcut()->Fill(leadjeta);
1050 v.getMEhisto_NumeratorPhi_LowpTcut()->Fill(leadjphi);
1051 v.getMEhisto_NumeratorEtaPhi_LowpTcut()->Fill(leadjeta, leadjphi);
1053 if ((leadjpt > trigMedpTcut && !
isForward(leadjeta)) ||
1054 (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))) {
1055 v.getMEhisto_NumeratorEta_MedpTcut()->Fill(leadjeta);
1056 v.getMEhisto_NumeratorPhi_MedpTcut()->Fill(leadjphi);
1057 v.getMEhisto_NumeratorEtaPhi_MedpTcut()->Fill(leadjeta, leadjphi);
1059 if ((leadjpt > trigHighpTcut && !
isForward(leadjeta)) ||
1060 (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))) {
1061 v.getMEhisto_NumeratorEta_HighpTcut()->Fill(leadjeta);
1062 v.getMEhisto_NumeratorPhi_HighpTcut()->Fill(leadjphi);
1063 v.getMEhisto_NumeratorEtaPhi_HighpTcut()->Fill(leadjeta, leadjphi);
1070 if (jetIDbool ==
true && (
v.getTriggerType() ==
"DiJet_Trigger") &&
calojet.size() > 1) {
1075 if (numpassed ==
true) {
1085 std::cout <<
"fillMEforEffAllTrigger: PFJet -------------------" << std::endl;
1090 bool jetIDbool =
false;
1109 if ((
v.getTriggerType() ==
"SingleJet_Trigger") && !
pfjet.empty()) {
1112 _pfMHT =
sqrt(pfMHTx * pfMHTx + pfMHTy * pfMHTy);
1113 v.getMEhisto_DenominatorPFMHT()->Fill(
_pfMHT);
1118 cout <<
"Passed PFJet ID -------------------" << endl;
1120 v.getMEhisto_DenominatorPFPt()->Fill(leadjpt);
1122 v.getMEhisto_DenominatorPFPtBarrel()->Fill(leadjpt);
1124 v.getMEhisto_DenominatorPFPtEndcap()->Fill(leadjpt);
1126 v.getMEhisto_DenominatorPFPtForward()->Fill(leadjpt);
1127 v.getMEhisto_DenominatorPFEta()->Fill(leadjeta);
1128 v.getMEhisto_DenominatorPFPhi()->Fill(leadjphi);
1129 v.getMEhisto_DenominatorPFEtaPhi()->Fill(leadjeta, leadjphi);
1131 v.getMEhisto_DenominatorPFEtaBarrel()->Fill(leadjeta);
1132 v.getMEhisto_DenominatorPFPhiBarrel()->Fill(leadjphi);
1135 v.getMEhisto_DenominatorPFEtaEndcap()->Fill(leadjeta);
1136 v.getMEhisto_DenominatorPFPhiEndcap()->Fill(leadjphi);
1139 v.getMEhisto_DenominatorPFEtaForward()->Fill(leadjeta);
1140 v.getMEhisto_DenominatorPFPhiForward()->Fill(leadjphi);
1142 if ((leadjpt > trigLowpTPFcut && !
isForward(leadjeta)) ||
1143 (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))) {
1144 v.getMEhisto_DenominatorPFEta_LowpTcut()->Fill(leadjeta);
1145 v.getMEhisto_DenominatorPFPhi_LowpTcut()->Fill(leadjphi);
1146 v.getMEhisto_DenominatorPFEtaPhi_LowpTcut()->Fill(leadjeta, leadjphi);
1148 if ((leadjpt > trigMedpTPFcut && !
isForward(leadjeta)) ||
1149 (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))) {
1150 v.getMEhisto_DenominatorPFEta_MedpTcut()->Fill(leadjeta);
1151 v.getMEhisto_DenominatorPFPhi_MedpTcut()->Fill(leadjphi);
1152 v.getMEhisto_DenominatorPFEtaPhi_MedpTcut()->Fill(leadjeta, leadjphi);
1154 if ((leadjpt > trigHighpTPFcut && !
isForward(leadjeta)) ||
1155 (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))) {
1156 v.getMEhisto_DenominatorPFEta_HighpTcut()->Fill(leadjeta);
1157 v.getMEhisto_DenominatorPFPhi_HighpTcut()->Fill(leadjphi);
1158 v.getMEhisto_DenominatorPFEtaPhi_HighpTcut()->Fill(leadjeta, leadjphi);
1163 double dRmin = 99999.;
1164 double dPhimin = 9999.;
1165 if (
v.getPath().find(
"L1") != std::string::npos) {
1167 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1170 for (
unsigned short ki : kl1) {
1171 double dR =
deltaR(toc[ki].
eta(), toc[ki].
phi(), leadjeta, leadjphi);
1179 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1182 for (
unsigned short kj : khlt) {
1183 double dR =
deltaR(toc[kj].
eta(), toc[kj].
phi(), leadjeta, leadjphi);
1188 if (
dPhi < dPhimin) {
1192 v.getMEhisto_PFDeltaPhi()->Fill(dPhimin);
1193 v.getMEhisto_PFDeltaR()->Fill(
dRmin);
1196 if (
dRmin < 0.1 || (
v.getPath().find(
"L1") != std::string::npos &&
dRmin < 0.4)) {
1197 v.getMEhisto_NumeratorPFPt()->Fill(leadjpt);
1199 v.getMEhisto_NumeratorPFPtBarrel()->Fill(leadjpt);
1201 v.getMEhisto_NumeratorPFPtEndcap()->Fill(leadjpt);
1203 v.getMEhisto_NumeratorPFPtForward()->Fill(leadjpt);
1204 v.getMEhisto_NumeratorPFEta()->Fill(leadjeta);
1205 v.getMEhisto_NumeratorPFPhi()->Fill(leadjphi);
1206 v.getMEhisto_NumeratorPFEtaPhi()->Fill(leadjeta, leadjphi);
1208 v.getMEhisto_NumeratorPFEtaBarrel()->Fill(leadjeta);
1209 v.getMEhisto_NumeratorPFPhiBarrel()->Fill(leadjphi);
1212 v.getMEhisto_NumeratorPFEtaEndcap()->Fill(leadjeta);
1213 v.getMEhisto_NumeratorPFPhiEndcap()->Fill(leadjphi);
1216 v.getMEhisto_NumeratorPFEtaForward()->Fill(leadjeta);
1217 v.getMEhisto_NumeratorPFPhiForward()->Fill(leadjphi);
1219 if ((leadjpt > trigLowpTPFcut && !
isForward(leadjeta)) ||
1220 (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))) {
1221 v.getMEhisto_NumeratorPFEta_LowpTcut()->Fill(leadjeta);
1222 v.getMEhisto_NumeratorPFPhi_LowpTcut()->Fill(leadjphi);
1223 v.getMEhisto_NumeratorPFEtaPhi_LowpTcut()->Fill(leadjeta, leadjphi);
1225 if ((leadjpt > trigMedpTPFcut && !
isForward(leadjeta)) ||
1226 (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))) {
1227 v.getMEhisto_NumeratorPFEta_MedpTcut()->Fill(leadjeta);
1228 v.getMEhisto_NumeratorPFPhi_MedpTcut()->Fill(leadjphi);
1229 v.getMEhisto_NumeratorPFEtaPhi_MedpTcut()->Fill(leadjeta, leadjphi);
1231 if ((leadjpt > trigHighpTPFcut && !
isForward(leadjeta)) ||
1232 (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))) {
1233 v.getMEhisto_NumeratorPFEta_HighpTcut()->Fill(leadjeta);
1234 v.getMEhisto_NumeratorPFPhi_HighpTcut()->Fill(leadjphi);
1235 v.getMEhisto_NumeratorPFEtaPhi_HighpTcut()->Fill(leadjeta, leadjphi);
1241 if (jetIDbool ==
true && (
v.getTriggerType() ==
"DiJet_Trigger") &&
pfjet.size() > 1) {
1258 std::cout <<
"fillMEforEffAllTrigger: CaloMET -------------------" << std::endl;
1261 (
v.getPath().find(
"HLT_PFMET") == std::string::npos)) {
1264 v.getMEhisto_DenominatorPt()->Fill(
met.et());
1265 v.getMEhisto_DenominatorPhi()->Fill(
met.phi());
1267 v.getMEhisto_NumeratorPt()->Fill(
met.et());
1268 v.getMEhisto_NumeratorPhi()->Fill(
met.phi());
1270 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1272 double dPhimin = 9999.;
1274 for (
unsigned short kj : khlt) {
1276 if (
dPhi < dPhimin) {
1280 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1287 std::cout <<
"fillMEforEffAllTrigger: PFMET -------------------" << std::endl;
1290 (
v.getPath().find(
"HLT_PFMET") != std::string::npos)) {
1292 const PFMET met = pfmetcol->front();
1293 v.getMEhisto_DenominatorPt()->Fill(
met.et());
1294 v.getMEhisto_DenominatorPhi()->Fill(
met.phi());
1296 v.getMEhisto_NumeratorPt()->Fill(
met.et());
1297 v.getMEhisto_NumeratorPhi()->Fill(
met.phi());
1299 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1301 double dPhimin = 9999.;
1303 for (
unsigned short kj : khlt) {
1305 if (
dPhi < dPhimin) {
1309 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1332 LogDebug(
"HLTJetMETDQMSource") <<
"HLTConfigProvider failed to initialize.";
1346 for (
unsigned int i = 0;
i !=
n; ++
i) {
1347 bool denomFound =
false;
1348 bool numFound =
false;
1355 for (; controlPathname !=
pathFilter_.end(); ++controlPathname) {
1356 if (
pathname.find((*controlPathname)) != std::string::npos) {
1367 if (
pathname.find((*rejectPathname)) != std::string::npos) {
1381 unsigned int usedPrescale = 1;
1382 unsigned int objectType = 0;
1387 if (
pathname.find(
"Jet") != std::string::npos && !(
pathname.find(
"DoubleJet") != std::string::npos) &&
1388 !(
pathname.find(
"DiJet") != std::string::npos) && !(
pathname.find(
"DiPFJet") != std::string::npos) &&
1389 !(
pathname.find(
"BTag") != std::string::npos) && !(
pathname.find(
"Mu") != std::string::npos) &&
1390 !(
pathname.find(
"Fwd") != std::string::npos)) {
1394 if (
pathname.find(
"DiJet") != std::string::npos ||
pathname.find(
"DiPFJet") != std::string::npos ||
1395 pathname.find(
"DoubleJet") != std::string::npos) {
1399 if (
pathname.find(
"MET") != std::string::npos) {
1403 if (
pathname.find(
"HT") != std::string::npos) {
1410 !(
pathname.find(
"DiPFJet") != std::string::npos) && !(
pathname.find(
"DoubleJet") != std::string::npos)) {
1418 ((
pathname.find(
"DiJet") != std::string::npos) || (
pathname.find(
"DiPFJet") != std::string::npos))) {
1445 for (
unsigned int i = 0;
i !=
n; ++
i) {
1449 if (HLTname == dpathname)
1458 for (
auto& numpathmodule : numpathmodules) {
1467 filtername = numpathmodule;
1471 if (objectType != 0 && denomFound) {
1473 for (
auto& numpathmodule : numpathmodules) {
1482 Denomfiltername = numpathmodule;
1486 if (objectType != 0 && numFound) {
1488 cout <<
"=Pathname= " <<
pathname <<
" | =Denompath= " << dpathname <<
" | =Filtername= " << filtername
1489 <<
" | =Denomfiltername= " << Denomfiltername <<
" | =L1pathname= " << l1pathname
1490 <<
" | =ObjectType= " << objectType << endl;
1491 if (!((
pathname.find(
"HT") != std::string::npos) || (
pathname.find(
"Quad") != std::string::npos))) {
1525 cout <<
"get names for efficicncy------------------" << endl;
1530 unsigned int usedPrescale = 1;
1531 unsigned int objectType = 0;
1537 std::string dpathname = custompathnamepair.second;
1538 bool numFound =
false;
1539 bool denomFound =
false;
1541 for (
unsigned int i = 0;
i !=
n; ++
i) {
1543 if (HLTname.find(
pathname) != std::string::npos) {
1547 if (HLTname.find(dpathname) != std::string::npos) {
1549 dpathname = HLTname;
1552 if (numFound && denomFound) {
1553 if (
pathname.find(
"Jet") != std::string::npos && !(
pathname.find(
"DiJet") != std::string::npos) &&
1554 !(
pathname.find(
"DiPFJet") != std::string::npos) && !(
pathname.find(
"DoubleJet") != std::string::npos) &&
1555 !(
pathname.find(
"BTag") != std::string::npos) && !(
pathname.find(
"Mu") != std::string::npos) &&
1556 !(
pathname.find(
"Fwd") != std::string::npos)) {
1560 if (
pathname.find(
"DiJet") != std::string::npos ||
pathname.find(
"DiPFJet") != std::string::npos ||
1561 pathname.find(
"DoubleJet") != std::string::npos) {
1565 if (
pathname.find(
"MET") != std::string::npos) {
1569 if (
pathname.find(
"TET") != std::string::npos) {
1576 for (
auto& numpathmodule : numpathmodules) {
1585 filtername = numpathmodule;
1588 if (objectType != 0) {
1590 for (
auto& numpathmodule : numpathmodules) {
1599 Denomfiltername = numpathmodule;
1603 cout <<
"==pathname==" <<
pathname <<
"==denompath==" << dpathname <<
"==filtername==" << filtername
1604 <<
"==denomfiltername==" << Denomfiltername <<
"==l1pathname==" << l1pathname
1605 <<
"==objectType==" << objectType << endl;
1621 cout <<
"== end hltPathsEff_.push_back ======" << endl;
1637 double TrigMin_ = -0.5;
1641 std::string histot =
"JetMET TriggerRate Summary";
1642 rate_All = iBooker.
book1D(histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_);
1644 histonm =
"JetMET_TriggerRate_Correlation";
1645 histot =
"JetMET TriggerRate Correlation Summary;y&&!x;x&&y";
1647 iBooker.
book2D(histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_, TrigBins_, TrigMin_, TrigMax_);
1649 histonm =
"JetMET_NVertices";
1650 histot =
"No. of vertices";
1651 NVertices = iBooker.
book1D(histonm.c_str(), histot.c_str(), 100, 0, 50);
1653 histonm =
"JetMET_PVZ";
1654 histot =
"Primary Vertex Z pos";
1655 PVZ = iBooker.
book1D(histonm.c_str(), histot.c_str(), 100, -50., 50.);
1658 histonm =
"JetMET_TriggerRate_WrtMuTrigger";
1659 histot =
"JetMET TriggerRate Summary Wrt Muon Trigger ";
1660 rate_AllWrtMu = iBooker.
book1D(histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_);
1662 histonm =
"JetMET_TriggerRate_Correlation_WrtMuTrigger";
1663 histot =
"JetMET TriggerRate Correlation Summary Wrt Muon Trigger;y&&!x;x&&y";
1665 histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_, TrigBins_, TrigMin_, TrigMax_);
1667 histonm =
"JetMET_TriggerRate_WrtMBTrigger";
1668 histot =
"JetMET TriggerRate Summary Wrt MB Trigger";
1669 rate_AllWrtMB = iBooker.
book1D(histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_);
1671 histonm =
"JetMET_TriggerRate_Correlation_WrtMBTrigger";
1672 histot =
"JetMET TriggerRate Correlation Wrt MB Trigger;y&&!x;x&&y";
1674 histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_, TrigBins_, TrigMin_, TrigMax_);
1682 labelnm =
v.getPath();
1684 for (
int ibin = 1; ibin <
nbins + 1; ibin++) {
1685 const char* binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
1687 if (binLabel_str == labelnm)
1689 if (binLabel[0] ==
'\0') {
1710 double Nmin_ = -0.5;
1717 double PtMax_ = 1000.;
1722 double EtaMin_ = -5.;
1723 double EtaMax_ = 5.;
1726 double PhiMin_ = -3.5;
1727 double PhiMax_ = 3.5;
1730 double ResMin_ = -1.5;
1731 double ResMax_ = 1.5;
1749 histoname = labelname +
"_recObjN";
1750 title = labelname +
"_recObjN;Reco multiplicity()" + trigPath;
1754 histoname = labelname +
"_recObjPt";
1755 title = labelname +
"_recObjPt; Reco Pt[GeV/c]" + trigPath;
1759 histoname = labelname +
"_recObjPtBarrel";
1760 title = labelname +
"_recObjPtBarrel;Reco Pt[GeV/c]" + trigPath;
1764 histoname = labelname +
"_recObjPtEndcap";
1765 title = labelname +
"_recObjPtEndcap;Reco Pt[GeV/c]" + trigPath;
1769 histoname = labelname +
"_recObjPtForward";
1770 title = labelname +
"_recObjPtForward;Reco Pt[GeV/c]" + trigPath;
1774 histoname = labelname +
"_recObjEta";
1775 title = labelname +
"_recObjEta;Reco #eta" + trigPath;
1779 histoname = labelname +
"_recObjPhi";
1780 title = labelname +
"_recObjPhi;Reco #Phi" + trigPath;
1784 histoname = labelname +
"_recObjEtaPhi";
1785 title = labelname +
"_recObjEtaPhi;Reco #eta;Reco #Phi" + trigPath;
1787 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
1790 histoname = labelname +
"_l1ObjPt";
1791 title = labelname +
"_l1ObjPt;L1 Pt[GeV/c]" + trigPath;
1795 histoname = labelname +
"_l1ObjEta";
1796 title = labelname +
"_l1ObjEta;L1 #eta" + trigPath;
1800 histoname = labelname +
"_l1ObjPhi";
1801 title = labelname +
"_l1ObjPhi;L1 #Phi" + trigPath;
1805 histoname = labelname +
"_l1ObjEtaPhi";
1806 title = labelname +
"_l1ObjEtaPhi;L1 #eta;L1 #Phi" + trigPath;
1808 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
1811 histoname = labelname +
"_l1ObjN";
1812 title = labelname +
"_l1ObjN;L1 multiplicity" + trigPath;
1816 histoname = labelname +
"_l1ObjPtBarrel";
1817 title = labelname +
"_l1ObjPtBarrel;L1 Pt[GeV/c]" + trigPath;
1821 histoname = labelname +
"_l1ObjPtEndcap";
1822 title = labelname +
"_l1ObjPtEndcap;L1 Pt[GeV/c]" + trigPath;
1826 histoname = labelname +
"_l1ObjPtForward";
1827 title = labelname +
"_l1ObjPtForward;L1 Pt[GeV/c]" + trigPath;
1831 histoname = labelname +
"_hltObjN";
1832 title = labelname +
"_hltObjN;HLT multiplicity" + trigPath;
1836 histoname = labelname +
"_hltObjPtBarrel";
1837 title = labelname +
"_hltObjPtBarrel;HLT Pt[GeV/c]" + trigPath;
1841 histoname = labelname +
"_hltObjPtEndcap";
1842 title = labelname +
"_hltObjPtEndcap;HLT Pt[GeV/c]" + trigPath;
1846 histoname = labelname +
"_hltObjPtForward";
1847 title = labelname +
"_hltObjPtForward;HLT Pt[GeV/c]" + trigPath;
1851 histoname = labelname +
"_hltObjPt";
1852 title = labelname +
"_hltObjPt;HLT Pt[GeV/c]" + trigPath;
1856 histoname = labelname +
"_hltObjEta";
1857 title = labelname +
"_hltObjEta;HLT #eta" + trigPath;
1861 histoname = labelname +
"_hltObjPhi";
1862 title = labelname +
"_hltObjPhi;HLT #Phi" + trigPath;
1866 histoname = labelname +
"_hltObjEtaPhi";
1867 title = labelname +
"_hltObjEtaPhi;HLT #eta;HLT #Phi" + trigPath;
1869 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
1872 histoname = labelname +
"_l1HLTPtResolution";
1873 title = labelname +
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)" + trigPath;
1875 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1876 PtResolution_L1HLT->
getTH1();
1878 histoname = labelname +
"_l1HLTEtaResolution";
1879 title = labelname +
"_l1HLTEtaResolution;#eta(L1)-#eta(HLT)" + trigPath;
1881 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1882 EtaResolution_L1HLT->
getTH1();
1884 histoname = labelname +
"_l1HLTPhiResolution";
1885 title = labelname +
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)" + trigPath;
1887 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1888 PhiResolution_L1HLT->
getTH1();
1890 histoname = labelname +
"_l1HLTPtCorrelation";
1891 title = labelname +
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]" + trigPath;
1893 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
1894 PtCorrelation_L1HLT->
getTH1();
1896 histoname = labelname +
"_l1HLTEtaCorrelation";
1897 title = labelname +
"_l1HLTEtaCorrelation;#eta(L1);#eta(HLT)" + trigPath;
1899 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Etabins_, EtaMin_, EtaMax_);
1900 EtaCorrelation_L1HLT->
getTH1();
1902 histoname = labelname +
"_l1HLTPhiCorrelation";
1903 title = labelname +
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)" + trigPath;
1905 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Phibins_, PhiMin_, PhiMax_);
1906 PhiCorrelation_L1HLT->
getTH1();
1908 histoname = labelname +
"_hltRecObjPtResolution";
1909 title = labelname +
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)" + trigPath;
1911 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1912 PtResolution_HLTRecObj->
getTH1();
1914 histoname = labelname +
"_hltRecObjEtaResolution";
1915 title = labelname +
"_hltRecObjEtaResolution;#eta(HLT)-#eta(Reco)" + trigPath;
1917 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1918 EtaResolution_HLTRecObj->
getTH1();
1920 histoname = labelname +
"_hltRecObjPhiResolution";
1921 title = labelname +
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)" + trigPath;
1923 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1924 PhiResolution_HLTRecObj->
getTH1();
1926 histoname = labelname +
"_hltRecObjPtCorrelation";
1927 title = labelname +
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]" + trigPath;
1929 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
1930 PtCorrelation_HLTRecObj->
getTH1();
1932 histoname = labelname +
"_hltRecObjEtaCorrelation";
1933 title = labelname +
"_hltRecObjEtaCorrelation;#eta(HLT);#eta(Reco)" + trigPath;
1935 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Etabins_, EtaMin_, EtaMax_);
1936 EtaCorrelation_HLTRecObj->
getTH1();
1938 histoname = labelname +
"_hltRecObjPhiCorrelation";
1939 title = labelname +
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)" + trigPath;
1941 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Phibins_, PhiMin_, PhiMax_);
1942 PhiCorrelation_HLTRecObj->
getTH1();
1969 EtaResolution_L1HLT,
1970 PhiResolution_L1HLT,
1971 PtResolution_HLTRecObj,
1972 EtaResolution_HLTRecObj,
1973 PhiResolution_HLTRecObj,
1974 PtCorrelation_L1HLT,
1975 EtaCorrelation_L1HLT,
1976 PhiCorrelation_L1HLT,
1977 PtCorrelation_HLTRecObj,
1978 EtaCorrelation_HLTRecObj,
1979 PhiCorrelation_HLTRecObj,
1992 histoname = labelname +
"_RecObjAveragePt";
1993 title = labelname +
"_RecObjAveragePt;Reco Average Pt[GeV/c]" + trigPath;
1997 histoname = labelname +
"_RecObjAverageEta";
1998 title = labelname +
"_RecObjAverageEta;Reco Average #eta" + trigPath;
2002 histoname = labelname +
"_RecObjPhiDifference";
2003 title = labelname +
"_RecObjPhiDifference;Reco #Delta#Phi" + trigPath;
2005 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2006 jetPhiDifference->
getTH1();
2008 histoname = labelname +
"_hltObjAveragePt";
2009 title = labelname +
"_hltObjAveragePt;HLT Average Pt[GeV/c]" + trigPath;
2013 histoname = labelname +
"_hltObjAverageEta";
2014 title = labelname +
"_hltObjAverageEta;HLT Average #eta" + trigPath;
2018 histoname = labelname +
"_hltObjPhiDifference";
2019 title = labelname +
"_hltObjPhiDifference;Reco #Delta#Phi" + trigPath;
2021 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2022 hltPhiDifference->
getTH1();
2072 histoname = labelname +
"_recObjPt";
2073 title = labelname +
"_recObjPt;Reco Pt[GeV/c]" + trigPath;
2077 histoname = labelname +
"_recObjPhi";
2078 title = labelname +
"_recObjPhi;Reco #Phi" + trigPath;
2082 histoname = labelname +
"_l1ObjPt";
2083 title = labelname +
"_l1ObjPt;L1 Pt[GeV/c]" + trigPath;
2087 histoname = labelname +
"_l1ObjPhi";
2088 title = labelname +
"_l1ObjPhi;L1 #Phi" + trigPath;
2092 histoname = labelname +
"_hltObjPt";
2093 title = labelname +
"_hltObjPt;HLT Pt[GeV/c]" + trigPath;
2097 histoname = labelname +
"_hltObjPhi";
2098 title = labelname +
"_hltObjPhi;HLT #Phi" + trigPath;
2102 histoname = labelname +
"_l1HLTPtResolution";
2103 title = labelname +
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)" + trigPath;
2105 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
2106 PtResolution_L1HLT->
getTH1();
2108 histoname = labelname +
"_l1HLTPhiResolution";
2109 title = labelname +
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)" + trigPath;
2111 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
2112 PhiResolution_L1HLT->
getTH1();
2114 histoname = labelname +
"_l1HLTPtCorrelation";
2115 title = labelname +
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]" + trigPath;
2117 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
2118 PtCorrelation_L1HLT->
getTH1();
2120 histoname = labelname +
"_l1HLTPhiCorrelation";
2121 title = labelname +
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)" + trigPath;
2123 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Phibins_, PhiMin_, PhiMax_);
2124 PhiCorrelation_L1HLT->
getTH1();
2126 histoname = labelname +
"_hltRecObjPtResolution";
2127 title = labelname +
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)" + trigPath;
2129 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
2130 PtResolution_HLTRecObj->
getTH1();
2132 histoname = labelname +
"_hltRecObjPhiResolution";
2133 title = labelname +
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)" + trigPath;
2135 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
2136 PhiResolution_HLTRecObj->
getTH1();
2138 histoname = labelname +
"_hltRecObjPtCorrelation";
2139 title = labelname +
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]" + trigPath;
2141 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
2142 PtCorrelation_HLTRecObj->
getTH1();
2144 histoname = labelname +
"_hltRecObjPhiCorrelation";
2145 title = labelname +
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)" + trigPath;
2147 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Phibins_, PhiMin_, PhiMax_);
2148 PhiCorrelation_HLTRecObj->
getTH1();
2176 PhiResolution_L1HLT,
2177 PtResolution_HLTRecObj,
2179 PhiResolution_HLTRecObj,
2180 PtCorrelation_L1HLT,
2182 PhiCorrelation_L1HLT,
2183 PtCorrelation_HLTRecObj,
2185 PhiCorrelation_HLTRecObj,
2205 double PtMax_ = 1000.;
2208 double EtaMin_ = -5.;
2209 double EtaMax_ = 5.;
2212 double PhiMin_ = -3.5;
2213 double PhiMax_ = 3.5;
2222 std::string subdirName = dirName1 + trgPathName +
"_wrt_" + trgPathNameD;
2232 histoname = labelname +
"_NumeratorPt";
2233 title = labelname +
"NumeratorPt;Calo Pt[GeV/c]";
2237 histoname = labelname +
"_NumeratorPtBarrel";
2238 title = labelname +
"NumeratorPtBarrel;Calo Pt[GeV/c] ";
2240 NumeratorPtBarrel->
getTH1();
2242 histoname = labelname +
"_NumeratorPtEndcap";
2243 title = labelname +
"NumeratorPtEndcap;Calo Pt[GeV/c]";
2245 NumeratorPtEndcap->
getTH1();
2247 histoname = labelname +
"_NumeratorPtForward";
2248 title = labelname +
"NumeratorPtForward;Calo Pt[GeV/c]";
2250 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2251 NumeratorPtForward->
getTH1();
2253 histoname = labelname +
"_NumeratorEta";
2254 title = labelname +
"NumeratorEta;Calo #eta ";
2258 histoname = labelname +
"_NumeratorPhi";
2259 title = labelname +
"NumeratorPhi;Calo #Phi";
2263 histoname = labelname +
"_NumeratorEtaPhi";
2264 title = labelname +
"NumeratorEtaPhi;Calo #eta;Calo #Phi";
2266 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2267 NumeratorEtaPhi->
getTH1();
2269 histoname = labelname +
"_NumeratorEtaBarrel";
2270 title = labelname +
"NumeratorEtaBarrel;Calo #eta ";
2272 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2273 NumeratorEtaBarrel->
getTH1();
2275 histoname = labelname +
"_NumeratorPhiBarrel";
2276 title = labelname +
"NumeratorPhiBarrel;Calo #Phi";
2278 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2279 NumeratorPhiBarrel->
getTH1();
2281 histoname = labelname +
"_NumeratorEtaEndcap";
2282 title = labelname +
"NumeratorEtaEndcap;Calo #eta ";
2284 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2285 NumeratorEtaEndcap->
getTH1();
2287 histoname = labelname +
"_NumeratorPhiEndcap";
2288 title = labelname +
"NumeratorPhiEndcap;Calo #Phi";
2290 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2291 NumeratorPhiEndcap->
getTH1();
2293 histoname = labelname +
"_NumeratorEtaForward";
2294 title = labelname +
"NumeratorEtaForward;Calo #eta ";
2296 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2297 NumeratorEtaForward->
getTH1();
2299 histoname = labelname +
"_NumeratorPhiForward";
2300 title = labelname +
"NumeratorPhiForward;Calo #Phi";
2302 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2303 NumeratorPhiForward->
getTH1();
2305 histoname = labelname +
"_NumeratorEta_LowpTcut";
2306 title = labelname +
"NumeratorEta_LowpTcut;Calo #eta ";
2308 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2309 NumeratorEta_LowpTcut->
getTH1();
2311 histoname = labelname +
"_NumeratorPhi_LowpTcut";
2312 title = labelname +
"NumeratorPhi_LowpTcut;Calo #Phi";
2314 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2315 NumeratorPhi_LowpTcut->
getTH1();
2317 histoname = labelname +
"_NumeratorEtaPhi_LowpTcut";
2318 title = labelname +
"NumeratorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2320 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2321 NumeratorEtaPhi_LowpTcut->
getTH1();
2323 histoname = labelname +
"_NumeratorEta_MedpTcut";
2324 title = labelname +
"NumeratorEta_MedpTcut;Calo #eta ";
2326 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2327 NumeratorEta_MedpTcut->
getTH1();
2329 histoname = labelname +
"_NumeratorPhi_MedpTcut";
2330 title = labelname +
"NumeratorPhi_MedpTcut;Calo #Phi";
2332 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2333 NumeratorPhi_MedpTcut->
getTH1();
2335 histoname = labelname +
"_NumeratorEtaPhi_MedpTcut";
2336 title = labelname +
"NumeratorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2338 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2339 NumeratorEtaPhi_MedpTcut->
getTH1();
2341 histoname = labelname +
"_NumeratorEta_HighpTcut";
2342 title = labelname +
"NumeratorEta_HighpTcut;Calo #eta ";
2344 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2345 NumeratorEta_HighpTcut->
getTH1();
2347 histoname = labelname +
"_NumeratorPhi_HighpTcut";
2348 title = labelname +
"NumeratorPhi_HighpTcut;Calo #Phi";
2350 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2351 NumeratorPhi_HighpTcut->
getTH1();
2353 histoname = labelname +
"_NumeratorEtaPhi_HighpTcut";
2354 title = labelname +
"NumeratorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2356 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2357 NumeratorEtaPhi_HighpTcut->
getTH1();
2359 histoname = labelname +
"_DenominatorPt";
2360 title = labelname +
"DenominatorPt;Calo Pt[GeV/c]";
2364 histoname = labelname +
"_DenominatorPtBarrel";
2365 title = labelname +
"DenominatorPtBarrel;Calo Pt[GeV/c]";
2367 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2368 DenominatorPtBarrel->
getTH1();
2370 histoname = labelname +
"_DenominatorPtEndcap";
2371 title = labelname +
"DenominatorPtEndcap;Calo Pt[GeV/c]";
2373 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2374 DenominatorPtEndcap->
getTH1();
2376 histoname = labelname +
"_DenominatorPtForward";
2377 title = labelname +
"DenominatorPtForward;Calo Pt[GeV/c] ";
2379 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2380 DenominatorPtForward->
getTH1();
2382 histoname = labelname +
"_DenominatorEta";
2383 title = labelname +
"DenominatorEta;Calo #eta ";
2385 DenominatorEta->
getTH1();
2387 histoname = labelname +
"_DenominatorPhi";
2388 title = labelname +
"DenominatorPhi;Calo #Phi";
2390 DenominatorPhi->
getTH1();
2392 histoname = labelname +
"_DenominatorEtaPhi";
2393 title = labelname +
"DenominatorEtaPhi;Calo #eta; Calo #Phi";
2395 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2396 DenominatorEtaPhi->
getTH1();
2398 histoname = labelname +
"_DenominatorEtaBarrel";
2399 title = labelname +
"DenominatorEtaBarrel;Calo #eta ";
2401 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2402 DenominatorEtaBarrel->
getTH1();
2404 histoname = labelname +
"_DenominatorPhiBarrel";
2405 title = labelname +
"DenominatorPhiBarrel;Calo #Phi";
2407 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2408 DenominatorPhiBarrel->
getTH1();
2410 histoname = labelname +
"_DenominatorEtaEndcap";
2411 title = labelname +
"DenominatorEtaEndcap;Calo #eta ";
2413 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2414 DenominatorEtaEndcap->
getTH1();
2416 histoname = labelname +
"_DenominatorPhiEndcap";
2417 title = labelname +
"DenominatorPhiEndcap;Calo #Phi";
2419 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2420 DenominatorPhiEndcap->
getTH1();
2422 histoname = labelname +
"_DenominatorEtaForward";
2423 title = labelname +
"DenominatorEtaForward;Calo #eta ";
2425 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2426 DenominatorEtaForward->
getTH1();
2428 histoname = labelname +
"_DenominatorPhiForward";
2429 title = labelname +
"DenominatorPhiForward;Calo #Phi";
2431 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2432 DenominatorPhiForward->
getTH1();
2434 histoname = labelname +
"_DenominatorEta_LowpTcut";
2435 title = labelname +
"DenominatorEta_LowpTcut;Calo #eta ";
2437 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2438 DenominatorEta_LowpTcut->
getTH1();
2440 histoname = labelname +
"_DenominatorPhi_LowpTcut";
2441 title = labelname +
"DenominatorPhi_LowpTcut;Calo #Phi";
2443 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2444 DenominatorPhi_LowpTcut->
getTH1();
2446 histoname = labelname +
"_DenominatorEtaPhi_LowpTcut";
2447 title = labelname +
"DenominatorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2449 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2450 DenominatorEtaPhi_LowpTcut->
getTH1();
2452 histoname = labelname +
"_DenominatorEta_MedpTcut";
2453 title = labelname +
"DenominatorEta_MedpTcut;Calo #eta ";
2455 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2456 DenominatorEta_MedpTcut->
getTH1();
2458 histoname = labelname +
"_DenominatorPhi_MedpTcut";
2459 title = labelname +
"DenominatorPhi_MedpTcut;Calo #Phi";
2461 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2462 DenominatorPhi_MedpTcut->
getTH1();
2464 histoname = labelname +
"_DenominatorEtaPhi_MedpTcut";
2465 title = labelname +
"DenominatorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2467 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2468 DenominatorEtaPhi_MedpTcut->
getTH1();
2470 histoname = labelname +
"_DenominatorEta_HighpTcut";
2471 title = labelname +
"DenominatorEta_HighpTcut;Calo #eta ";
2473 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2474 DenominatorEta_HighpTcut->
getTH1();
2476 histoname = labelname +
"_DenominatorPhi_HighpTcut";
2477 title = labelname +
"DenominatorPhi_HighpTcut;Calo #Phi";
2479 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2480 DenominatorPhi_HighpTcut->
getTH1();
2482 histoname = labelname +
"_DenominatorEtaPhi_HighpTcut";
2483 title = labelname +
"DenominatorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2485 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2486 DenominatorEtaPhi_HighpTcut->
getTH1();
2488 histoname = labelname +
"_DeltaR";
2489 title = labelname +
"DeltaR;";
2493 histoname = labelname +
"_DeltaPhi";
2494 title = labelname +
"DeltaPhi;";
2498 histoname = labelname +
"_NumeratorPFMHT";
2499 title = labelname +
"NumeratorPFMHT;PFMHT[GeV/c]";
2501 NumeratorPFMHT->
getTH1();
2503 histoname = labelname +
"_NumeratorPFPt";
2504 title = labelname +
"NumeratorPFPt;PF Pt[GeV/c]";
2508 histoname = labelname +
"_NumeratorPFPtBarrel";
2509 title = labelname +
"NumeratorPFPtBarrel;PF Pt[GeV/c] ";
2511 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2512 NumeratorPFPtBarrel->
getTH1();
2514 histoname = labelname +
"_NumeratorPFPtEndcap";
2515 title = labelname +
"NumeratorPFPtEndcap;PF Pt[GeV/c]";
2517 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2518 NumeratorPFPtEndcap->
getTH1();
2520 histoname = labelname +
"_NumeratorPFPtForward";
2521 title = labelname +
"NumeratorPFPtForward;PF Pt[GeV/c]";
2523 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2524 NumeratorPFPtForward->
getTH1();
2526 histoname = labelname +
"_NumeratorPFEta";
2527 title = labelname +
"NumeratorPFEta;PF #eta ";
2529 NumeratorPFEta->
getTH1();
2531 histoname = labelname +
"_NumeratorPFPhi";
2532 title = labelname +
"NumeratorPFPhi;Calo #Phi";
2534 NumeratorPFPhi->
getTH1();
2536 histoname = labelname +
"_NumeratorPFEtaPhi";
2537 title = labelname +
"NumeratorPFEtaPhi;PF #eta;Calo #Phi";
2539 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2540 NumeratorPFEtaPhi->
getTH1();
2542 histoname = labelname +
"_NumeratorPFEtaBarrel";
2543 title = labelname +
"NumeratorPFEtaBarrel;PF #eta ";
2545 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2546 NumeratorPFEtaBarrel->
getTH1();
2548 histoname = labelname +
"_NumeratorPFPhiBarrel";
2549 title = labelname +
"NumeratorPFPhiBarrel;PF #Phi";
2551 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2552 NumeratorPFPhiBarrel->
getTH1();
2554 histoname = labelname +
"_NumeratorPFEtaEndcap";
2555 title = labelname +
"NumeratorPFEtaEndcap;Calo #eta ";
2557 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2558 NumeratorPFEtaEndcap->
getTH1();
2560 histoname = labelname +
"_NumeratorPFPhiEndcap";
2561 title = labelname +
"NumeratorPFPhiEndcap;PF #Phi";
2563 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2564 NumeratorPFPhiEndcap->
getTH1();
2566 histoname = labelname +
"_NumeratorPFEtaForward";
2567 title = labelname +
"NumeratorPFEtaForward;Calo #eta ";
2569 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2570 NumeratorPFEtaForward->
getTH1();
2572 histoname = labelname +
"_NumeratorPFPhiForward";
2573 title = labelname +
"NumeratorPFPhiForward;PF #Phi";
2575 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2576 NumeratorPFPhiForward->
getTH1();
2578 histoname = labelname +
"_NumeratorPFEta_LowpTcut";
2579 title = labelname +
"NumeratorPFEta_LowpTcut;PF #eta ";
2581 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2582 NumeratorPFEta_LowpTcut->
getTH1();
2584 histoname = labelname +
"_NumeratorPFPhi_LowpTcut";
2585 title = labelname +
"NumeratorPFPhi_LowpTcut;PF #Phi";
2587 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2588 NumeratorPFPhi_LowpTcut->
getTH1();
2590 histoname = labelname +
"_NumeratorPFEtaPhi_LowpTcut";
2591 title = labelname +
"NumeratorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2593 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2594 NumeratorPFEtaPhi_LowpTcut->
getTH1();
2596 histoname = labelname +
"_NumeratorPFEta_MedpTcut";
2597 title = labelname +
"NumeratorPFEta_MedpTcut;PF #eta ";
2599 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2600 NumeratorPFEta_MedpTcut->
getTH1();
2602 histoname = labelname +
"_NumeratorPFPhi_MedpTcut";
2603 title = labelname +
"NumeratorPFPhi_MedpTcut;PF #Phi";
2605 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2606 NumeratorPFPhi_MedpTcut->
getTH1();
2608 histoname = labelname +
"_NumeratorPFEtaPhi_MedpTcut";
2609 title = labelname +
"NumeratorPFEtaPhi_MedpTcut;PF #eta;PF #Phi";
2611 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2612 NumeratorPFEtaPhi_MedpTcut->
getTH1();
2614 histoname = labelname +
"_NumeratorPFEta_HighpTcut";
2615 title = labelname +
"NumeratorPFEta_HighpTcut;Calo #eta ";
2617 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2618 NumeratorPFEta_HighpTcut->
getTH1();
2620 histoname = labelname +
"_NumeratorPFPhi_HighpTcut";
2621 title = labelname +
"NumeratorPFPhi_HighpTcut;PF #Phi";
2623 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2624 NumeratorPFPhi_HighpTcut->
getTH1();
2626 histoname = labelname +
"_NumeratorPFEtaPhi_HighpTcut";
2627 title = labelname +
"NumeratorPFEtaPhi_HighpTcut;PF #eta;PF #Phi";
2629 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2630 NumeratorPFEtaPhi_HighpTcut->
getTH1();
2632 histoname = labelname +
"_DenominatorPFMHT";
2633 title = labelname +
"DenominatorPFMHT;PF Pt[GeV/c]";
2635 DenominatorPFMHT->
getTH1();
2637 histoname = labelname +
"_DenominatorPFPt";
2638 title = labelname +
"DenominatorPFPt;PF Pt[GeV/c]";
2640 DenominatorPFPt->
getTH1();
2642 histoname = labelname +
"_DenominatorPFPtBarrel";
2643 title = labelname +
"DenominatorPFPtBarrel;Calo Pt[GeV/c]";
2645 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2646 DenominatorPFPtBarrel->
getTH1();
2648 histoname = labelname +
"_DenominatorPFPtEndcap";
2649 title = labelname +
"DenominatorPFPtEndcap;PF Pt[GeV/c]";
2651 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2652 DenominatorPFPtEndcap->
getTH1();
2654 histoname = labelname +
"_DenominatorPFPtForward";
2655 title = labelname +
"DenominatorPFPtForward;PF Pt[GeV/c] ";
2657 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2658 DenominatorPFPtForward->
getTH1();
2660 histoname = labelname +
"_DenominatorPFEta";
2661 title = labelname +
"DenominatorPFEta;PF #eta ";
2663 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2664 DenominatorPFEta->
getTH1();
2666 histoname = labelname +
"_DenominatorPFPhi";
2667 title = labelname +
"DenominatorPFPhi;PF #Phi";
2669 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2670 DenominatorPFPhi->
getTH1();
2672 histoname = labelname +
"_DenominatorPFEtaPhi";
2673 title = labelname +
"DenominatorPFEtaPhi;PF #eta; Calo #Phi";
2675 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2676 DenominatorPFEtaPhi->
getTH1();
2678 histoname = labelname +
"_DenominatorPFEtaBarrel";
2679 title = labelname +
"DenominatorPFEtaBarrel;Calo #eta ";
2681 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2682 DenominatorPFEtaBarrel->
getTH1();
2684 histoname = labelname +
"_DenominatorPFPhiBarrel";
2685 title = labelname +
"DenominatorPFPhiBarrel;PF #Phi";
2687 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2688 DenominatorPFPhiBarrel->
getTH1();
2690 histoname = labelname +
"_DenominatorPFEtaEndcap";
2691 title = labelname +
"DenominatorPFEtaEndcap;PF #eta ";
2693 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2694 DenominatorPFEtaEndcap->
getTH1();
2696 histoname = labelname +
"_DenominatorPFPhiEndcap";
2697 title = labelname +
"DenominatorPFPhiEndcap;Calo #Phi";
2699 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2700 DenominatorPFPhiEndcap->
getTH1();
2702 histoname = labelname +
"_DenominatorPFEtaForward";
2703 title = labelname +
"DenominatorPFEtaForward;PF #eta ";
2705 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2706 DenominatorPFEtaForward->
getTH1();
2708 histoname = labelname +
"_DenominatorPFPhiForward";
2709 title = labelname +
"DenominatorPFPhiForward;PF #Phi";
2711 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2712 DenominatorPFPhiForward->
getTH1();
2714 histoname = labelname +
"_DenominatorPFEta_LowpTcut";
2715 title = labelname +
"DenominatorPFEta_LowpTcut;PF #eta ";
2717 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2718 DenominatorPFEta_LowpTcut->
getTH1();
2720 histoname = labelname +
"_DenominatorPFPhi_LowpTcut";
2721 title = labelname +
"DenominatorPFPhi_LowpTcut;PF #Phi";
2723 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2724 DenominatorPFPhi_LowpTcut->
getTH1();
2726 histoname = labelname +
"_DenominatorPFEtaPhi_LowpTcut";
2727 title = labelname +
"DenominatorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2729 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2730 DenominatorPFEtaPhi_LowpTcut->
getTH1();
2732 histoname = labelname +
"_DenominatorPFEta_MedpTcut";
2733 title = labelname +
"DenominatorPFEta_MedpTcut;PF #eta ";
2735 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2736 DenominatorPFEta_MedpTcut->
getTH1();
2738 histoname = labelname +
"_DenominatorPFPhi_MedpTcut";
2739 title = labelname +
"DenominatorPFPhi_MedpTcut;PF #Phi";
2741 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2742 DenominatorPFPhi_MedpTcut->
getTH1();
2744 histoname = labelname +
"_DenominatorPFEtaPhi_MedpTcut";
2745 title = labelname +
"DenominatorPFEtaPhi_MedpTcut;PF #eta;Calo #Phi";
2747 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2748 DenominatorPFEtaPhi_MedpTcut->
getTH1();
2750 histoname = labelname +
"_DenominatorPFEta_HighpTcut";
2751 title = labelname +
"DenominatorPFEta_HighpTcut;PF #eta ";
2753 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2754 DenominatorPFEta_HighpTcut->
getTH1();
2756 histoname = labelname +
"_DenominatorPFPhi_HighpTcut";
2757 title = labelname +
"DenominatorPFPhi_HighpTcut;PF #Phi";
2759 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2760 DenominatorPFPhi_HighpTcut->
getTH1();
2762 histoname = labelname +
"_DenominatorPFEtaPhi_HighpTcut";
2763 title = labelname +
"DenominatorPFEtaPhi_HighpTcut;PF #eta;Calo #Phi";
2765 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2766 DenominatorPFEtaPhi_HighpTcut->
getTH1();
2768 histoname = labelname +
"_PFDeltaR";
2769 title = labelname +
"PFDeltaR;";
2773 histoname = labelname +
"_PFDeltaPhi";
2774 title = labelname +
"PFDeltaPhi;";
2778 v.setEffHistos(NumeratorPt,
2790 NumeratorEtaForward,
2791 NumeratorPhiForward,
2792 NumeratorEta_LowpTcut,
2793 NumeratorPhi_LowpTcut,
2794 NumeratorEtaPhi_LowpTcut,
2795 NumeratorEta_MedpTcut,
2796 NumeratorPhi_MedpTcut,
2797 NumeratorEtaPhi_MedpTcut,
2798 NumeratorEta_HighpTcut,
2799 NumeratorPhi_HighpTcut,
2800 NumeratorEtaPhi_HighpTcut,
2803 DenominatorPtBarrel,
2804 DenominatorPtEndcap,
2805 DenominatorPtForward,
2810 DenominatorEtaBarrel,
2811 DenominatorPhiBarrel,
2812 DenominatorEtaEndcap,
2813 DenominatorPhiEndcap,
2814 DenominatorEtaForward,
2815 DenominatorPhiForward,
2816 DenominatorEta_LowpTcut,
2817 DenominatorPhi_LowpTcut,
2818 DenominatorEtaPhi_LowpTcut,
2819 DenominatorEta_MedpTcut,
2820 DenominatorPhi_MedpTcut,
2821 DenominatorEtaPhi_MedpTcut,
2822 DenominatorEta_HighpTcut,
2823 DenominatorPhi_HighpTcut,
2824 DenominatorEtaPhi_HighpTcut,
2830 NumeratorPFPtBarrel,
2831 NumeratorPFPtEndcap,
2832 NumeratorPFPtForward,
2836 NumeratorPFEtaBarrel,
2837 NumeratorPFPhiBarrel,
2838 NumeratorPFEtaEndcap,
2839 NumeratorPFPhiEndcap,
2840 NumeratorPFEtaForward,
2841 NumeratorPFPhiForward,
2842 NumeratorPFEta_LowpTcut,
2843 NumeratorPFPhi_LowpTcut,
2844 NumeratorPFEtaPhi_LowpTcut,
2845 NumeratorPFEta_MedpTcut,
2846 NumeratorPFPhi_MedpTcut,
2847 NumeratorPFEtaPhi_MedpTcut,
2848 NumeratorPFEta_HighpTcut,
2849 NumeratorPFPhi_HighpTcut,
2850 NumeratorPFEtaPhi_HighpTcut,
2853 DenominatorPFPtBarrel,
2854 DenominatorPFPtEndcap,
2855 DenominatorPFPtForward,
2858 DenominatorPFEtaPhi,
2859 DenominatorPFEtaBarrel,
2860 DenominatorPFPhiBarrel,
2861 DenominatorPFEtaEndcap,
2862 DenominatorPFPhiEndcap,
2863 DenominatorPFEtaForward,
2864 DenominatorPFPhiForward,
2865 DenominatorPFEta_LowpTcut,
2866 DenominatorPFPhi_LowpTcut,
2867 DenominatorPFEtaPhi_LowpTcut,
2868 DenominatorPFEta_MedpTcut,
2869 DenominatorPFPhi_MedpTcut,
2870 DenominatorPFEtaPhi_MedpTcut,
2871 DenominatorPFEta_HighpTcut,
2872 DenominatorPFPhi_HighpTcut,
2873 DenominatorPFEtaPhi_HighpTcut,
2880 histoname = labelname +
"_NumeratorAvrgPt";
2881 title = labelname +
"NumeratorAvrgPt;Calo Pt[GeV/c]";
2885 histoname = labelname +
"_NumeratorAvrgEta";
2886 title = labelname +
"NumeratorAvrgEta;Calo #eta";
2890 histoname = labelname +
"_DenominatorAvrgPt";
2891 title = labelname +
"DenominatorAvrgPt;Calo Pt[GeV/c] ";
2895 histoname = labelname +
"_DenominatorAvrgEta";
2896 title = labelname +
"DenominatorAvrgEta;Calo #eta";
2898 DenominatorEta->
getTH1();
2900 histoname = labelname +
"_DeltaR";
2901 title = labelname +
"DeltaR;";
2905 histoname = labelname +
"_DeltaPhi";
2906 title = labelname +
"DeltaPhi;";
2911 histoname = labelname +
"_NumeratorAvrgPFPt";
2912 title = labelname +
"NumeratorAvrgPFPt;PF Pt[GeV/c]";
2916 histoname = labelname +
"_NumeratorAvrgPFEta";
2917 title = labelname +
"NumeratorAvrgPFEta;PF #eta";
2919 NumeratorPFEta->
getTH1();
2921 histoname = labelname +
"_DenominatorAvrgPFPt";
2922 title = labelname +
"DenominatorAvrgPFPt;PF Pt[GeV/c] ";
2924 DenominatorPFPt->
getTH1();
2926 histoname = labelname +
"_DenominatorAvrgPFEta";
2927 title = labelname +
"DenominatorAvrgPFEta;PF #eta";
2929 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2930 DenominatorPFEta->
getTH1();
2932 histoname = labelname +
"_PFDeltaR";
2933 title = labelname +
"PFDeltaR;";
2937 histoname = labelname +
"_PFDeltaPhi";
2938 title = labelname +
"PFDeltaPhi;";
3039 histoname = labelname +
"_NumeratorPt";
3040 if (
v.getPath().find(
"HLT_PFMET") == std::string::npos)
3041 title = labelname +
"NumeratorPt; CaloMET[GeV/c]";
3043 title = labelname +
"NumeratorPt; PFMET[GeV/c]";
3047 histoname = labelname +
"_NumeratorPhi";
3048 title = labelname +
"NumeratorPhi; #Phi";
3052 histoname = labelname +
"_DenominatorPt";
3053 if (
v.getPath().find(
"HLT_PFMET") == std::string::npos)
3054 title = labelname +
"DenominatorPt; CaloMET[GeV/c]";
3056 title = labelname +
"DenominatorPt; PFMET[GeV/c]";
3060 histoname = labelname +
"_DenominatorPhi";
3061 title = labelname +
"DenominatorPhi; #Phi";
3063 DenominatorPhi->
getTH1();
3065 v.setEffHistos(NumeratorPt,
3172 double PtMax_ = 1000.;
3173 double EtaMin_ = -5.;
3174 double EtaMax_ = 5.;
3175 double PhiMin_ = -3.14159;
3176 double PhiMax_ = 3.14159;
3190 histoname = labelname +
"_TriggerSummary";
3191 title = labelname +
"Summary of trigger levels";
3194 std::vector<std::string>
trigger;
3196 trigger.emplace_back(
"L1 failed");
3197 trigger.emplace_back(
"L1 & HLT failed");
3198 trigger.emplace_back(
"L1 failed but not HLT");
3199 trigger.emplace_back(
"L1 passed");
3200 trigger.emplace_back(
"L1 & HLT passed");
3201 trigger.emplace_back(
"L1 passed but not HLT");
3203 for (
unsigned int i = 0;
i <
trigger.size();
i++)
3206 if ((
v.getTriggerType() ==
"SingleJet_Trigger")) {
3207 histoname = labelname +
"_JetPt";
3208 title = labelname +
"Leading jet pT;Pt[GeV/c]";
3212 histoname = labelname +
"_JetEtaVsPt";
3213 title = labelname +
"Leading jet #eta vs pT;#eta;Pt[GeV/c]";
3215 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Ptbins_, PtMin_, PtMax_);
3218 histoname = labelname +
"_JetPhiVsPt";
3219 title = labelname +
"Leading jet #Phi vs pT;#Phi;Pt[GeV/c]";
3221 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Ptbins_, PtMin_, PtMax_);
3225 TriggerSummary,
dummy, JetPt, JetEtaVsPt, JetPhiVsPt,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy);
3228 if ((
v.getTriggerType() ==
"DiJet_Trigger")) {
3229 histoname = labelname +
"_JetSize";
3230 title = labelname +
"Jet Size;multiplicity";
3234 histoname = labelname +
"_AvergPt";
3235 title = labelname +
"Average Pt;Pt[GeV/c]";
3239 histoname = labelname +
"_AvergEta";
3240 title = labelname +
"Average Eta;#eta";
3244 histoname = labelname +
"_PhiDifference";
3245 title = labelname +
"#Delta#Phi;#Delta#Phi";
3249 histoname = labelname +
"_Pt3Jet";
3250 title = labelname +
"Pt of 3rd Jet;Pt[GeV/c]";
3254 histoname = labelname +
"_Pt12VsPt3Jet";
3255 title = labelname +
"Pt of 3rd Jet vs Average Pt of leading jets;Avergage Pt[GeV/c]; Pt of 3rd Jet [GeV/c]";
3257 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
3260 histoname = labelname +
"_Pt12VsPhi12";
3262 "Average Pt of leading jets vs #Delta#Phi between leading jets;Avergage Pt[GeV/c]; #Delta#Phi";
3264 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Phibins_, PhiMin_, PhiMax_);
3267 v.setDgnsHistos(
TriggerSummary, JetSize,
dummy,
dummy,
dummy, Pt12, Eta12, Phi12, Pt3, Pt12Pt3, Pt12Phi12);
3270 if ((
v.getTriggerType() ==
"MET_Trigger")) {
3271 histoname = labelname +
"_MET";
3272 title = labelname +
"MET;Pt[GeV/c]";
3276 v.setDgnsHistos(
TriggerSummary,
dummy,
MET,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy);
3279 if ((
v.getTriggerType() ==
"TET_Trigger")) {
3280 histoname = labelname +
"_TET";
3281 title = labelname +
"TET;Pt[GeV/c]";
3285 v.setDgnsHistos(
TriggerSummary,
dummy, TET,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy);
3300 for (
auto& numpathmodule : numpathmodules) {
3302 l1pathname = numpathmodule;
3312 if (fabs(
eta) <= 1.3)
3320 if (fabs(
eta) <= 3.0 && fabs(
eta) > 1.3)
3328 if (fabs(
eta) > 3.0)
3360 double binVal = -100;
3361 for (
int ibin = 1; ibin <
nbins + 1; ibin++) {
3362 const char* binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
3363 if (binLabel[0] ==
'\0')
3385 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index " <<
index <<
" of that name ";
bool accept() const
Has at least one path accepted the event?
const std::string & triggerName(unsigned int triggerIndex) const
const Keys & filterKeys(trigger::size_type index) const
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::TriggerResults > triggerResultsFUToken
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
edm::EDGetTokenT< reco::VertexCollection > vertexToken
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken
virtual bool isEndCap(double eta)
JetMETHLTOfflineSource(const edm::ParameterSet &)
virtual void setCurrentFolder(std::string const &fullpath)
edm::TriggerNames triggerNames_
edm::Handle< reco::PFJetCollection > pfjetColl_
virtual double TriggerPosition(std::string trigName)
trigger::size_type sizeFilters() const
T const * product() const
edm::Handle< edm::TriggerResults > triggerResults_
edm::InputTag triggerResultsLabel_
const std::string moduleType(const std::string &module) const
C++ class name of module.
reco::PFJetCollection pfjet
edm::Handle< reco::PFMETCollection > pfmetColl_
PathInfoCollection hltPathsAllTriggerSummary_
double correction(const LorentzVector &fJet) const
get correction using Jet information only
virtual bool validPathHLT(std::string path)
edm::InputTag triggerSummaryLabel_
void calculate(const edm::Event &event, const edm::EventSetup &setup, const reco::CaloJet &jet, const int iDbg=0)
static const std::string removeVersion(const std::string &trigger)
void bookHistograms(DQMStore::IBooker &, edm::Run const &run, edm::EventSetup const &c) override
virtual void fillMEforMonAllTrigger(const edm::Event &iEvent, const edm::EventSetup &)
unsigned int triggerIndex(std::string_view name) const
T getUntrackedParameter(std::string const &, T const &) const
virtual bool isBarrel(double eta)
MonitorElement * NVertices
std::vector< std::string > pathFilter_
virtual void fillMEforTriggerNTfired()
void analyze(const edm::Event &, const edm::EventSetup &) override
~JetMETHLTOfflineSource() override
edm::EDGetTokenT< reco::JetCorrector > CaloJetCorToken_
std::vector< std::string > MBTrigPaths_
unsigned int size() const
number of trigger paths in trigger table
virtual bool isTriggerObjectFound(std::string objectName)
virtual bool isForward(double eta)
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
MonitorElement * correlation_AllWrtMu
std::vector< std::string > pathRejectKeyword_
Abs< T >::type abs(const T &t)
const TriggerObjectCollection & getObjects() const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::CaloMETCollection > caloMetToken
reco::CaloJetCollection calojet
std::vector< std::string > MuonTrigPaths_
virtual 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)
virtual bool isHLTPathAccepted(std::string pathName)
edm::Handle< reco::CaloJetCollection > calojetColl_
void dqmBeginRun(edm::Run const &run, edm::EventSetup const &c) override
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryFUToken
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Log< level::Info, false > LogInfo
virtual void fillMEforMonTriggerSummary(const edm::Event &iEvent, const edm::EventSetup &)
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
std::vector< std::pair< std::string, std::string > > custompathnamepairs_
edm::EDGetTokenT< reco::PFMETCollection > pfMetToken
std::vector< size_type > Keys
PathInfoCollection hltPathsAll_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
const std::string getL1ConditionModuleName(const std::string &pathname)
edm::Handle< trigger::TriggerEvent > triggerObj_
MonitorElement * correlation_AllWrtMB
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken
HLTConfigProvider hltConfig_
double et() const final
transverse energy
MonitorElement * correlation_All
edm::Handle< reco::CaloMETCollection > calometColl_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryToken
virtual void fillMEforEffAllTrigger(const edm::Event &iEvent, const edm::EventSetup &)
MonitorElement * rate_AllWrtMB
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
double phi() const final
momentum azimuthal angle
MonitorElement * rate_AllWrtMu
reco::helper::JetIDHelper * jetID
edm::EDGetTokenT< reco::JetCorrector > PFJetCorToken_
MonitorElement * rate_All
PathInfoCollection hltPathsEff_