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;
820 bool denompassed =
false;
821 bool numpassed =
false;
836 if (denompassed ==
false)
848 double trigLowpTcut = 0;
849 double trigMedpTcut = 0;
850 double trigHighpTcut = 0;
851 double trigLowpTcutFwd = 0;
852 double trigMedpTcutFwd = 0;
853 double trigHighpTcutFwd = 0;
856 double trigLowpTPFcut = 0;
857 double trigMedpTPFcut = 0;
858 double trigHighpTPFcut = 0;
859 double trigLowpTPFcutFwd = 0;
860 double trigMedpTPFcutFwd = 0;
861 double trigHighpTPFcutFwd = 0;
864 size_t jetstrfound =
v.getPath().find(
"Jet");
866 string tpath =
v.getPath();
870 if (jetstrfound != string::npos) {
872 for (
int trig =
int(jetstrfound) + 3;
trig <
int(jetstrfound) + 7;
trig++) {
873 if (!isdigit(tpath[
trig]))
875 jetTrigVal += tpath[
trig];
877 jetVal = atof(jetTrigVal.c_str());
882 trigMedpTcut = jetVal + 5.;
883 trigHighpTcut = jetVal + 10.;
885 trigLowpTcutFwd = jetVal + 9.;
886 trigMedpTcutFwd = jetVal + 15.;
887 trigHighpTcutFwd = jetVal + 21.;
890 trigMedpTcut = jetVal + 2.;
891 trigHighpTcut = jetVal + 60.;
893 trigLowpTcutFwd = jetVal + 22.;
894 trigMedpTcutFwd = jetVal + 25.;
895 trigHighpTcutFwd = jetVal + 110.;
897 trigLowpTcut = jetVal;
903 trigMedpTPFcut = jetVal + 20.;
904 trigHighpTPFcut = jetVal + 40.;
906 trigLowpTPFcutFwd = jetVal + 60.;
907 trigMedpTPFcutFwd = jetVal + 80.;
908 trigHighpTPFcutFwd = jetVal + 100.;
911 trigMedpTPFcut = jetVal + 40.;
912 trigHighpTPFcut = jetVal + 140.;
914 trigLowpTPFcutFwd = jetVal + 110.;
915 trigMedpTPFcutFwd = jetVal + 130.;
916 trigHighpTPFcutFwd = jetVal + 190.;
918 trigLowpTPFcut = jetVal;
925 std::cout <<
"fillMEforEffAllTrigger: CaloJet -------------------" << std::endl;
930 bool jetIDbool =
false;
937 if ((
v.getTriggerType() ==
"SingleJet_Trigger") && !
calojet.empty()) {
940 cout <<
"Passed CaloJet ID -------------------" << endl;
943 v.getMEhisto_DenominatorPt()->Fill(leadjpt);
945 v.getMEhisto_DenominatorPtBarrel()->Fill(leadjpt);
947 v.getMEhisto_DenominatorPtEndcap()->Fill(leadjpt);
949 v.getMEhisto_DenominatorPtForward()->Fill(leadjpt);
950 v.getMEhisto_DenominatorEta()->Fill(leadjeta);
951 v.getMEhisto_DenominatorPhi()->Fill(leadjphi);
952 v.getMEhisto_DenominatorEtaPhi()->Fill(leadjeta, leadjphi);
954 v.getMEhisto_DenominatorEtaBarrel()->Fill(leadjeta);
955 v.getMEhisto_DenominatorPhiBarrel()->Fill(leadjphi);
958 v.getMEhisto_DenominatorEtaEndcap()->Fill(leadjeta);
959 v.getMEhisto_DenominatorPhiEndcap()->Fill(leadjphi);
962 v.getMEhisto_DenominatorEtaForward()->Fill(leadjeta);
963 v.getMEhisto_DenominatorPhiForward()->Fill(leadjphi);
965 if ((leadjpt > trigLowpTcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))) {
966 v.getMEhisto_DenominatorEta_LowpTcut()->Fill(leadjeta);
967 v.getMEhisto_DenominatorPhi_LowpTcut()->Fill(leadjphi);
968 v.getMEhisto_DenominatorEtaPhi_LowpTcut()->Fill(leadjeta, leadjphi);
970 if ((leadjpt > trigMedpTcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))) {
971 v.getMEhisto_DenominatorEta_MedpTcut()->Fill(leadjeta);
972 v.getMEhisto_DenominatorPhi_MedpTcut()->Fill(leadjphi);
973 v.getMEhisto_DenominatorEtaPhi_MedpTcut()->Fill(leadjeta, leadjphi);
975 if ((leadjpt > trigHighpTcut && !
isForward(leadjeta)) ||
976 (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))) {
977 v.getMEhisto_DenominatorEta_HighpTcut()->Fill(leadjeta);
978 v.getMEhisto_DenominatorPhi_HighpTcut()->Fill(leadjphi);
979 v.getMEhisto_DenominatorEtaPhi_HighpTcut()->Fill(leadjeta, leadjphi);
985 double dRmin = 99999.;
986 double dPhimin = 9999.;
987 if (
v.getPath().find(
"L1") != std::string::npos) {
989 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
992 for (
unsigned short ki : kl1) {
993 double dR =
deltaR(toc[ki].
eta(), toc[ki].
phi(), leadjeta, leadjphi);
1001 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1004 auto kj = khlt.begin();
1005 for (; kj != khlt.end(); ++kj) {
1006 double dR =
deltaR(toc[*kj].
eta(), toc[*kj].
phi(), leadjeta, leadjphi);
1011 if (
dPhi < dPhimin) {
1016 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1017 v.getMEhisto_DeltaR()->Fill(
dRmin);
1020 if (
dRmin < 0.1 || (
v.getPath().find(
"L1") != std::string::npos &&
dRmin < 0.4)) {
1021 v.getMEhisto_NumeratorPt()->Fill(leadjpt);
1023 v.getMEhisto_NumeratorPtBarrel()->Fill(leadjpt);
1025 v.getMEhisto_NumeratorPtEndcap()->Fill(leadjpt);
1027 v.getMEhisto_NumeratorPtForward()->Fill(leadjpt);
1028 v.getMEhisto_NumeratorEta()->Fill(leadjeta);
1029 v.getMEhisto_NumeratorPhi()->Fill(leadjphi);
1030 v.getMEhisto_NumeratorEtaPhi()->Fill(leadjeta, leadjphi);
1032 v.getMEhisto_NumeratorEtaBarrel()->Fill(leadjeta);
1033 v.getMEhisto_NumeratorPhiBarrel()->Fill(leadjphi);
1036 v.getMEhisto_NumeratorEtaEndcap()->Fill(leadjeta);
1037 v.getMEhisto_NumeratorPhiEndcap()->Fill(leadjphi);
1040 v.getMEhisto_NumeratorEtaForward()->Fill(leadjeta);
1041 v.getMEhisto_NumeratorPhiForward()->Fill(leadjphi);
1043 if ((leadjpt > trigLowpTcut && !
isForward(leadjeta)) ||
1044 (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))) {
1045 v.getMEhisto_NumeratorEta_LowpTcut()->Fill(leadjeta);
1046 v.getMEhisto_NumeratorPhi_LowpTcut()->Fill(leadjphi);
1047 v.getMEhisto_NumeratorEtaPhi_LowpTcut()->Fill(leadjeta, leadjphi);
1049 if ((leadjpt > trigMedpTcut && !
isForward(leadjeta)) ||
1050 (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))) {
1051 v.getMEhisto_NumeratorEta_MedpTcut()->Fill(leadjeta);
1052 v.getMEhisto_NumeratorPhi_MedpTcut()->Fill(leadjphi);
1053 v.getMEhisto_NumeratorEtaPhi_MedpTcut()->Fill(leadjeta, leadjphi);
1055 if ((leadjpt > trigHighpTcut && !
isForward(leadjeta)) ||
1056 (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))) {
1057 v.getMEhisto_NumeratorEta_HighpTcut()->Fill(leadjeta);
1058 v.getMEhisto_NumeratorPhi_HighpTcut()->Fill(leadjphi);
1059 v.getMEhisto_NumeratorEtaPhi_HighpTcut()->Fill(leadjeta, leadjphi);
1066 if (jetIDbool ==
true && (
v.getTriggerType() ==
"DiJet_Trigger") &&
calojet.size() > 1) {
1071 if (numpassed ==
true) {
1081 std::cout <<
"fillMEforEffAllTrigger: PFJet -------------------" << std::endl;
1086 bool jetIDbool =
false;
1105 if ((
v.getTriggerType() ==
"SingleJet_Trigger") && !
pfjet.empty()) {
1108 _pfMHT =
sqrt(pfMHTx * pfMHTx + pfMHTy * pfMHTy);
1109 v.getMEhisto_DenominatorPFMHT()->Fill(
_pfMHT);
1114 cout <<
"Passed PFJet ID -------------------" << endl;
1116 v.getMEhisto_DenominatorPFPt()->Fill(leadjpt);
1118 v.getMEhisto_DenominatorPFPtBarrel()->Fill(leadjpt);
1120 v.getMEhisto_DenominatorPFPtEndcap()->Fill(leadjpt);
1122 v.getMEhisto_DenominatorPFPtForward()->Fill(leadjpt);
1123 v.getMEhisto_DenominatorPFEta()->Fill(leadjeta);
1124 v.getMEhisto_DenominatorPFPhi()->Fill(leadjphi);
1125 v.getMEhisto_DenominatorPFEtaPhi()->Fill(leadjeta, leadjphi);
1127 v.getMEhisto_DenominatorPFEtaBarrel()->Fill(leadjeta);
1128 v.getMEhisto_DenominatorPFPhiBarrel()->Fill(leadjphi);
1131 v.getMEhisto_DenominatorPFEtaEndcap()->Fill(leadjeta);
1132 v.getMEhisto_DenominatorPFPhiEndcap()->Fill(leadjphi);
1135 v.getMEhisto_DenominatorPFEtaForward()->Fill(leadjeta);
1136 v.getMEhisto_DenominatorPFPhiForward()->Fill(leadjphi);
1138 if ((leadjpt > trigLowpTPFcut && !
isForward(leadjeta)) ||
1139 (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))) {
1140 v.getMEhisto_DenominatorPFEta_LowpTcut()->Fill(leadjeta);
1141 v.getMEhisto_DenominatorPFPhi_LowpTcut()->Fill(leadjphi);
1142 v.getMEhisto_DenominatorPFEtaPhi_LowpTcut()->Fill(leadjeta, leadjphi);
1144 if ((leadjpt > trigMedpTPFcut && !
isForward(leadjeta)) ||
1145 (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))) {
1146 v.getMEhisto_DenominatorPFEta_MedpTcut()->Fill(leadjeta);
1147 v.getMEhisto_DenominatorPFPhi_MedpTcut()->Fill(leadjphi);
1148 v.getMEhisto_DenominatorPFEtaPhi_MedpTcut()->Fill(leadjeta, leadjphi);
1150 if ((leadjpt > trigHighpTPFcut && !
isForward(leadjeta)) ||
1151 (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))) {
1152 v.getMEhisto_DenominatorPFEta_HighpTcut()->Fill(leadjeta);
1153 v.getMEhisto_DenominatorPFPhi_HighpTcut()->Fill(leadjphi);
1154 v.getMEhisto_DenominatorPFEtaPhi_HighpTcut()->Fill(leadjeta, leadjphi);
1159 double dRmin = 99999.;
1160 double dPhimin = 9999.;
1161 if (
v.getPath().find(
"L1") != std::string::npos) {
1163 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1166 for (
unsigned short ki : kl1) {
1167 double dR =
deltaR(toc[ki].
eta(), toc[ki].
phi(), leadjeta, leadjphi);
1175 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1178 for (
unsigned short kj : khlt) {
1179 double dR =
deltaR(toc[kj].
eta(), toc[kj].
phi(), leadjeta, leadjphi);
1184 if (
dPhi < dPhimin) {
1188 v.getMEhisto_PFDeltaPhi()->Fill(dPhimin);
1189 v.getMEhisto_PFDeltaR()->Fill(
dRmin);
1192 if (
dRmin < 0.1 || (
v.getPath().find(
"L1") != std::string::npos &&
dRmin < 0.4)) {
1193 v.getMEhisto_NumeratorPFPt()->Fill(leadjpt);
1195 v.getMEhisto_NumeratorPFPtBarrel()->Fill(leadjpt);
1197 v.getMEhisto_NumeratorPFPtEndcap()->Fill(leadjpt);
1199 v.getMEhisto_NumeratorPFPtForward()->Fill(leadjpt);
1200 v.getMEhisto_NumeratorPFEta()->Fill(leadjeta);
1201 v.getMEhisto_NumeratorPFPhi()->Fill(leadjphi);
1202 v.getMEhisto_NumeratorPFEtaPhi()->Fill(leadjeta, leadjphi);
1204 v.getMEhisto_NumeratorPFEtaBarrel()->Fill(leadjeta);
1205 v.getMEhisto_NumeratorPFPhiBarrel()->Fill(leadjphi);
1208 v.getMEhisto_NumeratorPFEtaEndcap()->Fill(leadjeta);
1209 v.getMEhisto_NumeratorPFPhiEndcap()->Fill(leadjphi);
1212 v.getMEhisto_NumeratorPFEtaForward()->Fill(leadjeta);
1213 v.getMEhisto_NumeratorPFPhiForward()->Fill(leadjphi);
1215 if ((leadjpt > trigLowpTPFcut && !
isForward(leadjeta)) ||
1216 (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))) {
1217 v.getMEhisto_NumeratorPFEta_LowpTcut()->Fill(leadjeta);
1218 v.getMEhisto_NumeratorPFPhi_LowpTcut()->Fill(leadjphi);
1219 v.getMEhisto_NumeratorPFEtaPhi_LowpTcut()->Fill(leadjeta, leadjphi);
1221 if ((leadjpt > trigMedpTPFcut && !
isForward(leadjeta)) ||
1222 (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))) {
1223 v.getMEhisto_NumeratorPFEta_MedpTcut()->Fill(leadjeta);
1224 v.getMEhisto_NumeratorPFPhi_MedpTcut()->Fill(leadjphi);
1225 v.getMEhisto_NumeratorPFEtaPhi_MedpTcut()->Fill(leadjeta, leadjphi);
1227 if ((leadjpt > trigHighpTPFcut && !
isForward(leadjeta)) ||
1228 (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))) {
1229 v.getMEhisto_NumeratorPFEta_HighpTcut()->Fill(leadjeta);
1230 v.getMEhisto_NumeratorPFPhi_HighpTcut()->Fill(leadjphi);
1231 v.getMEhisto_NumeratorPFEtaPhi_HighpTcut()->Fill(leadjeta, leadjphi);
1237 if (jetIDbool ==
true && (
v.getTriggerType() ==
"DiJet_Trigger") &&
pfjet.size() > 1) {
1254 std::cout <<
"fillMEforEffAllTrigger: CaloMET -------------------" << std::endl;
1257 (
v.getPath().find(
"HLT_PFMET") == std::string::npos)) {
1260 v.getMEhisto_DenominatorPt()->Fill(
met.et());
1261 v.getMEhisto_DenominatorPhi()->Fill(
met.phi());
1263 v.getMEhisto_NumeratorPt()->Fill(
met.et());
1264 v.getMEhisto_NumeratorPhi()->Fill(
met.phi());
1266 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1268 double dPhimin = 9999.;
1270 for (
unsigned short kj : khlt) {
1272 if (
dPhi < dPhimin) {
1276 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1283 std::cout <<
"fillMEforEffAllTrigger: PFMET -------------------" << std::endl;
1286 (
v.getPath().find(
"HLT_PFMET") != std::string::npos)) {
1288 const PFMET met = pfmetcol->front();
1289 v.getMEhisto_DenominatorPt()->Fill(
met.et());
1290 v.getMEhisto_DenominatorPhi()->Fill(
met.phi());
1292 v.getMEhisto_NumeratorPt()->Fill(
met.et());
1293 v.getMEhisto_NumeratorPhi()->Fill(
met.phi());
1295 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt" << hltIndex <<
" of that name ";
1297 double dPhimin = 9999.;
1299 for (
unsigned short kj : khlt) {
1301 if (
dPhi < dPhimin) {
1305 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1328 LogDebug(
"HLTJetMETDQMSource") <<
"HLTConfigProvider failed to initialize.";
1342 for (
unsigned int i = 0;
i !=
n; ++
i) {
1343 bool denomFound =
false;
1344 bool numFound =
false;
1351 for (; controlPathname !=
pathFilter_.end(); ++controlPathname) {
1352 if (
pathname.find((*controlPathname)) != std::string::npos) {
1363 if (
pathname.find((*rejectPathname)) != std::string::npos) {
1377 unsigned int usedPrescale = 1;
1378 unsigned int objectType = 0;
1383 if (
pathname.find(
"Jet") != std::string::npos && !(
pathname.find(
"DoubleJet") != std::string::npos) &&
1384 !(
pathname.find(
"DiJet") != std::string::npos) && !(
pathname.find(
"DiPFJet") != std::string::npos) &&
1385 !(
pathname.find(
"BTag") != std::string::npos) && !(
pathname.find(
"Mu") != std::string::npos) &&
1386 !(
pathname.find(
"Fwd") != std::string::npos)) {
1390 if (
pathname.find(
"DiJet") != std::string::npos ||
pathname.find(
"DiPFJet") != std::string::npos ||
1391 pathname.find(
"DoubleJet") != std::string::npos) {
1395 if (
pathname.find(
"MET") != std::string::npos) {
1399 if (
pathname.find(
"HT") != std::string::npos) {
1406 !(
pathname.find(
"DiPFJet") != std::string::npos) && !(
pathname.find(
"DoubleJet") != std::string::npos)) {
1414 ((
pathname.find(
"DiJet") != std::string::npos) || (
pathname.find(
"DiPFJet") != std::string::npos))) {
1441 for (
unsigned int i = 0;
i !=
n; ++
i) {
1445 if (HLTname == dpathname)
1454 for (
auto& numpathmodule : numpathmodules) {
1463 filtername = numpathmodule;
1467 if (objectType != 0 && denomFound) {
1469 for (
auto& numpathmodule : numpathmodules) {
1478 Denomfiltername = numpathmodule;
1482 if (objectType != 0 && numFound) {
1484 cout <<
"=Pathname= " <<
pathname <<
" | =Denompath= " << dpathname <<
" | =Filtername= " << filtername
1485 <<
" | =Denomfiltername= " << Denomfiltername <<
" | =L1pathname= " << l1pathname
1486 <<
" | =ObjectType= " << objectType << endl;
1487 if (!((
pathname.find(
"HT") != std::string::npos) || (
pathname.find(
"Quad") != std::string::npos))) {
1521 cout <<
"get names for efficicncy------------------" << endl;
1526 unsigned int usedPrescale = 1;
1527 unsigned int objectType = 0;
1533 std::string dpathname = custompathnamepair.second;
1534 bool numFound =
false;
1535 bool denomFound =
false;
1537 for (
unsigned int i = 0;
i !=
n; ++
i) {
1539 if (HLTname.find(
pathname) != std::string::npos) {
1543 if (HLTname.find(dpathname) != std::string::npos) {
1545 dpathname = HLTname;
1548 if (numFound && denomFound) {
1549 if (
pathname.find(
"Jet") != std::string::npos && !(
pathname.find(
"DiJet") != std::string::npos) &&
1550 !(
pathname.find(
"DiPFJet") != std::string::npos) && !(
pathname.find(
"DoubleJet") != std::string::npos) &&
1551 !(
pathname.find(
"BTag") != std::string::npos) && !(
pathname.find(
"Mu") != std::string::npos) &&
1552 !(
pathname.find(
"Fwd") != std::string::npos)) {
1556 if (
pathname.find(
"DiJet") != std::string::npos ||
pathname.find(
"DiPFJet") != std::string::npos ||
1557 pathname.find(
"DoubleJet") != std::string::npos) {
1561 if (
pathname.find(
"MET") != std::string::npos) {
1565 if (
pathname.find(
"TET") != std::string::npos) {
1572 for (
auto& numpathmodule : numpathmodules) {
1581 filtername = numpathmodule;
1584 if (objectType != 0) {
1586 for (
auto& numpathmodule : numpathmodules) {
1595 Denomfiltername = numpathmodule;
1599 cout <<
"==pathname==" <<
pathname <<
"==denompath==" << dpathname <<
"==filtername==" << filtername
1600 <<
"==denomfiltername==" << Denomfiltername <<
"==l1pathname==" << l1pathname
1601 <<
"==objectType==" << objectType << endl;
1617 cout <<
"== end hltPathsEff_.push_back ======" << endl;
1633 double TrigMin_ = -0.5;
1637 std::string histot =
"JetMET TriggerRate Summary";
1638 rate_All = iBooker.
book1D(histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_);
1640 histonm =
"JetMET_TriggerRate_Correlation";
1641 histot =
"JetMET TriggerRate Correlation Summary;y&&!x;x&&y";
1643 iBooker.
book2D(histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_, TrigBins_, TrigMin_, TrigMax_);
1645 histonm =
"JetMET_NVertices";
1646 histot =
"No. of vertices";
1647 NVertices = iBooker.
book1D(histonm.c_str(), histot.c_str(), 100, 0, 50);
1649 histonm =
"JetMET_PVZ";
1650 histot =
"Primary Vertex Z pos";
1651 PVZ = iBooker.
book1D(histonm.c_str(), histot.c_str(), 100, -50., 50.);
1654 histonm =
"JetMET_TriggerRate_WrtMuTrigger";
1655 histot =
"JetMET TriggerRate Summary Wrt Muon Trigger ";
1656 rate_AllWrtMu = iBooker.
book1D(histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_);
1658 histonm =
"JetMET_TriggerRate_Correlation_WrtMuTrigger";
1659 histot =
"JetMET TriggerRate Correlation Summary Wrt Muon Trigger;y&&!x;x&&y";
1661 histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_, TrigBins_, TrigMin_, TrigMax_);
1663 histonm =
"JetMET_TriggerRate_WrtMBTrigger";
1664 histot =
"JetMET TriggerRate Summary Wrt MB Trigger";
1665 rate_AllWrtMB = iBooker.
book1D(histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_);
1667 histonm =
"JetMET_TriggerRate_Correlation_WrtMBTrigger";
1668 histot =
"JetMET TriggerRate Correlation Wrt MB Trigger;y&&!x;x&&y";
1670 histonm.c_str(), histot.c_str(), TrigBins_, TrigMin_, TrigMax_, TrigBins_, TrigMin_, TrigMax_);
1678 labelnm =
v.getPath();
1680 for (
int ibin = 1; ibin <
nbins + 1; ibin++) {
1681 const char* binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
1683 if (binLabel_str == labelnm)
1685 if (binLabel[0] ==
'\0') {
1706 double Nmin_ = -0.5;
1713 double PtMax_ = 1000.;
1718 double EtaMin_ = -5.;
1719 double EtaMax_ = 5.;
1722 double PhiMin_ = -3.5;
1723 double PhiMax_ = 3.5;
1726 double ResMin_ = -1.5;
1727 double ResMax_ = 1.5;
1745 histoname = labelname +
"_recObjN";
1746 title = labelname +
"_recObjN;Reco multiplicity()" + trigPath;
1750 histoname = labelname +
"_recObjPt";
1751 title = labelname +
"_recObjPt; Reco Pt[GeV/c]" + trigPath;
1755 histoname = labelname +
"_recObjPtBarrel";
1756 title = labelname +
"_recObjPtBarrel;Reco Pt[GeV/c]" + trigPath;
1760 histoname = labelname +
"_recObjPtEndcap";
1761 title = labelname +
"_recObjPtEndcap;Reco Pt[GeV/c]" + trigPath;
1765 histoname = labelname +
"_recObjPtForward";
1766 title = labelname +
"_recObjPtForward;Reco Pt[GeV/c]" + trigPath;
1770 histoname = labelname +
"_recObjEta";
1771 title = labelname +
"_recObjEta;Reco #eta" + trigPath;
1775 histoname = labelname +
"_recObjPhi";
1776 title = labelname +
"_recObjPhi;Reco #Phi" + trigPath;
1780 histoname = labelname +
"_recObjEtaPhi";
1781 title = labelname +
"_recObjEtaPhi;Reco #eta;Reco #Phi" + trigPath;
1783 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
1786 histoname = labelname +
"_l1ObjPt";
1787 title = labelname +
"_l1ObjPt;L1 Pt[GeV/c]" + trigPath;
1791 histoname = labelname +
"_l1ObjEta";
1792 title = labelname +
"_l1ObjEta;L1 #eta" + trigPath;
1796 histoname = labelname +
"_l1ObjPhi";
1797 title = labelname +
"_l1ObjPhi;L1 #Phi" + trigPath;
1801 histoname = labelname +
"_l1ObjEtaPhi";
1802 title = labelname +
"_l1ObjEtaPhi;L1 #eta;L1 #Phi" + trigPath;
1804 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
1807 histoname = labelname +
"_l1ObjN";
1808 title = labelname +
"_l1ObjN;L1 multiplicity" + trigPath;
1812 histoname = labelname +
"_l1ObjPtBarrel";
1813 title = labelname +
"_l1ObjPtBarrel;L1 Pt[GeV/c]" + trigPath;
1817 histoname = labelname +
"_l1ObjPtEndcap";
1818 title = labelname +
"_l1ObjPtEndcap;L1 Pt[GeV/c]" + trigPath;
1822 histoname = labelname +
"_l1ObjPtForward";
1823 title = labelname +
"_l1ObjPtForward;L1 Pt[GeV/c]" + trigPath;
1827 histoname = labelname +
"_hltObjN";
1828 title = labelname +
"_hltObjN;HLT multiplicity" + trigPath;
1832 histoname = labelname +
"_hltObjPtBarrel";
1833 title = labelname +
"_hltObjPtBarrel;HLT Pt[GeV/c]" + trigPath;
1837 histoname = labelname +
"_hltObjPtEndcap";
1838 title = labelname +
"_hltObjPtEndcap;HLT Pt[GeV/c]" + trigPath;
1842 histoname = labelname +
"_hltObjPtForward";
1843 title = labelname +
"_hltObjPtForward;HLT Pt[GeV/c]" + trigPath;
1847 histoname = labelname +
"_hltObjPt";
1848 title = labelname +
"_hltObjPt;HLT Pt[GeV/c]" + trigPath;
1852 histoname = labelname +
"_hltObjEta";
1853 title = labelname +
"_hltObjEta;HLT #eta" + trigPath;
1857 histoname = labelname +
"_hltObjPhi";
1858 title = labelname +
"_hltObjPhi;HLT #Phi" + trigPath;
1862 histoname = labelname +
"_hltObjEtaPhi";
1863 title = labelname +
"_hltObjEtaPhi;HLT #eta;HLT #Phi" + trigPath;
1865 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
1868 histoname = labelname +
"_l1HLTPtResolution";
1869 title = labelname +
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)" + trigPath;
1871 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1872 PtResolution_L1HLT->
getTH1();
1874 histoname = labelname +
"_l1HLTEtaResolution";
1875 title = labelname +
"_l1HLTEtaResolution;#eta(L1)-#eta(HLT)" + trigPath;
1877 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1878 EtaResolution_L1HLT->
getTH1();
1880 histoname = labelname +
"_l1HLTPhiResolution";
1881 title = labelname +
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)" + trigPath;
1883 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1884 PhiResolution_L1HLT->
getTH1();
1886 histoname = labelname +
"_l1HLTPtCorrelation";
1887 title = labelname +
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]" + trigPath;
1889 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
1890 PtCorrelation_L1HLT->
getTH1();
1892 histoname = labelname +
"_l1HLTEtaCorrelation";
1893 title = labelname +
"_l1HLTEtaCorrelation;#eta(L1);#eta(HLT)" + trigPath;
1895 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Etabins_, EtaMin_, EtaMax_);
1896 EtaCorrelation_L1HLT->
getTH1();
1898 histoname = labelname +
"_l1HLTPhiCorrelation";
1899 title = labelname +
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)" + trigPath;
1901 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Phibins_, PhiMin_, PhiMax_);
1902 PhiCorrelation_L1HLT->
getTH1();
1904 histoname = labelname +
"_hltRecObjPtResolution";
1905 title = labelname +
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)" + trigPath;
1907 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1908 PtResolution_HLTRecObj->
getTH1();
1910 histoname = labelname +
"_hltRecObjEtaResolution";
1911 title = labelname +
"_hltRecObjEtaResolution;#eta(HLT)-#eta(Reco)" + trigPath;
1913 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1914 EtaResolution_HLTRecObj->
getTH1();
1916 histoname = labelname +
"_hltRecObjPhiResolution";
1917 title = labelname +
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)" + trigPath;
1919 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
1920 PhiResolution_HLTRecObj->
getTH1();
1922 histoname = labelname +
"_hltRecObjPtCorrelation";
1923 title = labelname +
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]" + trigPath;
1925 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
1926 PtCorrelation_HLTRecObj->
getTH1();
1928 histoname = labelname +
"_hltRecObjEtaCorrelation";
1929 title = labelname +
"_hltRecObjEtaCorrelation;#eta(HLT);#eta(Reco)" + trigPath;
1931 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Etabins_, EtaMin_, EtaMax_);
1932 EtaCorrelation_HLTRecObj->
getTH1();
1934 histoname = labelname +
"_hltRecObjPhiCorrelation";
1935 title = labelname +
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)" + trigPath;
1937 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Phibins_, PhiMin_, PhiMax_);
1938 PhiCorrelation_HLTRecObj->
getTH1();
1965 EtaResolution_L1HLT,
1966 PhiResolution_L1HLT,
1967 PtResolution_HLTRecObj,
1968 EtaResolution_HLTRecObj,
1969 PhiResolution_HLTRecObj,
1970 PtCorrelation_L1HLT,
1971 EtaCorrelation_L1HLT,
1972 PhiCorrelation_L1HLT,
1973 PtCorrelation_HLTRecObj,
1974 EtaCorrelation_HLTRecObj,
1975 PhiCorrelation_HLTRecObj,
1988 histoname = labelname +
"_RecObjAveragePt";
1989 title = labelname +
"_RecObjAveragePt;Reco Average Pt[GeV/c]" + trigPath;
1993 histoname = labelname +
"_RecObjAverageEta";
1994 title = labelname +
"_RecObjAverageEta;Reco Average #eta" + trigPath;
1998 histoname = labelname +
"_RecObjPhiDifference";
1999 title = labelname +
"_RecObjPhiDifference;Reco #Delta#Phi" + trigPath;
2001 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2002 jetPhiDifference->
getTH1();
2004 histoname = labelname +
"_hltObjAveragePt";
2005 title = labelname +
"_hltObjAveragePt;HLT Average Pt[GeV/c]" + trigPath;
2009 histoname = labelname +
"_hltObjAverageEta";
2010 title = labelname +
"_hltObjAverageEta;HLT Average #eta" + trigPath;
2014 histoname = labelname +
"_hltObjPhiDifference";
2015 title = labelname +
"_hltObjPhiDifference;Reco #Delta#Phi" + trigPath;
2017 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2018 hltPhiDifference->
getTH1();
2068 histoname = labelname +
"_recObjPt";
2069 title = labelname +
"_recObjPt;Reco Pt[GeV/c]" + trigPath;
2073 histoname = labelname +
"_recObjPhi";
2074 title = labelname +
"_recObjPhi;Reco #Phi" + trigPath;
2078 histoname = labelname +
"_l1ObjPt";
2079 title = labelname +
"_l1ObjPt;L1 Pt[GeV/c]" + trigPath;
2083 histoname = labelname +
"_l1ObjPhi";
2084 title = labelname +
"_l1ObjPhi;L1 #Phi" + trigPath;
2088 histoname = labelname +
"_hltObjPt";
2089 title = labelname +
"_hltObjPt;HLT Pt[GeV/c]" + trigPath;
2093 histoname = labelname +
"_hltObjPhi";
2094 title = labelname +
"_hltObjPhi;HLT #Phi" + trigPath;
2098 histoname = labelname +
"_l1HLTPtResolution";
2099 title = labelname +
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)" + trigPath;
2101 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
2102 PtResolution_L1HLT->
getTH1();
2104 histoname = labelname +
"_l1HLTPhiResolution";
2105 title = labelname +
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)" + trigPath;
2107 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
2108 PhiResolution_L1HLT->
getTH1();
2110 histoname = labelname +
"_l1HLTPtCorrelation";
2111 title = labelname +
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]" + trigPath;
2113 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
2114 PtCorrelation_L1HLT->
getTH1();
2116 histoname = labelname +
"_l1HLTPhiCorrelation";
2117 title = labelname +
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)" + trigPath;
2119 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Phibins_, PhiMin_, PhiMax_);
2120 PhiCorrelation_L1HLT->
getTH1();
2122 histoname = labelname +
"_hltRecObjPtResolution";
2123 title = labelname +
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)" + trigPath;
2125 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
2126 PtResolution_HLTRecObj->
getTH1();
2128 histoname = labelname +
"_hltRecObjPhiResolution";
2129 title = labelname +
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)" + trigPath;
2131 iBooker.
book1D(histoname.c_str(),
title.c_str(), Resbins_, ResMin_, ResMax_);
2132 PhiResolution_HLTRecObj->
getTH1();
2134 histoname = labelname +
"_hltRecObjPtCorrelation";
2135 title = labelname +
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]" + trigPath;
2137 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
2138 PtCorrelation_HLTRecObj->
getTH1();
2140 histoname = labelname +
"_hltRecObjPhiCorrelation";
2141 title = labelname +
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)" + trigPath;
2143 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Phibins_, PhiMin_, PhiMax_);
2144 PhiCorrelation_HLTRecObj->
getTH1();
2172 PhiResolution_L1HLT,
2173 PtResolution_HLTRecObj,
2175 PhiResolution_HLTRecObj,
2176 PtCorrelation_L1HLT,
2178 PhiCorrelation_L1HLT,
2179 PtCorrelation_HLTRecObj,
2181 PhiCorrelation_HLTRecObj,
2201 double PtMax_ = 1000.;
2204 double EtaMin_ = -5.;
2205 double EtaMax_ = 5.;
2208 double PhiMin_ = -3.5;
2209 double PhiMax_ = 3.5;
2218 std::string subdirName = dirName1 + trgPathName +
"_wrt_" + trgPathNameD;
2228 histoname = labelname +
"_NumeratorPt";
2229 title = labelname +
"NumeratorPt;Calo Pt[GeV/c]";
2233 histoname = labelname +
"_NumeratorPtBarrel";
2234 title = labelname +
"NumeratorPtBarrel;Calo Pt[GeV/c] ";
2236 NumeratorPtBarrel->
getTH1();
2238 histoname = labelname +
"_NumeratorPtEndcap";
2239 title = labelname +
"NumeratorPtEndcap;Calo Pt[GeV/c]";
2241 NumeratorPtEndcap->
getTH1();
2243 histoname = labelname +
"_NumeratorPtForward";
2244 title = labelname +
"NumeratorPtForward;Calo Pt[GeV/c]";
2246 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2247 NumeratorPtForward->
getTH1();
2249 histoname = labelname +
"_NumeratorEta";
2250 title = labelname +
"NumeratorEta;Calo #eta ";
2254 histoname = labelname +
"_NumeratorPhi";
2255 title = labelname +
"NumeratorPhi;Calo #Phi";
2259 histoname = labelname +
"_NumeratorEtaPhi";
2260 title = labelname +
"NumeratorEtaPhi;Calo #eta;Calo #Phi";
2262 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2263 NumeratorEtaPhi->
getTH1();
2265 histoname = labelname +
"_NumeratorEtaBarrel";
2266 title = labelname +
"NumeratorEtaBarrel;Calo #eta ";
2268 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2269 NumeratorEtaBarrel->
getTH1();
2271 histoname = labelname +
"_NumeratorPhiBarrel";
2272 title = labelname +
"NumeratorPhiBarrel;Calo #Phi";
2274 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2275 NumeratorPhiBarrel->
getTH1();
2277 histoname = labelname +
"_NumeratorEtaEndcap";
2278 title = labelname +
"NumeratorEtaEndcap;Calo #eta ";
2280 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2281 NumeratorEtaEndcap->
getTH1();
2283 histoname = labelname +
"_NumeratorPhiEndcap";
2284 title = labelname +
"NumeratorPhiEndcap;Calo #Phi";
2286 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2287 NumeratorPhiEndcap->
getTH1();
2289 histoname = labelname +
"_NumeratorEtaForward";
2290 title = labelname +
"NumeratorEtaForward;Calo #eta ";
2292 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2293 NumeratorEtaForward->
getTH1();
2295 histoname = labelname +
"_NumeratorPhiForward";
2296 title = labelname +
"NumeratorPhiForward;Calo #Phi";
2298 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2299 NumeratorPhiForward->
getTH1();
2301 histoname = labelname +
"_NumeratorEta_LowpTcut";
2302 title = labelname +
"NumeratorEta_LowpTcut;Calo #eta ";
2304 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2305 NumeratorEta_LowpTcut->
getTH1();
2307 histoname = labelname +
"_NumeratorPhi_LowpTcut";
2308 title = labelname +
"NumeratorPhi_LowpTcut;Calo #Phi";
2310 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2311 NumeratorPhi_LowpTcut->
getTH1();
2313 histoname = labelname +
"_NumeratorEtaPhi_LowpTcut";
2314 title = labelname +
"NumeratorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2316 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2317 NumeratorEtaPhi_LowpTcut->
getTH1();
2319 histoname = labelname +
"_NumeratorEta_MedpTcut";
2320 title = labelname +
"NumeratorEta_MedpTcut;Calo #eta ";
2322 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2323 NumeratorEta_MedpTcut->
getTH1();
2325 histoname = labelname +
"_NumeratorPhi_MedpTcut";
2326 title = labelname +
"NumeratorPhi_MedpTcut;Calo #Phi";
2328 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2329 NumeratorPhi_MedpTcut->
getTH1();
2331 histoname = labelname +
"_NumeratorEtaPhi_MedpTcut";
2332 title = labelname +
"NumeratorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2334 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2335 NumeratorEtaPhi_MedpTcut->
getTH1();
2337 histoname = labelname +
"_NumeratorEta_HighpTcut";
2338 title = labelname +
"NumeratorEta_HighpTcut;Calo #eta ";
2340 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2341 NumeratorEta_HighpTcut->
getTH1();
2343 histoname = labelname +
"_NumeratorPhi_HighpTcut";
2344 title = labelname +
"NumeratorPhi_HighpTcut;Calo #Phi";
2346 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2347 NumeratorPhi_HighpTcut->
getTH1();
2349 histoname = labelname +
"_NumeratorEtaPhi_HighpTcut";
2350 title = labelname +
"NumeratorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2352 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2353 NumeratorEtaPhi_HighpTcut->
getTH1();
2355 histoname = labelname +
"_DenominatorPt";
2356 title = labelname +
"DenominatorPt;Calo Pt[GeV/c]";
2360 histoname = labelname +
"_DenominatorPtBarrel";
2361 title = labelname +
"DenominatorPtBarrel;Calo Pt[GeV/c]";
2363 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2364 DenominatorPtBarrel->
getTH1();
2366 histoname = labelname +
"_DenominatorPtEndcap";
2367 title = labelname +
"DenominatorPtEndcap;Calo Pt[GeV/c]";
2369 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2370 DenominatorPtEndcap->
getTH1();
2372 histoname = labelname +
"_DenominatorPtForward";
2373 title = labelname +
"DenominatorPtForward;Calo Pt[GeV/c] ";
2375 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2376 DenominatorPtForward->
getTH1();
2378 histoname = labelname +
"_DenominatorEta";
2379 title = labelname +
"DenominatorEta;Calo #eta ";
2381 DenominatorEta->
getTH1();
2383 histoname = labelname +
"_DenominatorPhi";
2384 title = labelname +
"DenominatorPhi;Calo #Phi";
2386 DenominatorPhi->
getTH1();
2388 histoname = labelname +
"_DenominatorEtaPhi";
2389 title = labelname +
"DenominatorEtaPhi;Calo #eta; Calo #Phi";
2391 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2392 DenominatorEtaPhi->
getTH1();
2394 histoname = labelname +
"_DenominatorEtaBarrel";
2395 title = labelname +
"DenominatorEtaBarrel;Calo #eta ";
2397 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2398 DenominatorEtaBarrel->
getTH1();
2400 histoname = labelname +
"_DenominatorPhiBarrel";
2401 title = labelname +
"DenominatorPhiBarrel;Calo #Phi";
2403 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2404 DenominatorPhiBarrel->
getTH1();
2406 histoname = labelname +
"_DenominatorEtaEndcap";
2407 title = labelname +
"DenominatorEtaEndcap;Calo #eta ";
2409 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2410 DenominatorEtaEndcap->
getTH1();
2412 histoname = labelname +
"_DenominatorPhiEndcap";
2413 title = labelname +
"DenominatorPhiEndcap;Calo #Phi";
2415 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2416 DenominatorPhiEndcap->
getTH1();
2418 histoname = labelname +
"_DenominatorEtaForward";
2419 title = labelname +
"DenominatorEtaForward;Calo #eta ";
2421 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2422 DenominatorEtaForward->
getTH1();
2424 histoname = labelname +
"_DenominatorPhiForward";
2425 title = labelname +
"DenominatorPhiForward;Calo #Phi";
2427 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2428 DenominatorPhiForward->
getTH1();
2430 histoname = labelname +
"_DenominatorEta_LowpTcut";
2431 title = labelname +
"DenominatorEta_LowpTcut;Calo #eta ";
2433 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2434 DenominatorEta_LowpTcut->
getTH1();
2436 histoname = labelname +
"_DenominatorPhi_LowpTcut";
2437 title = labelname +
"DenominatorPhi_LowpTcut;Calo #Phi";
2439 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2440 DenominatorPhi_LowpTcut->
getTH1();
2442 histoname = labelname +
"_DenominatorEtaPhi_LowpTcut";
2443 title = labelname +
"DenominatorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2445 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2446 DenominatorEtaPhi_LowpTcut->
getTH1();
2448 histoname = labelname +
"_DenominatorEta_MedpTcut";
2449 title = labelname +
"DenominatorEta_MedpTcut;Calo #eta ";
2451 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2452 DenominatorEta_MedpTcut->
getTH1();
2454 histoname = labelname +
"_DenominatorPhi_MedpTcut";
2455 title = labelname +
"DenominatorPhi_MedpTcut;Calo #Phi";
2457 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2458 DenominatorPhi_MedpTcut->
getTH1();
2460 histoname = labelname +
"_DenominatorEtaPhi_MedpTcut";
2461 title = labelname +
"DenominatorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2463 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2464 DenominatorEtaPhi_MedpTcut->
getTH1();
2466 histoname = labelname +
"_DenominatorEta_HighpTcut";
2467 title = labelname +
"DenominatorEta_HighpTcut;Calo #eta ";
2469 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2470 DenominatorEta_HighpTcut->
getTH1();
2472 histoname = labelname +
"_DenominatorPhi_HighpTcut";
2473 title = labelname +
"DenominatorPhi_HighpTcut;Calo #Phi";
2475 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2476 DenominatorPhi_HighpTcut->
getTH1();
2478 histoname = labelname +
"_DenominatorEtaPhi_HighpTcut";
2479 title = labelname +
"DenominatorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2481 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2482 DenominatorEtaPhi_HighpTcut->
getTH1();
2484 histoname = labelname +
"_DeltaR";
2485 title = labelname +
"DeltaR;";
2489 histoname = labelname +
"_DeltaPhi";
2490 title = labelname +
"DeltaPhi;";
2494 histoname = labelname +
"_NumeratorPFMHT";
2495 title = labelname +
"NumeratorPFMHT;PFMHT[GeV/c]";
2497 NumeratorPFMHT->
getTH1();
2499 histoname = labelname +
"_NumeratorPFPt";
2500 title = labelname +
"NumeratorPFPt;PF Pt[GeV/c]";
2504 histoname = labelname +
"_NumeratorPFPtBarrel";
2505 title = labelname +
"NumeratorPFPtBarrel;PF Pt[GeV/c] ";
2507 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2508 NumeratorPFPtBarrel->
getTH1();
2510 histoname = labelname +
"_NumeratorPFPtEndcap";
2511 title = labelname +
"NumeratorPFPtEndcap;PF Pt[GeV/c]";
2513 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2514 NumeratorPFPtEndcap->
getTH1();
2516 histoname = labelname +
"_NumeratorPFPtForward";
2517 title = labelname +
"NumeratorPFPtForward;PF Pt[GeV/c]";
2519 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2520 NumeratorPFPtForward->
getTH1();
2522 histoname = labelname +
"_NumeratorPFEta";
2523 title = labelname +
"NumeratorPFEta;PF #eta ";
2525 NumeratorPFEta->
getTH1();
2527 histoname = labelname +
"_NumeratorPFPhi";
2528 title = labelname +
"NumeratorPFPhi;Calo #Phi";
2530 NumeratorPFPhi->
getTH1();
2532 histoname = labelname +
"_NumeratorPFEtaPhi";
2533 title = labelname +
"NumeratorPFEtaPhi;PF #eta;Calo #Phi";
2535 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2536 NumeratorPFEtaPhi->
getTH1();
2538 histoname = labelname +
"_NumeratorPFEtaBarrel";
2539 title = labelname +
"NumeratorPFEtaBarrel;PF #eta ";
2541 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2542 NumeratorPFEtaBarrel->
getTH1();
2544 histoname = labelname +
"_NumeratorPFPhiBarrel";
2545 title = labelname +
"NumeratorPFPhiBarrel;PF #Phi";
2547 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2548 NumeratorPFPhiBarrel->
getTH1();
2550 histoname = labelname +
"_NumeratorPFEtaEndcap";
2551 title = labelname +
"NumeratorPFEtaEndcap;Calo #eta ";
2553 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2554 NumeratorPFEtaEndcap->
getTH1();
2556 histoname = labelname +
"_NumeratorPFPhiEndcap";
2557 title = labelname +
"NumeratorPFPhiEndcap;PF #Phi";
2559 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2560 NumeratorPFPhiEndcap->
getTH1();
2562 histoname = labelname +
"_NumeratorPFEtaForward";
2563 title = labelname +
"NumeratorPFEtaForward;Calo #eta ";
2565 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2566 NumeratorPFEtaForward->
getTH1();
2568 histoname = labelname +
"_NumeratorPFPhiForward";
2569 title = labelname +
"NumeratorPFPhiForward;PF #Phi";
2571 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2572 NumeratorPFPhiForward->
getTH1();
2574 histoname = labelname +
"_NumeratorPFEta_LowpTcut";
2575 title = labelname +
"NumeratorPFEta_LowpTcut;PF #eta ";
2577 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2578 NumeratorPFEta_LowpTcut->
getTH1();
2580 histoname = labelname +
"_NumeratorPFPhi_LowpTcut";
2581 title = labelname +
"NumeratorPFPhi_LowpTcut;PF #Phi";
2583 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2584 NumeratorPFPhi_LowpTcut->
getTH1();
2586 histoname = labelname +
"_NumeratorPFEtaPhi_LowpTcut";
2587 title = labelname +
"NumeratorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2589 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2590 NumeratorPFEtaPhi_LowpTcut->
getTH1();
2592 histoname = labelname +
"_NumeratorPFEta_MedpTcut";
2593 title = labelname +
"NumeratorPFEta_MedpTcut;PF #eta ";
2595 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2596 NumeratorPFEta_MedpTcut->
getTH1();
2598 histoname = labelname +
"_NumeratorPFPhi_MedpTcut";
2599 title = labelname +
"NumeratorPFPhi_MedpTcut;PF #Phi";
2601 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2602 NumeratorPFPhi_MedpTcut->
getTH1();
2604 histoname = labelname +
"_NumeratorPFEtaPhi_MedpTcut";
2605 title = labelname +
"NumeratorPFEtaPhi_MedpTcut;PF #eta;PF #Phi";
2607 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2608 NumeratorPFEtaPhi_MedpTcut->
getTH1();
2610 histoname = labelname +
"_NumeratorPFEta_HighpTcut";
2611 title = labelname +
"NumeratorPFEta_HighpTcut;Calo #eta ";
2613 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2614 NumeratorPFEta_HighpTcut->
getTH1();
2616 histoname = labelname +
"_NumeratorPFPhi_HighpTcut";
2617 title = labelname +
"NumeratorPFPhi_HighpTcut;PF #Phi";
2619 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2620 NumeratorPFPhi_HighpTcut->
getTH1();
2622 histoname = labelname +
"_NumeratorPFEtaPhi_HighpTcut";
2623 title = labelname +
"NumeratorPFEtaPhi_HighpTcut;PF #eta;PF #Phi";
2625 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2626 NumeratorPFEtaPhi_HighpTcut->
getTH1();
2628 histoname = labelname +
"_DenominatorPFMHT";
2629 title = labelname +
"DenominatorPFMHT;PF Pt[GeV/c]";
2631 DenominatorPFMHT->
getTH1();
2633 histoname = labelname +
"_DenominatorPFPt";
2634 title = labelname +
"DenominatorPFPt;PF Pt[GeV/c]";
2636 DenominatorPFPt->
getTH1();
2638 histoname = labelname +
"_DenominatorPFPtBarrel";
2639 title = labelname +
"DenominatorPFPtBarrel;Calo Pt[GeV/c]";
2641 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2642 DenominatorPFPtBarrel->
getTH1();
2644 histoname = labelname +
"_DenominatorPFPtEndcap";
2645 title = labelname +
"DenominatorPFPtEndcap;PF Pt[GeV/c]";
2647 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2648 DenominatorPFPtEndcap->
getTH1();
2650 histoname = labelname +
"_DenominatorPFPtForward";
2651 title = labelname +
"DenominatorPFPtForward;PF Pt[GeV/c] ";
2653 iBooker.
book1D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_);
2654 DenominatorPFPtForward->
getTH1();
2656 histoname = labelname +
"_DenominatorPFEta";
2657 title = labelname +
"DenominatorPFEta;PF #eta ";
2659 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2660 DenominatorPFEta->
getTH1();
2662 histoname = labelname +
"_DenominatorPFPhi";
2663 title = labelname +
"DenominatorPFPhi;PF #Phi";
2665 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2666 DenominatorPFPhi->
getTH1();
2668 histoname = labelname +
"_DenominatorPFEtaPhi";
2669 title = labelname +
"DenominatorPFEtaPhi;PF #eta; Calo #Phi";
2671 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2672 DenominatorPFEtaPhi->
getTH1();
2674 histoname = labelname +
"_DenominatorPFEtaBarrel";
2675 title = labelname +
"DenominatorPFEtaBarrel;Calo #eta ";
2677 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2678 DenominatorPFEtaBarrel->
getTH1();
2680 histoname = labelname +
"_DenominatorPFPhiBarrel";
2681 title = labelname +
"DenominatorPFPhiBarrel;PF #Phi";
2683 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2684 DenominatorPFPhiBarrel->
getTH1();
2686 histoname = labelname +
"_DenominatorPFEtaEndcap";
2687 title = labelname +
"DenominatorPFEtaEndcap;PF #eta ";
2689 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2690 DenominatorPFEtaEndcap->
getTH1();
2692 histoname = labelname +
"_DenominatorPFPhiEndcap";
2693 title = labelname +
"DenominatorPFPhiEndcap;Calo #Phi";
2695 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2696 DenominatorPFPhiEndcap->
getTH1();
2698 histoname = labelname +
"_DenominatorPFEtaForward";
2699 title = labelname +
"DenominatorPFEtaForward;PF #eta ";
2701 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2702 DenominatorPFEtaForward->
getTH1();
2704 histoname = labelname +
"_DenominatorPFPhiForward";
2705 title = labelname +
"DenominatorPFPhiForward;PF #Phi";
2707 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2708 DenominatorPFPhiForward->
getTH1();
2710 histoname = labelname +
"_DenominatorPFEta_LowpTcut";
2711 title = labelname +
"DenominatorPFEta_LowpTcut;PF #eta ";
2713 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2714 DenominatorPFEta_LowpTcut->
getTH1();
2716 histoname = labelname +
"_DenominatorPFPhi_LowpTcut";
2717 title = labelname +
"DenominatorPFPhi_LowpTcut;PF #Phi";
2719 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2720 DenominatorPFPhi_LowpTcut->
getTH1();
2722 histoname = labelname +
"_DenominatorPFEtaPhi_LowpTcut";
2723 title = labelname +
"DenominatorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2725 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2726 DenominatorPFEtaPhi_LowpTcut->
getTH1();
2728 histoname = labelname +
"_DenominatorPFEta_MedpTcut";
2729 title = labelname +
"DenominatorPFEta_MedpTcut;PF #eta ";
2731 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2732 DenominatorPFEta_MedpTcut->
getTH1();
2734 histoname = labelname +
"_DenominatorPFPhi_MedpTcut";
2735 title = labelname +
"DenominatorPFPhi_MedpTcut;PF #Phi";
2737 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2738 DenominatorPFPhi_MedpTcut->
getTH1();
2740 histoname = labelname +
"_DenominatorPFEtaPhi_MedpTcut";
2741 title = labelname +
"DenominatorPFEtaPhi_MedpTcut;PF #eta;Calo #Phi";
2743 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2744 DenominatorPFEtaPhi_MedpTcut->
getTH1();
2746 histoname = labelname +
"_DenominatorPFEta_HighpTcut";
2747 title = labelname +
"DenominatorPFEta_HighpTcut;PF #eta ";
2749 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2750 DenominatorPFEta_HighpTcut->
getTH1();
2752 histoname = labelname +
"_DenominatorPFPhi_HighpTcut";
2753 title = labelname +
"DenominatorPFPhi_HighpTcut;PF #Phi";
2755 iBooker.
book1D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_);
2756 DenominatorPFPhi_HighpTcut->
getTH1();
2758 histoname = labelname +
"_DenominatorPFEtaPhi_HighpTcut";
2759 title = labelname +
"DenominatorPFEtaPhi_HighpTcut;PF #eta;Calo #Phi";
2761 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Phibins_, PhiMin_, PhiMax_);
2762 DenominatorPFEtaPhi_HighpTcut->
getTH1();
2764 histoname = labelname +
"_PFDeltaR";
2765 title = labelname +
"PFDeltaR;";
2769 histoname = labelname +
"_PFDeltaPhi";
2770 title = labelname +
"PFDeltaPhi;";
2774 v.setEffHistos(NumeratorPt,
2786 NumeratorEtaForward,
2787 NumeratorPhiForward,
2788 NumeratorEta_LowpTcut,
2789 NumeratorPhi_LowpTcut,
2790 NumeratorEtaPhi_LowpTcut,
2791 NumeratorEta_MedpTcut,
2792 NumeratorPhi_MedpTcut,
2793 NumeratorEtaPhi_MedpTcut,
2794 NumeratorEta_HighpTcut,
2795 NumeratorPhi_HighpTcut,
2796 NumeratorEtaPhi_HighpTcut,
2799 DenominatorPtBarrel,
2800 DenominatorPtEndcap,
2801 DenominatorPtForward,
2806 DenominatorEtaBarrel,
2807 DenominatorPhiBarrel,
2808 DenominatorEtaEndcap,
2809 DenominatorPhiEndcap,
2810 DenominatorEtaForward,
2811 DenominatorPhiForward,
2812 DenominatorEta_LowpTcut,
2813 DenominatorPhi_LowpTcut,
2814 DenominatorEtaPhi_LowpTcut,
2815 DenominatorEta_MedpTcut,
2816 DenominatorPhi_MedpTcut,
2817 DenominatorEtaPhi_MedpTcut,
2818 DenominatorEta_HighpTcut,
2819 DenominatorPhi_HighpTcut,
2820 DenominatorEtaPhi_HighpTcut,
2826 NumeratorPFPtBarrel,
2827 NumeratorPFPtEndcap,
2828 NumeratorPFPtForward,
2832 NumeratorPFEtaBarrel,
2833 NumeratorPFPhiBarrel,
2834 NumeratorPFEtaEndcap,
2835 NumeratorPFPhiEndcap,
2836 NumeratorPFEtaForward,
2837 NumeratorPFPhiForward,
2838 NumeratorPFEta_LowpTcut,
2839 NumeratorPFPhi_LowpTcut,
2840 NumeratorPFEtaPhi_LowpTcut,
2841 NumeratorPFEta_MedpTcut,
2842 NumeratorPFPhi_MedpTcut,
2843 NumeratorPFEtaPhi_MedpTcut,
2844 NumeratorPFEta_HighpTcut,
2845 NumeratorPFPhi_HighpTcut,
2846 NumeratorPFEtaPhi_HighpTcut,
2849 DenominatorPFPtBarrel,
2850 DenominatorPFPtEndcap,
2851 DenominatorPFPtForward,
2854 DenominatorPFEtaPhi,
2855 DenominatorPFEtaBarrel,
2856 DenominatorPFPhiBarrel,
2857 DenominatorPFEtaEndcap,
2858 DenominatorPFPhiEndcap,
2859 DenominatorPFEtaForward,
2860 DenominatorPFPhiForward,
2861 DenominatorPFEta_LowpTcut,
2862 DenominatorPFPhi_LowpTcut,
2863 DenominatorPFEtaPhi_LowpTcut,
2864 DenominatorPFEta_MedpTcut,
2865 DenominatorPFPhi_MedpTcut,
2866 DenominatorPFEtaPhi_MedpTcut,
2867 DenominatorPFEta_HighpTcut,
2868 DenominatorPFPhi_HighpTcut,
2869 DenominatorPFEtaPhi_HighpTcut,
2876 histoname = labelname +
"_NumeratorAvrgPt";
2877 title = labelname +
"NumeratorAvrgPt;Calo Pt[GeV/c]";
2881 histoname = labelname +
"_NumeratorAvrgEta";
2882 title = labelname +
"NumeratorAvrgEta;Calo #eta";
2886 histoname = labelname +
"_DenominatorAvrgPt";
2887 title = labelname +
"DenominatorAvrgPt;Calo Pt[GeV/c] ";
2891 histoname = labelname +
"_DenominatorAvrgEta";
2892 title = labelname +
"DenominatorAvrgEta;Calo #eta";
2894 DenominatorEta->
getTH1();
2896 histoname = labelname +
"_DeltaR";
2897 title = labelname +
"DeltaR;";
2901 histoname = labelname +
"_DeltaPhi";
2902 title = labelname +
"DeltaPhi;";
2907 histoname = labelname +
"_NumeratorAvrgPFPt";
2908 title = labelname +
"NumeratorAvrgPFPt;PF Pt[GeV/c]";
2912 histoname = labelname +
"_NumeratorAvrgPFEta";
2913 title = labelname +
"NumeratorAvrgPFEta;PF #eta";
2915 NumeratorPFEta->
getTH1();
2917 histoname = labelname +
"_DenominatorAvrgPFPt";
2918 title = labelname +
"DenominatorAvrgPFPt;PF Pt[GeV/c] ";
2920 DenominatorPFPt->
getTH1();
2922 histoname = labelname +
"_DenominatorAvrgPFEta";
2923 title = labelname +
"DenominatorAvrgPFEta;PF #eta";
2925 iBooker.
book1D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_);
2926 DenominatorPFEta->
getTH1();
2928 histoname = labelname +
"_PFDeltaR";
2929 title = labelname +
"PFDeltaR;";
2933 histoname = labelname +
"_PFDeltaPhi";
2934 title = labelname +
"PFDeltaPhi;";
3035 histoname = labelname +
"_NumeratorPt";
3036 if (
v.getPath().find(
"HLT_PFMET") == std::string::npos)
3037 title = labelname +
"NumeratorPt; CaloMET[GeV/c]";
3039 title = labelname +
"NumeratorPt; PFMET[GeV/c]";
3043 histoname = labelname +
"_NumeratorPhi";
3044 title = labelname +
"NumeratorPhi; #Phi";
3048 histoname = labelname +
"_DenominatorPt";
3049 if (
v.getPath().find(
"HLT_PFMET") == std::string::npos)
3050 title = labelname +
"DenominatorPt; CaloMET[GeV/c]";
3052 title = labelname +
"DenominatorPt; PFMET[GeV/c]";
3056 histoname = labelname +
"_DenominatorPhi";
3057 title = labelname +
"DenominatorPhi; #Phi";
3059 DenominatorPhi->
getTH1();
3061 v.setEffHistos(NumeratorPt,
3168 double PtMax_ = 1000.;
3169 double EtaMin_ = -5.;
3170 double EtaMax_ = 5.;
3171 double PhiMin_ = -3.14159;
3172 double PhiMax_ = 3.14159;
3186 histoname = labelname +
"_TriggerSummary";
3187 title = labelname +
"Summary of trigger levels";
3190 std::vector<std::string>
trigger;
3192 trigger.emplace_back(
"L1 failed");
3193 trigger.emplace_back(
"L1 & HLT failed");
3194 trigger.emplace_back(
"L1 failed but not HLT");
3195 trigger.emplace_back(
"L1 passed");
3196 trigger.emplace_back(
"L1 & HLT passed");
3197 trigger.emplace_back(
"L1 passed but not HLT");
3199 for (
unsigned int i = 0;
i <
trigger.size();
i++)
3202 if ((
v.getTriggerType() ==
"SingleJet_Trigger")) {
3203 histoname = labelname +
"_JetPt";
3204 title = labelname +
"Leading jet pT;Pt[GeV/c]";
3208 histoname = labelname +
"_JetEtaVsPt";
3209 title = labelname +
"Leading jet #eta vs pT;#eta;Pt[GeV/c]";
3211 iBooker.
book2D(histoname.c_str(),
title.c_str(), Etabins_, EtaMin_, EtaMax_, Ptbins_, PtMin_, PtMax_);
3214 histoname = labelname +
"_JetPhiVsPt";
3215 title = labelname +
"Leading jet #Phi vs pT;#Phi;Pt[GeV/c]";
3217 iBooker.
book2D(histoname.c_str(),
title.c_str(), Phibins_, PhiMin_, PhiMax_, Ptbins_, PtMin_, PtMax_);
3221 TriggerSummary,
dummy, JetPt, JetEtaVsPt, JetPhiVsPt,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy);
3224 if ((
v.getTriggerType() ==
"DiJet_Trigger")) {
3225 histoname = labelname +
"_JetSize";
3226 title = labelname +
"Jet Size;multiplicity";
3230 histoname = labelname +
"_AvergPt";
3231 title = labelname +
"Average Pt;Pt[GeV/c]";
3235 histoname = labelname +
"_AvergEta";
3236 title = labelname +
"Average Eta;#eta";
3240 histoname = labelname +
"_PhiDifference";
3241 title = labelname +
"#Delta#Phi;#Delta#Phi";
3245 histoname = labelname +
"_Pt3Jet";
3246 title = labelname +
"Pt of 3rd Jet;Pt[GeV/c]";
3250 histoname = labelname +
"_Pt12VsPt3Jet";
3251 title = labelname +
"Pt of 3rd Jet vs Average Pt of leading jets;Avergage Pt[GeV/c]; Pt of 3rd Jet [GeV/c]";
3253 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Ptbins_, PtMin_, PtMax_);
3256 histoname = labelname +
"_Pt12VsPhi12";
3258 "Average Pt of leading jets vs #Delta#Phi between leading jets;Avergage Pt[GeV/c]; #Delta#Phi";
3260 iBooker.
book2D(histoname.c_str(),
title.c_str(), Ptbins_, PtMin_, PtMax_, Phibins_, PhiMin_, PhiMax_);
3263 v.setDgnsHistos(
TriggerSummary, JetSize,
dummy,
dummy,
dummy, Pt12, Eta12, Phi12, Pt3, Pt12Pt3, Pt12Phi12);
3266 if ((
v.getTriggerType() ==
"MET_Trigger")) {
3267 histoname = labelname +
"_MET";
3268 title = labelname +
"MET;Pt[GeV/c]";
3272 v.setDgnsHistos(
TriggerSummary,
dummy,
MET,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy);
3275 if ((
v.getTriggerType() ==
"TET_Trigger")) {
3276 histoname = labelname +
"_TET";
3277 title = labelname +
"TET;Pt[GeV/c]";
3281 v.setDgnsHistos(
TriggerSummary,
dummy, TET,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy,
dummy);
3296 for (
auto& numpathmodule : numpathmodules) {
3298 l1pathname = numpathmodule;
3308 if (fabs(
eta) <= 1.3)
3316 if (fabs(
eta) <= 3.0 && fabs(
eta) > 1.3)
3324 if (fabs(
eta) > 3.0)
3356 double binVal = -100;
3357 for (
int ibin = 1; ibin <
nbins + 1; ibin++) {
3358 const char* binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
3359 if (binLabel[0] ==
'\0')
3381 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_