44 LogDebug(
"JetMETHLTOfflineSource") <<
"constructor....";
93 std::vector<edm::ParameterSet> paths = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"pathPairs");
94 for(
auto &
path : paths) {
117 cout <<
"============================================================" << endl;
118 cout <<
" New event" << endl << endl;
126 if (
verbose_)
cout <<
" triggerResults not valid" << endl;
127 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"TriggerResults not found, " 142 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"TriggerEvent not found, " 151 cout <<
"============================================================" << endl;
152 cout <<
" Reading in offline objects" << endl << endl;
178 cout <<
"============================================================" << endl;
179 cout <<
" Read in offline objects" << endl << endl;
187 for(
int i=0;
i<2;
i++){
210 auto calojet_ =
calojet.begin();
211 for(; calojet_ !=
calojet.end(); ++calojet_){
252 auto pfjet_ =
pfjet.begin();
253 for(; pfjet_ !=
pfjet.end(); ++pfjet_){
257 if(scale*pfjet_->pt()>
PFJetPt[0]){
268 PFJetPt[0] = scale*pfjet_->pt();
269 PFJetPx[0] = scale*pfjet_->px();
270 PFJetPy[0] = scale*pfjet_->py();
273 PFJetNHEF[0] = pfjet_->neutralHadronEnergyFraction();
274 PFJetCHEF[0] = pfjet_->chargedHadronEnergyFraction();
275 PFJetNEMF[0] = pfjet_->neutralEmEnergyFraction();
276 PFJetCEMF[0] = pfjet_->chargedEmEnergyFraction();
278 else if(scale*pfjet_->pt()<
PFJetPt[0] && scale*pfjet_->pt()>
PFJetPt[1] ){
279 PFJetPt[1] = scale*pfjet_->pt();
280 PFJetPx[1] = scale*pfjet_->px();
281 PFJetPy[1] = scale*pfjet_->py();
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++){
315 cout <<
">> Inside fillMEforMonTriggerSummary " << endl;
320 for (
unsigned int j=0; j!=nPath; ++j) {
322 if(pathname.find(MuonTrigPath) != std::string::npos){
325 if(
verbose_)
cout<<
"fillMEforMonTriggerSummary: Muon Match"<<endl;
336 for (
unsigned int j=0; j!=nPath; ++j) {
338 if(pathname.find(MBTrigPath) != std::string::npos){
341 if(
verbose_)
cout<<
"fillMEforMonTriggerSummary: MinBias Match"<<endl;
351 bool trigFirst=
false;
354 if(!trigFirst)
continue;
368 bool trigSec =
false;
371 if(trigSec && trigFirst){
376 if(!trigSec && trigFirst){
388 for (
auto const & itv : *Vtx){
404 cout <<
">> Inside fillMEforTriggerNTfired" << endl;
407 cout <<
" ... and triggerResults is valid" << endl;
413 v.getMEhisto_TriggerSummary()->Fill(0.);
416 bool l1found =
false;
417 if(l1Index < triggerObj_->sizeFilters() ) l1found =
true;
418 if(!l1found)
v.getMEhisto_TriggerSummary()->Fill(1.);
421 if(l1found)
v.getMEhisto_TriggerSummary()->Fill(4.);
428 v.getMEhisto_JetPt()->Fill(
jet->pt());
429 v.getMEhisto_EtavsPt()->Fill(
jet->eta(),
jet->pt());
430 v.getMEhisto_PhivsPt()->Fill(
jet->phi(),
jet->pt());
435 v.getMEhisto_JetSize()->Fill(
calojet.size());
438 auto jet2=
calojet.begin(); jet2++;
444 v.getMEhisto_Pt12()->Fill((
jet->pt()+jet2->pt())/2.);
445 v.getMEhisto_Eta12()->Fill((
jet->eta()+jet2->eta())/2.);
446 v.getMEhisto_Phi12()->Fill(
deltaPhi(
jet->phi(),jet2->phi()));
447 v.getMEhisto_Pt3()->Fill(jet3pt);
448 v.getMEhisto_Pt12Pt3()->Fill((
jet->pt()+jet2->pt())/2., jet3pt);
449 v.getMEhisto_Pt12Phi12()->Fill((
jet->pt()+jet2->pt())/2.,
deltaPhi(
jet->phi(),jet2->phi()));
453 if(((
v.getTriggerType() ==
"MET_Trigger")|| (
v.getTriggerType() ==
"TET_Trigger")) &&
calometColl_.
isValid() ){
456 v.getMEhisto_JetPt()->Fill(met.
pt());
468 cout <<
">> Inside fillMEforMonAllTrigger " << endl;
471 cout <<
" ... and triggerResults is valid" << endl;
476 cout <<
" + Checking path " <<
v.getPath();
479 cout <<
" - failed" << endl;
483 cout <<
" - PASSED! " << endl;
486 std::vector<double>jetPtVec;
487 std::vector<double>jetPhiVec;
488 std::vector<double>jetEtaVec;
489 std::vector<double>jetPxVec;
490 std::vector<double>jetPyVec;
491 std::vector<double>hltPtVec;
492 std::vector<double>hltPhiVec;
493 std::vector<double>hltEtaVec;
494 std::vector<double>hltPxVec;
495 std::vector<double>hltPyVec;
502 cout <<
" - L1Path = " <<
v.getl1Path() << endl;
503 cout <<
" - Label = " <<
v.getLabel() << endl;
510 cout <<
" - l1Index = " << l1Index <<
" - l1Tag = [" << l1Tag <<
"]" << endl;
516 cout <<
" - hltIndex = " << hltIndex <<
" - hltTag = [" << hltTag <<
"]" << endl;
520 bool hltTrigBool =
false;
521 bool diJetFire =
false;
525 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index "<< l1Index <<
" of that name "<<l1Tag;
527 cout <<
"[JetMETHLTOfflineSource::fillMEforMonAllTrigger] - No index l1Index=" 528 << l1Index <<
" of that name \"" << l1Tag <<
"\"" << endl;
535 &&
v.getTriggerType() ==
"SingleJet_Trigger")
536 v.getMEhisto_N_L1()->Fill(kl1.size());
538 auto ki = kl1.begin();
539 for(; ki != kl1.end(); ++ki){
540 double l1TrigEta = -100;
541 double l1TrigPhi = -100;
544 l1TrigEta = toc[*ki].eta();
545 l1TrigPhi = toc[*ki].phi();
546 if(
v.getTriggerType() ==
"SingleJet_Trigger"){
547 v.getMEhisto_Pt_L1()->Fill(toc[*ki].
pt());
548 if (
isBarrel(toc[*ki].
eta()))
v.getMEhisto_PtBarrel_L1()->Fill(toc[*ki].
pt());
549 if (
isEndCap(toc[*ki].
eta()))
v.getMEhisto_PtEndcap_L1()->Fill(toc[*ki].
pt());
550 if (
isForward(toc[*ki].
eta()))
v.getMEhisto_PtForward_L1()->Fill(toc[*ki].
pt());
551 v.getMEhisto_Eta_L1()->Fill(toc[*ki].
eta());
552 v.getMEhisto_Phi_L1()->Fill(toc[*ki].
phi());
553 v.getMEhisto_EtaPhi_L1()->Fill(toc[*ki].
eta(),toc[*ki].
phi());
558 v.getMEhisto_Pt_L1()->Fill(toc[*ki].
pt());
559 v.getMEhisto_Phi_L1()->Fill(toc[*ki].
phi());
564 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
566 cout <<
"[JetMETHLTOfflineSource::fillMEforMonAllTrigger] - No index hltIndex=" 567 << hltIndex <<
" of that name " << endl;
573 &&
v.getTriggerType() ==
"SingleJet_Trigger")
574 v.getMEhisto_N_HLT()->Fill(khlt.size());
576 auto kj = khlt.begin();
578 for(;kj != khlt.end(); ++kj){
580 double hltTrigEta = -100;
581 double hltTrigPhi = -100;
582 hltTrigEta = toc[*kj].eta();
583 hltTrigPhi = toc[*kj].phi();
584 if((
deltaR(hltTrigEta, hltTrigPhi, l1TrigEta, l1TrigPhi)) < 0.4
585 && (
v.getTriggerType() ==
"DiJet_Trigger"))
591 for(;kj != khlt.end(); ++kj){
592 double hltTrigEta = -100.;
593 double hltTrigPhi = -100.;
597 cout <<
"+ MET Triggers plots" << endl;
599 v.getMEhisto_Pt_HLT()->Fill(toc[*kj].
pt());
600 v.getMEhisto_Phi_HLT()->Fill(toc[*kj].
phi());
601 v.getMEhisto_PtCorrelation_L1HLT()->Fill(toc[*ki].
pt(),toc[*kj].
pt());
602 v.getMEhisto_PhiCorrelation_L1HLT()->Fill(toc[*ki].
phi(),toc[*kj].
phi());
603 v.getMEhisto_PtResolution_L1HLT()->Fill((toc[*ki].
pt()-toc[*kj].
pt())/(toc[*ki].
pt()));
604 v.getMEhisto_PhiResolution_L1HLT()->Fill(toc[*ki].
phi()-toc[*kj].
phi());
608 cout <<
"+ Jet Trigger plots" << endl;
611 cout <<
" - Going for those..." << endl;
612 hltTrigEta = toc[*kj].eta();
613 hltTrigPhi = toc[*kj].phi();
614 if((
deltaR(hltTrigEta, hltTrigPhi, l1TrigEta, l1TrigPhi)) < 0.4){
615 if(
v.getTriggerType() ==
"SingleJet_Trigger"){
616 v.getMEhisto_PtCorrelation_L1HLT()->Fill(toc[*ki].
pt(),toc[*kj].
pt());
617 v.getMEhisto_EtaCorrelation_L1HLT()->Fill(toc[*ki].
eta(),toc[*kj].
eta());
618 v.getMEhisto_PhiCorrelation_L1HLT()->Fill(toc[*ki].
phi(),toc[*kj].
phi());
619 v.getMEhisto_PtResolution_L1HLT()->Fill((toc[*ki].
pt()-toc[*kj].
pt())/(toc[*ki].
pt()));
620 v.getMEhisto_EtaResolution_L1HLT()->Fill(toc[*ki].
eta()-toc[*kj].
eta());
621 v.getMEhisto_PhiResolution_L1HLT()->Fill(toc[*ki].
phi()-toc[*kj].
phi());
624 if(((
deltaR(hltTrigEta, hltTrigPhi, l1TrigEta, l1TrigPhi) < 0.4 )
625 || ((
v.getTriggerType() ==
"DiJet_Trigger") && hltTrigBool)) && !diJetFire){
626 if(
v.getTriggerType() ==
"SingleJet_Trigger"){
627 v.getMEhisto_Pt_HLT()->Fill(toc[*kj].
pt());
628 if (
isBarrel(toc[*kj].
eta()))
v.getMEhisto_PtBarrel_HLT()->Fill(toc[*kj].
pt());
629 if (
isEndCap(toc[*kj].
eta()))
v.getMEhisto_PtEndcap_HLT()->Fill(toc[*kj].
pt());
630 if (
isForward(toc[*kj].
eta()))
v.getMEhisto_PtForward_HLT()->Fill(toc[*kj].
pt());
631 v.getMEhisto_Eta_HLT()->Fill(toc[*kj].
eta());
632 v.getMEhisto_Phi_HLT()->Fill(toc[*kj].
phi());
633 v.getMEhisto_EtaPhi_HLT()->Fill(toc[*kj].
eta(),toc[*kj].
phi());
639 && (
v.getPath() ==
"PFJet")){
642 for(
int iCalo=0; iCalo<2; iCalo++){
645 if(
v.getTriggerType() ==
"SingleJet_Trigger"){
655 v.getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
pt(),
CaloJetPt[iCalo]);
656 v.getMEhisto_EtaCorrelation_HLTRecObj()->Fill(toc[*kj].
eta(),
CaloJetEta[iCalo]);
657 v.getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),
CaloJetPhi[iCalo]);
659 v.getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
pt()-
CaloJetPt[iCalo])/(toc[*kj].
pt()));
660 v.getMEhisto_EtaResolution_HLTRecObj()->Fill(toc[*kj].
eta()-
CaloJetEta[iCalo]);
661 v.getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi()-
CaloJetPhi[iCalo]);
665 if((
v.getTriggerType() ==
"DiJet_Trigger")){
672 hltPhiVec.push_back(toc[*kj].
phi());
673 hltPtVec.push_back(toc[*kj].
pt());
674 hltEtaVec.push_back(toc[*kj].
eta());
675 hltPxVec.push_back(toc[*kj].px());
676 hltPyVec.push_back(toc[*kj].py());
685 && (
v.getPath() !=
"PFJet")){
688 for(
int iPF=0; iPF<2; iPF++){
691 if(
v.getTriggerType() ==
"SingleJet_Trigger"){
692 v.getMEhisto_Pt()->Fill(
PFJetPt[iPF]);
701 v.getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
pt(),
PFJetPt[iPF]);
702 v.getMEhisto_EtaCorrelation_HLTRecObj()->Fill(toc[*kj].
eta(),
PFJetEta[iPF]);
703 v.getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),
PFJetPhi[iPF]);
705 v.getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
pt()-
PFJetPt[iPF])/(toc[*kj].
pt()));
706 v.getMEhisto_EtaResolution_HLTRecObj()->Fill(toc[*kj].
eta()-
PFJetEta[iPF]);
707 v.getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi()-
PFJetPhi[iPF]);
711 if((
v.getTriggerType() ==
"DiJet_Trigger")){
713 jetPtVec.push_back(
PFJetPt[iPF]);
715 jetPxVec.push_back(
PFJetPx[iPF]);
716 jetPyVec.push_back(
PFJetPy[iPF]);
718 hltPhiVec.push_back(toc[*kj].
phi());
719 hltPtVec.push_back(toc[*kj].
pt());
720 hltEtaVec.push_back(toc[*kj].
eta());
721 hltPxVec.push_back(toc[*kj].px());
722 hltPyVec.push_back(toc[*kj].py());
734 && (
v.getPath().find(
"HLT_PFMET")==std::string::npos)){
738 v.getMEhisto_Pt()->Fill(met.
et());
739 v.getMEhisto_Phi()->Fill(met.
phi());
741 v.getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
et(),met.
et());
742 v.getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),met.
phi());
743 v.getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
et()-met.
et())/(toc[*kj].
et()));
744 v.getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi()-met.
phi());
750 && (
v.getPath().find(
"HLT_PFMET")!=std::string::npos)){
752 const PFMET pfmet = pfmetcol->front();
754 v.getMEhisto_Pt()->Fill(pfmet.
et());
755 v.getMEhisto_Phi()->Fill(pfmet.
phi());
757 v.getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
et(),pfmet.
et());
758 v.getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),pfmet.
phi());
759 v.getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
et()-pfmet.
et())/(toc[*kj].
et()));
760 v.getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi()-pfmet.
phi());
763 if((
v.getTriggerType() ==
"DiJet_Trigger")) diJetFire =
true;
767 v.getMEhisto_N()->Fill(jetsize);
770 if((
v.getTriggerType() ==
"DiJet_Trigger") && jetPtVec.size() >1){
771 double AveJetPt = (jetPtVec[0] + jetPtVec[1])/2;
772 double AveJetEta = (jetEtaVec[0] + jetEtaVec[1])/2;
773 double JetDelPhi =
deltaPhi(jetPhiVec[0],jetPhiVec[1]);
774 double AveHLTPt = (hltPtVec[0] + hltPtVec[1])/2;
775 double AveHLTEta = (hltEtaVec[0] + hltEtaVec[1])/2;
776 double HLTDelPhi =
deltaPhi(hltPhiVec[0],hltPhiVec[1]);
777 v.getMEhisto_AveragePt_RecObj()->Fill(AveJetPt);
778 v.getMEhisto_AverageEta_RecObj()->Fill(AveJetEta);
779 v.getMEhisto_DeltaPhi_RecObj()->Fill(JetDelPhi);
781 v.getMEhisto_AveragePt_HLTObj()->Fill(AveHLTPt);
782 v.getMEhisto_AverageEta_HLTObj()->Fill(AveHLTEta);
783 v.getMEhisto_DeltaPhi_HLTObj()->Fill(HLTDelPhi);
788 cout <<
"<< Exiting fillMEforMonAllTrigger " << endl;
800 bool denompassed =
false;
801 bool numpassed =
false;
816 if(denompassed==
false)
continue;
827 double trigLowpTcut = 0;
828 double trigMedpTcut = 0;
829 double trigHighpTcut = 0;
830 double trigLowpTcutFwd = 0;
831 double trigMedpTcutFwd = 0;
832 double trigHighpTcutFwd = 0;
835 double trigLowpTPFcut = 0;
836 double trigMedpTPFcut = 0;
837 double trigHighpTPFcut = 0;
838 double trigLowpTPFcutFwd = 0;
839 double trigMedpTPFcutFwd = 0;
840 double trigHighpTPFcutFwd = 0;
843 size_t jetstrfound =
v.getPath().find(
"Jet");
845 string tpath =
v.getPath();
849 if(jetstrfound != string::npos){
851 for(
int trig =
int(jetstrfound)+3; trig <
int(jetstrfound)+7; trig++){
852 if(!isdigit(tpath[trig]))
break;
853 jetTrigVal+=tpath[trig];
855 jetVal=atof(jetTrigVal.c_str());
860 trigMedpTcut = jetVal + 5.;
861 trigHighpTcut = jetVal + 10.;
863 trigLowpTcutFwd = jetVal + 9.;
864 trigMedpTcutFwd = jetVal + 15.;
865 trigHighpTcutFwd = jetVal + 21.;
869 trigMedpTcut = jetVal + 2.;
870 trigHighpTcut = jetVal + 60.;
872 trigLowpTcutFwd = jetVal + 22.;
873 trigMedpTcutFwd = jetVal + 25.;
874 trigHighpTcutFwd = jetVal + 110.;
876 trigLowpTcut = jetVal;
882 trigMedpTPFcut = jetVal + 20.;
883 trigHighpTPFcut = jetVal + 40.;
885 trigLowpTPFcutFwd = jetVal + 60.;
886 trigMedpTPFcutFwd = jetVal + 80.;
887 trigHighpTPFcutFwd = jetVal + 100.;
891 trigMedpTPFcut = jetVal + 40.;
892 trigHighpTPFcut = jetVal + 140.;
894 trigLowpTPFcutFwd = jetVal + 110.;
895 trigMedpTPFcutFwd = jetVal + 130.;
896 trigHighpTPFcutFwd = jetVal + 190.;
898 trigLowpTPFcut = jetVal;
904 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: CaloJet -------------------" << std::endl;
909 bool jetIDbool =
false;
916 if((
v.getTriggerType() ==
"SingleJet_Trigger") && !
calojet.empty()){
918 if(
verbose_)
cout<<
"Passed CaloJet ID -------------------" << endl;
921 v.getMEhisto_DenominatorPt()->Fill(leadjpt);
922 if (
isBarrel(leadjeta))
v.getMEhisto_DenominatorPtBarrel()->Fill(leadjpt);
923 if (
isEndCap(leadjeta))
v.getMEhisto_DenominatorPtEndcap()->Fill(leadjpt);
924 if (
isForward(leadjeta))
v.getMEhisto_DenominatorPtForward()->Fill(leadjpt);
925 v.getMEhisto_DenominatorEta()->Fill(leadjeta);
926 v.getMEhisto_DenominatorPhi()->Fill(leadjphi);
927 v.getMEhisto_DenominatorEtaPhi()->Fill(leadjeta,leadjphi);
929 v.getMEhisto_DenominatorEtaBarrel()->Fill(leadjeta);
930 v.getMEhisto_DenominatorPhiBarrel()->Fill(leadjphi);
933 v.getMEhisto_DenominatorEtaEndcap()->Fill(leadjeta);
934 v.getMEhisto_DenominatorPhiEndcap()->Fill(leadjphi);
937 v.getMEhisto_DenominatorEtaForward()->Fill(leadjeta);
938 v.getMEhisto_DenominatorPhiForward()->Fill(leadjphi);
940 if((leadjpt > trigLowpTcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))){
941 v.getMEhisto_DenominatorEta_LowpTcut()->Fill(leadjeta);
942 v.getMEhisto_DenominatorPhi_LowpTcut()->Fill(leadjphi);
943 v.getMEhisto_DenominatorEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
945 if((leadjpt > trigMedpTcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))){
946 v.getMEhisto_DenominatorEta_MedpTcut()->Fill(leadjeta);
947 v.getMEhisto_DenominatorPhi_MedpTcut()->Fill(leadjphi);
948 v.getMEhisto_DenominatorEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
950 if((leadjpt > trigHighpTcut && !
isForward(leadjeta)) || (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))){
951 v.getMEhisto_DenominatorEta_HighpTcut()->Fill(leadjeta);
952 v.getMEhisto_DenominatorPhi_HighpTcut()->Fill(leadjphi);
953 v.getMEhisto_DenominatorEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
959 double dRmin = 99999.;
960 double dPhimin = 9999.;
961 if(
v.getPath().find(
"L1") != std::string::npos){
963 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
967 for(
unsigned short ki : kl1){
968 double dR =
deltaR(toc[ki].
eta(), toc[ki].
phi(), leadjeta, leadjphi);
977 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
981 auto kj = khlt.begin();
982 for(;kj != khlt.end(); ++kj){
994 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
995 v.getMEhisto_DeltaR()->Fill(dRmin);
998 if(dRmin < 0.1 || (
v.getPath().find(
"L1") != std::string::npos && dRmin < 0.4)){
999 v.getMEhisto_NumeratorPt()->Fill(leadjpt);
1000 if (
isBarrel(leadjeta))
v.getMEhisto_NumeratorPtBarrel()->Fill(leadjpt);
1001 if (
isEndCap(leadjeta))
v.getMEhisto_NumeratorPtEndcap()->Fill(leadjpt);
1002 if (
isForward(leadjeta))
v.getMEhisto_NumeratorPtForward()->Fill(leadjpt);
1003 v.getMEhisto_NumeratorEta()->Fill(leadjeta);
1004 v.getMEhisto_NumeratorPhi()->Fill(leadjphi);
1005 v.getMEhisto_NumeratorEtaPhi()->Fill(leadjeta,leadjphi);
1007 v.getMEhisto_NumeratorEtaBarrel()->Fill(leadjeta);
1008 v.getMEhisto_NumeratorPhiBarrel()->Fill(leadjphi);
1011 v.getMEhisto_NumeratorEtaEndcap()->Fill(leadjeta);
1012 v.getMEhisto_NumeratorPhiEndcap()->Fill(leadjphi);
1015 v.getMEhisto_NumeratorEtaForward()->Fill(leadjeta);
1016 v.getMEhisto_NumeratorPhiForward()->Fill(leadjphi);
1018 if((leadjpt > trigLowpTcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))){
1019 v.getMEhisto_NumeratorEta_LowpTcut()->Fill(leadjeta);
1020 v.getMEhisto_NumeratorPhi_LowpTcut()->Fill(leadjphi);
1021 v.getMEhisto_NumeratorEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
1023 if((leadjpt > trigMedpTcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))){
1024 v.getMEhisto_NumeratorEta_MedpTcut()->Fill(leadjeta);
1025 v.getMEhisto_NumeratorPhi_MedpTcut()->Fill(leadjphi);
1026 v.getMEhisto_NumeratorEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
1028 if((leadjpt > trigHighpTcut && !
isForward(leadjeta)) || (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))){
1029 v.getMEhisto_NumeratorEta_HighpTcut()->Fill(leadjeta);
1030 v.getMEhisto_NumeratorPhi_HighpTcut()->Fill(leadjphi);
1031 v.getMEhisto_NumeratorEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
1038 if(jetIDbool ==
true && (
v.getTriggerType() ==
"DiJet_Trigger") &&
calojet.size()>1){
1043 if(numpassed==
true){
1052 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: PFJet -------------------" << std::endl;
1057 bool jetIDbool =
false;
1076 if((
v.getTriggerType() ==
"SingleJet_Trigger") && !
pfjet.empty()){
1079 _pfMHT =
sqrt(pfMHTx*pfMHTx + pfMHTy*pfMHTy);
1080 v.getMEhisto_DenominatorPFMHT()->Fill(
_pfMHT);
1086 if(
verbose_)
cout<<
"Passed PFJet ID -------------------" << endl;
1088 v.getMEhisto_DenominatorPFPt()->Fill(leadjpt);
1089 if (
isBarrel(leadjeta))
v.getMEhisto_DenominatorPFPtBarrel()->Fill(leadjpt);
1090 if (
isEndCap(leadjeta))
v.getMEhisto_DenominatorPFPtEndcap()->Fill(leadjpt);
1091 if (
isForward(leadjeta))
v.getMEhisto_DenominatorPFPtForward()->Fill(leadjpt);
1092 v.getMEhisto_DenominatorPFEta()->Fill(leadjeta);
1093 v.getMEhisto_DenominatorPFPhi()->Fill(leadjphi);
1094 v.getMEhisto_DenominatorPFEtaPhi()->Fill(leadjeta,leadjphi);
1096 v.getMEhisto_DenominatorPFEtaBarrel()->Fill(leadjeta);
1097 v.getMEhisto_DenominatorPFPhiBarrel()->Fill(leadjphi);
1100 v.getMEhisto_DenominatorPFEtaEndcap()->Fill(leadjeta);
1101 v.getMEhisto_DenominatorPFPhiEndcap()->Fill(leadjphi);
1104 v.getMEhisto_DenominatorPFEtaForward()->Fill(leadjeta);
1105 v.getMEhisto_DenominatorPFPhiForward()->Fill(leadjphi);
1107 if((leadjpt > trigLowpTPFcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))){
1108 v.getMEhisto_DenominatorPFEta_LowpTcut()->Fill(leadjeta);
1109 v.getMEhisto_DenominatorPFPhi_LowpTcut()->Fill(leadjphi);
1110 v.getMEhisto_DenominatorPFEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
1112 if((leadjpt > trigMedpTPFcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))){
1113 v.getMEhisto_DenominatorPFEta_MedpTcut()->Fill(leadjeta);
1114 v.getMEhisto_DenominatorPFPhi_MedpTcut()->Fill(leadjphi);
1115 v.getMEhisto_DenominatorPFEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
1117 if((leadjpt > trigHighpTPFcut && !
isForward(leadjeta)) || (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))){
1118 v.getMEhisto_DenominatorPFEta_HighpTcut()->Fill(leadjeta);
1119 v.getMEhisto_DenominatorPFPhi_HighpTcut()->Fill(leadjphi);
1120 v.getMEhisto_DenominatorPFEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
1125 double dRmin = 99999.;
1126 double dPhimin = 9999.;
1127 if(
v.getPath().find(
"L1") != std::string::npos){
1129 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1133 for(
unsigned short ki : kl1){
1134 double dR =
deltaR(toc[ki].
eta(), toc[ki].
phi(), leadjeta, leadjphi);
1143 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1147 for(
unsigned short kj : khlt){
1148 double dR =
deltaR(toc[kj].
eta(), toc[kj].
phi(), leadjeta, leadjphi);
1157 v.getMEhisto_PFDeltaPhi()->Fill(dPhimin);
1158 v.getMEhisto_PFDeltaR()->Fill(dRmin);
1161 if(dRmin < 0.1 || (
v.getPath().find(
"L1") != std::string::npos && dRmin < 0.4)){
1162 v.getMEhisto_NumeratorPFPt()->Fill(leadjpt);
1163 if (
isBarrel(leadjeta))
v.getMEhisto_NumeratorPFPtBarrel()->Fill(leadjpt);
1164 if (
isEndCap(leadjeta))
v.getMEhisto_NumeratorPFPtEndcap()->Fill(leadjpt);
1165 if (
isForward(leadjeta))
v.getMEhisto_NumeratorPFPtForward()->Fill(leadjpt);
1166 v.getMEhisto_NumeratorPFEta()->Fill(leadjeta);
1167 v.getMEhisto_NumeratorPFPhi()->Fill(leadjphi);
1168 v.getMEhisto_NumeratorPFEtaPhi()->Fill(leadjeta,leadjphi);
1170 v.getMEhisto_NumeratorPFEtaBarrel()->Fill(leadjeta);
1171 v.getMEhisto_NumeratorPFPhiBarrel()->Fill(leadjphi);
1174 v.getMEhisto_NumeratorPFEtaEndcap()->Fill(leadjeta);
1175 v.getMEhisto_NumeratorPFPhiEndcap()->Fill(leadjphi);
1178 v.getMEhisto_NumeratorPFEtaForward()->Fill(leadjeta);
1179 v.getMEhisto_NumeratorPFPhiForward()->Fill(leadjphi);
1181 if((leadjpt > trigLowpTPFcut && !
isForward(leadjeta))
1182 || (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))){
1183 v.getMEhisto_NumeratorPFEta_LowpTcut()->Fill(leadjeta);
1184 v.getMEhisto_NumeratorPFPhi_LowpTcut()->Fill(leadjphi);
1185 v.getMEhisto_NumeratorPFEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
1187 if((leadjpt > trigMedpTPFcut && !
isForward(leadjeta))
1188 || (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))){
1189 v.getMEhisto_NumeratorPFEta_MedpTcut()->Fill(leadjeta);
1190 v.getMEhisto_NumeratorPFPhi_MedpTcut()->Fill(leadjphi);
1191 v.getMEhisto_NumeratorPFEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
1193 if((leadjpt > trigHighpTPFcut && !
isForward(leadjeta))
1194 || (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))){
1195 v.getMEhisto_NumeratorPFEta_HighpTcut()->Fill(leadjeta);
1196 v.getMEhisto_NumeratorPFPhi_HighpTcut()->Fill(leadjphi);
1197 v.getMEhisto_NumeratorPFEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
1203 if(jetIDbool ==
true && (
v.getTriggerType() ==
"DiJet_Trigger") &&
pfjet.size()>1){
1223 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: CaloMET -------------------" << std::endl;
1226 && (
v.getPath().find(
"HLT_PFMET")==std::string::npos)){
1229 v.getMEhisto_DenominatorPt()->Fill(met.
et());
1230 v.getMEhisto_DenominatorPhi()->Fill(met.
phi());
1232 v.getMEhisto_NumeratorPt()->Fill(met.
et());
1233 v.getMEhisto_NumeratorPhi()->Fill(met.
phi());
1235 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1238 double dPhimin = 9999.;
1240 for(
unsigned short kj : khlt){
1246 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1252 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: PFMET -------------------" << std::endl;
1255 && (
v.getPath().find(
"HLT_PFMET")!=std::string::npos)){
1257 const PFMET met = pfmetcol->front();
1258 v.getMEhisto_DenominatorPt()->Fill(met.
et());
1259 v.getMEhisto_DenominatorPhi()->Fill(met.
phi());
1261 v.getMEhisto_NumeratorPt()->Fill(met.
et());
1262 v.getMEhisto_NumeratorPhi()->Fill(met.
phi());
1264 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1267 double dPhimin = 9999.;
1269 for(
unsigned short kj : khlt){
1275 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1302 LogDebug(
"HLTJetMETDQMSource") <<
"HLTConfigProvider failed to initialize.";
1316 for (
unsigned int i=0;
i!=
n; ++
i) {
1317 bool denomFound =
false;
1318 bool numFound =
false;
1325 for(;controlPathname!=
pathFilter_.end(); ++controlPathname){
1326 if(pathname.find((*controlPathname)) != std::string::npos){
1331 if(checkPath==
false)
continue;
1336 if(pathname.find((*rejectPathname)) != std::string::npos){
1341 if(checkPath==
false)
continue;
1348 unsigned int usedPrescale = 1;
1349 unsigned int objectType = 0;
1354 if(pathname.find(
"Jet") != std::string::npos
1355 && !(pathname.find(
"DoubleJet") != std::string::npos)
1356 && !(pathname.find(
"DiJet") != std::string::npos)
1357 && !(pathname.find(
"DiPFJet") != std::string::npos)
1358 && !(pathname.find(
"BTag") != std::string::npos)
1359 && !(pathname.find(
"Mu") != std::string::npos)
1360 && !(pathname.find(
"Fwd") != std::string::npos)){
1361 triggerType =
"SingleJet_Trigger";
1364 if(pathname.find(
"DiJet") != std::string::npos
1365 || pathname.find(
"DiPFJet") != std::string::npos
1366 || pathname.find(
"DoubleJet") != std::string::npos){
1367 triggerType =
"DiJet_Trigger";
1370 if(pathname.find(
"MET") != std::string::npos){
1371 triggerType =
"MET_Trigger";
1374 if(pathname.find(
"HT") != std::string::npos) {
1375 triggerType =
"TET_Trigger";
1381 && !(pathname.find(
"DiJet") != std::string::npos)
1382 && !(pathname.find(
"DiPFJet") != std::string::npos)
1383 && !(pathname.find(
"DoubleJet") != std::string::npos)){
1389 && ((pathname.find(
"DiJet") != std::string::npos)
1390 || (pathname.find(
"DiPFJet") != std::string::npos))){
1411 for (
unsigned int i=0;
i!=
n; ++
i){
1413 if(HLTname == pathname) numFound =
true;
1414 if(HLTname == dpathname) denomFound =
true;
1422 for(
auto & numpathmodule : numpathmodules) {
1431 filtername = numpathmodule;
1435 if(objectType != 0 && denomFound){
1437 for(
auto & numpathmodule : numpathmodules) {
1446 Denomfiltername = numpathmodule;
1450 if(objectType != 0 && numFound){
1452 cout<<
"=Pathname= "<<pathname
1453 <<
" | =Denompath= "<<dpathname
1454 <<
" | =Filtername= "<<filtername
1455 <<
" | =Denomfiltername= "<<Denomfiltername
1456 <<
" | =L1pathname= "<<l1pathname
1457 <<
" | =ObjectType= "<<objectType<<endl;
1458 if(!((pathname.find(
"HT") != std::string::npos) || (pathname.find(
"Quad") != std::string::npos))){
1461 filtername, Denomfiltername,
processname_, objectType, triggerType));
1464 filtername, Denomfiltername,
processname_, objectType, triggerType));
1468 if (
verbose_)
cout <<
"get names for efficicncy------------------"<< endl;
1473 unsigned int usedPrescale = 1;
1474 unsigned int objectType = 0;
1480 std::string dpathname = custompathnamepair.second;
1481 bool numFound =
false;
1482 bool denomFound =
false;
1484 for (
unsigned int i=0;
i!=
n; ++
i) {
1486 if(HLTname.find(pathname)!=std::string::npos){numFound =
true; pathname = HLTname;}
1487 if(HLTname.find(dpathname)!=std::string::npos){denomFound =
true; dpathname = HLTname;}
1489 if(numFound && denomFound){
1490 if (pathname.find(
"Jet") != std::string::npos
1491 && !(pathname.find(
"DiJet") != std::string::npos)
1492 && !(pathname.find(
"DiPFJet") != std::string::npos)
1493 && !(pathname.find(
"DoubleJet") != std::string::npos)
1494 && !(pathname.find(
"BTag") != std::string::npos)
1495 && !(pathname.find(
"Mu") != std::string::npos)
1496 && !(pathname.find(
"Fwd") != std::string::npos)){
1497 triggerType =
"SingleJet_Trigger";
1500 if (pathname.find(
"DiJet") != std::string::npos
1501 || pathname.find(
"DiPFJet") != std::string::npos
1502 || pathname.find(
"DoubleJet") != std::string::npos ){
1503 triggerType =
"DiJet_Trigger";
1506 if (pathname.find(
"MET") != std::string::npos ){
1507 triggerType =
"MET_Trigger";
1510 if (pathname.find(
"TET") != std::string::npos ){
1511 triggerType =
"TET_Trigger";
1517 for(
auto & numpathmodule : numpathmodules) {
1526 filtername = numpathmodule;
1529 if(objectType != 0){
1531 for(
auto & numpathmodule : numpathmodules) {
1540 Denomfiltername = numpathmodule;
1544 <<
"==denompath=="<<dpathname
1545 <<
"==filtername=="<<filtername
1546 <<
"==denomfiltername=="<<Denomfiltername
1547 <<
"==l1pathname=="<<l1pathname
1548 <<
"==objectType=="<<objectType<<endl;
1550 filtername, Denomfiltername,
processname_, objectType, triggerType));
1556 if(
verbose_)
cout<<
"== end hltPathsEff_.push_back ======" << endl;
1577 double TrigMin_ = -0.5;
1582 rate_All = iBooker.
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1584 histonm =
"JetMET_TriggerRate_Correlation";
1585 histot =
"JetMET TriggerRate Correlation Summary;y&&!x;x&&y";
1586 correlation_All = iBooker.
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1588 histonm =
"JetMET_NVertices";
1589 histot =
"No. of vertices";
1592 histonm =
"JetMET_PVZ";
1593 histot =
"Primary Vertex Z pos";
1594 PVZ = iBooker.
book1D(histonm.c_str(),histot.c_str(),100,-50.,50.);
1597 histonm=
"JetMET_TriggerRate_WrtMuTrigger";
1598 histot=
"JetMET TriggerRate Summary Wrt Muon Trigger ";
1599 rate_AllWrtMu = iBooker.
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1601 histonm=
"JetMET_TriggerRate_Correlation_WrtMuTrigger";
1602 histot=
"JetMET TriggerRate Correlation Summary Wrt Muon Trigger;y&&!x;x&&y";
1603 correlation_AllWrtMu = iBooker.
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1605 histonm=
"JetMET_TriggerRate_WrtMBTrigger";
1606 histot=
"JetMET TriggerRate Summary Wrt MB Trigger";
1607 rate_AllWrtMB = iBooker.
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1609 histonm=
"JetMET_TriggerRate_Correlation_WrtMBTrigger";
1610 histot=
"JetMET TriggerRate Correlation Wrt MB Trigger;y&&!x;x&&y";
1611 correlation_AllWrtMB = iBooker.
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1619 labelnm =
v.getPath();
1621 for(
int ibin=1; ibin<nbins+1; ibin++){
1622 const char * binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
1624 if(binLabel_str==labelnm)
break;
1625 if(binLabel[0]==
'\0'){
1646 double Nmin_ = -0.5;
1652 double PtMax_ = 1000.;
1656 double EtaMin_ = -5.;
1657 double EtaMax_ = 5.;
1660 double PhiMin_ = -3.5;
1661 double PhiMax_ = 3.5;
1664 double ResMin_ = -1.5;
1665 double ResMax_ = 1.5;
1684 histoname = labelname+
"_recObjN";
1685 title = labelname+
"_recObjN;Reco multiplicity()"+trigPath;
1689 histoname = labelname+
"_recObjPt";
1690 title = labelname+
"_recObjPt; Reco Pt[GeV/c]"+trigPath;
1694 histoname = labelname+
"_recObjPtBarrel";
1695 title = labelname+
"_recObjPtBarrel;Reco Pt[GeV/c]"+trigPath;
1696 MonitorElement * PtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1699 histoname = labelname+
"_recObjPtEndcap";
1700 title = labelname+
"_recObjPtEndcap;Reco Pt[GeV/c]"+trigPath;
1701 MonitorElement * PtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1704 histoname = labelname+
"_recObjPtForward";
1705 title = labelname+
"_recObjPtForward;Reco Pt[GeV/c]"+trigPath;
1706 MonitorElement * PtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1709 histoname = labelname+
"_recObjEta";
1710 title = labelname+
"_recObjEta;Reco #eta"+trigPath;
1714 histoname = labelname+
"_recObjPhi";
1715 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
1719 histoname = labelname+
"_recObjEtaPhi";
1720 title = labelname+
"_recObjEtaPhi;Reco #eta;Reco #Phi"+trigPath;
1721 MonitorElement * EtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1724 histoname = labelname+
"_l1ObjPt";
1725 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
1726 MonitorElement * Pt_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1729 histoname = labelname+
"_l1ObjEta";
1730 title = labelname+
"_l1ObjEta;L1 #eta"+trigPath;
1731 MonitorElement * Eta_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1734 histoname = labelname+
"_l1ObjPhi";
1735 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
1736 MonitorElement * Phi_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1739 histoname = labelname+
"_l1ObjEtaPhi";
1740 title = labelname+
"_l1ObjEtaPhi;L1 #eta;L1 #Phi"+trigPath;
1741 MonitorElement * EtaPhi_L1 = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1744 histoname = labelname+
"_l1ObjN";
1745 title = labelname+
"_l1ObjN;L1 multiplicity"+trigPath;
1749 histoname = labelname+
"_l1ObjPtBarrel";
1750 title = labelname+
"_l1ObjPtBarrel;L1 Pt[GeV/c]"+trigPath;
1751 MonitorElement * PtBarrel_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1754 histoname = labelname+
"_l1ObjPtEndcap";
1755 title = labelname+
"_l1ObjPtEndcap;L1 Pt[GeV/c]"+trigPath;
1756 MonitorElement * PtEndcap_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1759 histoname = labelname+
"_l1ObjPtForward";
1760 title = labelname+
"_l1ObjPtForward;L1 Pt[GeV/c]"+trigPath;
1761 MonitorElement * PtForward_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1764 histoname = labelname+
"_hltObjN";
1765 title = labelname+
"_hltObjN;HLT multiplicity"+trigPath;
1769 histoname = labelname+
"_hltObjPtBarrel";
1770 title = labelname+
"_hltObjPtBarrel;HLT Pt[GeV/c]"+trigPath;
1771 MonitorElement * PtBarrel_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1774 histoname = labelname+
"_hltObjPtEndcap";
1775 title = labelname+
"_hltObjPtEndcap;HLT Pt[GeV/c]"+trigPath;
1776 MonitorElement * PtEndcap_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1779 histoname = labelname+
"_hltObjPtForward";
1780 title = labelname+
"_hltObjPtForward;HLT Pt[GeV/c]"+trigPath;
1781 MonitorElement * PtForward_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1784 histoname = labelname+
"_hltObjPt";
1785 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
1786 MonitorElement * Pt_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1789 histoname = labelname+
"_hltObjEta";
1790 title = labelname+
"_hltObjEta;HLT #eta"+trigPath;
1791 MonitorElement * Eta_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1794 histoname = labelname+
"_hltObjPhi";
1795 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
1796 MonitorElement * Phi_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1799 histoname = labelname+
"_hltObjEtaPhi";
1800 title = labelname+
"_hltObjEtaPhi;HLT #eta;HLT #Phi"+trigPath;
1801 MonitorElement * EtaPhi_HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1804 histoname = labelname+
"_l1HLTPtResolution";
1805 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
1806 MonitorElement * PtResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1807 PtResolution_L1HLT->
getTH1();
1809 histoname = labelname+
"_l1HLTEtaResolution";
1810 title = labelname+
"_l1HLTEtaResolution;#eta(L1)-#eta(HLT)"+trigPath;
1811 MonitorElement * EtaResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1812 EtaResolution_L1HLT->
getTH1();
1814 histoname = labelname+
"_l1HLTPhiResolution";
1815 title = labelname+
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)"+trigPath;
1816 MonitorElement * PhiResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1817 PhiResolution_L1HLT->
getTH1();
1819 histoname = labelname+
"_l1HLTPtCorrelation";
1820 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
1821 MonitorElement * PtCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1822 PtCorrelation_L1HLT->
getTH1();
1824 histoname = labelname+
"_l1HLTEtaCorrelation";
1825 title = labelname+
"_l1HLTEtaCorrelation;#eta(L1);#eta(HLT)"+trigPath;
1826 MonitorElement * EtaCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
1827 EtaCorrelation_L1HLT->
getTH1();
1829 histoname = labelname+
"_l1HLTPhiCorrelation";
1830 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
1831 MonitorElement * PhiCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1832 PhiCorrelation_L1HLT->
getTH1();
1834 histoname = labelname+
"_hltRecObjPtResolution";
1835 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
1836 MonitorElement * PtResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1837 PtResolution_HLTRecObj->
getTH1();
1839 histoname = labelname+
"_hltRecObjEtaResolution";
1840 title = labelname+
"_hltRecObjEtaResolution;#eta(HLT)-#eta(Reco)"+trigPath;
1841 MonitorElement * EtaResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1842 EtaResolution_HLTRecObj->
getTH1();
1844 histoname = labelname+
"_hltRecObjPhiResolution";
1845 title = labelname+
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)"+trigPath;
1846 MonitorElement * PhiResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1847 PhiResolution_HLTRecObj->
getTH1();
1849 histoname = labelname+
"_hltRecObjPtCorrelation";
1850 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
1851 MonitorElement * PtCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1852 PtCorrelation_HLTRecObj->
getTH1();
1854 histoname = labelname+
"_hltRecObjEtaCorrelation";
1855 title = labelname+
"_hltRecObjEtaCorrelation;#eta(HLT);#eta(Reco)"+trigPath;
1856 MonitorElement * EtaCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
1857 EtaCorrelation_HLTRecObj->
getTH1();
1859 histoname = labelname+
"_hltRecObjPhiCorrelation";
1860 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
1861 MonitorElement * PhiCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1862 PhiCorrelation_HLTRecObj->
getTH1();
1889 EtaResolution_L1HLT,
1890 PhiResolution_L1HLT,
1891 PtResolution_HLTRecObj,
1892 EtaResolution_HLTRecObj,
1893 PhiResolution_HLTRecObj,
1894 PtCorrelation_L1HLT,
1895 EtaCorrelation_L1HLT,
1896 PhiCorrelation_L1HLT,
1897 PtCorrelation_HLTRecObj,
1898 EtaCorrelation_HLTRecObj,
1899 PhiCorrelation_HLTRecObj,
1914 histoname = labelname+
"_RecObjAveragePt";
1915 title = labelname+
"_RecObjAveragePt;Reco Average Pt[GeV/c]"+trigPath;
1916 MonitorElement * jetAveragePt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1919 histoname = labelname+
"_RecObjAverageEta";
1920 title = labelname+
"_RecObjAverageEta;Reco Average #eta"+trigPath;
1921 MonitorElement * jetAverageEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1924 histoname = labelname+
"_RecObjPhiDifference";
1925 title = labelname+
"_RecObjPhiDifference;Reco #Delta#Phi"+trigPath;
1926 MonitorElement * jetPhiDifference = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1927 jetPhiDifference->
getTH1();
1929 histoname = labelname+
"_hltObjAveragePt";
1930 title = labelname+
"_hltObjAveragePt;HLT Average Pt[GeV/c]"+trigPath;
1931 MonitorElement * hltAveragePt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1934 histoname = labelname+
"_hltObjAverageEta";
1935 title = labelname+
"_hltObjAverageEta;HLT Average #eta"+trigPath;
1936 MonitorElement * hltAverageEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1939 histoname = labelname+
"_hltObjPhiDifference";
1940 title = labelname+
"_hltObjPhiDifference;Reco #Delta#Phi"+trigPath;
1941 MonitorElement * hltPhiDifference = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1942 hltPhiDifference->
getTH1();
1994 histoname = labelname+
"_recObjPt";
1995 title = labelname+
"_recObjPt;Reco Pt[GeV/c]"+trigPath;
1999 histoname = labelname+
"_recObjPhi";
2000 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
2004 histoname = labelname+
"_l1ObjPt";
2005 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
2006 MonitorElement * Pt_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2009 histoname = labelname+
"_l1ObjPhi";
2010 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
2011 MonitorElement * Phi_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2014 histoname = labelname+
"_hltObjPt";
2015 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
2016 MonitorElement * Pt_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2019 histoname = labelname+
"_hltObjPhi";
2020 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
2021 MonitorElement * Phi_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2024 histoname = labelname+
"_l1HLTPtResolution";
2025 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
2026 MonitorElement * PtResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
2027 PtResolution_L1HLT->
getTH1();
2029 histoname = labelname+
"_l1HLTPhiResolution";
2030 title = labelname+
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)"+trigPath;
2031 MonitorElement * PhiResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
2032 PhiResolution_L1HLT->
getTH1();
2034 histoname = labelname+
"_l1HLTPtCorrelation";
2035 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
2036 MonitorElement * PtCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2037 PtCorrelation_L1HLT->
getTH1();
2039 histoname = labelname+
"_l1HLTPhiCorrelation";
2040 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
2041 MonitorElement * PhiCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
2042 PhiCorrelation_L1HLT->
getTH1();
2044 histoname = labelname+
"_hltRecObjPtResolution";
2045 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
2046 MonitorElement * PtResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
2047 PtResolution_HLTRecObj->
getTH1();
2049 histoname = labelname+
"_hltRecObjPhiResolution";
2050 title = labelname+
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)"+trigPath;
2051 MonitorElement * PhiResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
2052 PhiResolution_HLTRecObj->
getTH1();
2054 histoname = labelname+
"_hltRecObjPtCorrelation";
2055 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
2056 MonitorElement * PtCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2057 PtCorrelation_HLTRecObj->
getTH1();
2059 histoname = labelname+
"_hltRecObjPhiCorrelation";
2060 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
2061 MonitorElement * PhiCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
2062 PhiCorrelation_HLTRecObj->
getTH1();
2090 PhiResolution_L1HLT,
2091 PtResolution_HLTRecObj,
2093 PhiResolution_HLTRecObj,
2094 PtCorrelation_L1HLT,
2096 PhiCorrelation_L1HLT,
2097 PtCorrelation_HLTRecObj,
2099 PhiCorrelation_HLTRecObj,
2119 double PtMax_ = 1000.;
2122 double EtaMin_ = -5.;
2123 double EtaMax_ = 5.;
2126 double PhiMin_ = -3.5;
2127 double PhiMax_ = 3.5;
2136 std::string subdirName = dirName1 + trgPathName +
"_wrt_" + trgPathNameD;
2147 histoname = labelname+
"_NumeratorPt";
2148 title = labelname+
"NumeratorPt;Calo Pt[GeV/c]";
2149 MonitorElement * NumeratorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2152 histoname = labelname+
"_NumeratorPtBarrel";
2153 title = labelname+
"NumeratorPtBarrel;Calo Pt[GeV/c] ";
2154 MonitorElement * NumeratorPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2155 NumeratorPtBarrel->
getTH1();
2157 histoname = labelname+
"_NumeratorPtEndcap";
2158 title = labelname+
"NumeratorPtEndcap;Calo Pt[GeV/c]";
2159 MonitorElement * NumeratorPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2160 NumeratorPtEndcap->
getTH1();
2162 histoname = labelname+
"_NumeratorPtForward";
2163 title = labelname+
"NumeratorPtForward;Calo Pt[GeV/c]";
2164 MonitorElement * NumeratorPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2165 NumeratorPtForward->
getTH1();
2167 histoname = labelname+
"_NumeratorEta";
2168 title = labelname+
"NumeratorEta;Calo #eta ";
2169 MonitorElement * NumeratorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2172 histoname = labelname+
"_NumeratorPhi";
2173 title = labelname+
"NumeratorPhi;Calo #Phi";
2174 MonitorElement * NumeratorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2177 histoname = labelname+
"_NumeratorEtaPhi";
2178 title = labelname+
"NumeratorEtaPhi;Calo #eta;Calo #Phi";
2179 MonitorElement * NumeratorEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2180 NumeratorEtaPhi->
getTH1();
2182 histoname = labelname+
"_NumeratorEtaBarrel";
2183 title = labelname+
"NumeratorEtaBarrel;Calo #eta ";
2184 MonitorElement * NumeratorEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2185 NumeratorEtaBarrel->
getTH1();
2187 histoname = labelname+
"_NumeratorPhiBarrel";
2188 title = labelname+
"NumeratorPhiBarrel;Calo #Phi";
2189 MonitorElement * NumeratorPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2190 NumeratorPhiBarrel->
getTH1();
2192 histoname = labelname+
"_NumeratorEtaEndcap";
2193 title = labelname+
"NumeratorEtaEndcap;Calo #eta ";
2194 MonitorElement * NumeratorEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2195 NumeratorEtaEndcap->
getTH1();
2197 histoname = labelname+
"_NumeratorPhiEndcap";
2198 title = labelname+
"NumeratorPhiEndcap;Calo #Phi";
2199 MonitorElement * NumeratorPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2200 NumeratorPhiEndcap->
getTH1();
2202 histoname = labelname+
"_NumeratorEtaForward";
2203 title = labelname+
"NumeratorEtaForward;Calo #eta ";
2204 MonitorElement * NumeratorEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2205 NumeratorEtaForward->
getTH1();
2207 histoname = labelname+
"_NumeratorPhiForward";
2208 title = labelname+
"NumeratorPhiForward;Calo #Phi";
2209 MonitorElement * NumeratorPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2210 NumeratorPhiForward->
getTH1();
2212 histoname = labelname+
"_NumeratorEta_LowpTcut";
2213 title = labelname+
"NumeratorEta_LowpTcut;Calo #eta ";
2214 MonitorElement * NumeratorEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2215 NumeratorEta_LowpTcut->
getTH1();
2217 histoname = labelname+
"_NumeratorPhi_LowpTcut";
2218 title = labelname+
"NumeratorPhi_LowpTcut;Calo #Phi";
2219 MonitorElement * NumeratorPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2220 NumeratorPhi_LowpTcut->
getTH1();
2222 histoname = labelname+
"_NumeratorEtaPhi_LowpTcut";
2223 title = labelname+
"NumeratorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2224 MonitorElement * NumeratorEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2225 NumeratorEtaPhi_LowpTcut->
getTH1();
2227 histoname = labelname+
"_NumeratorEta_MedpTcut";
2228 title = labelname+
"NumeratorEta_MedpTcut;Calo #eta ";
2229 MonitorElement * NumeratorEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2230 NumeratorEta_MedpTcut->
getTH1();
2232 histoname = labelname+
"_NumeratorPhi_MedpTcut";
2233 title = labelname+
"NumeratorPhi_MedpTcut;Calo #Phi";
2234 MonitorElement * NumeratorPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2235 NumeratorPhi_MedpTcut->
getTH1();
2237 histoname = labelname+
"_NumeratorEtaPhi_MedpTcut";
2238 title = labelname+
"NumeratorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2239 MonitorElement * NumeratorEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2240 NumeratorEtaPhi_MedpTcut->
getTH1();
2242 histoname = labelname+
"_NumeratorEta_HighpTcut";
2243 title = labelname+
"NumeratorEta_HighpTcut;Calo #eta ";
2244 MonitorElement * NumeratorEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2245 NumeratorEta_HighpTcut->
getTH1();
2247 histoname = labelname+
"_NumeratorPhi_HighpTcut";
2248 title = labelname+
"NumeratorPhi_HighpTcut;Calo #Phi";
2249 MonitorElement * NumeratorPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2250 NumeratorPhi_HighpTcut->
getTH1();
2252 histoname = labelname+
"_NumeratorEtaPhi_HighpTcut";
2253 title = labelname+
"NumeratorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2254 MonitorElement * NumeratorEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2255 NumeratorEtaPhi_HighpTcut->
getTH1();
2257 histoname = labelname+
"_DenominatorPt";
2258 title = labelname+
"DenominatorPt;Calo Pt[GeV/c]";
2259 MonitorElement * DenominatorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2262 histoname = labelname+
"_DenominatorPtBarrel";
2263 title = labelname+
"DenominatorPtBarrel;Calo Pt[GeV/c]";
2264 MonitorElement * DenominatorPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2265 DenominatorPtBarrel->
getTH1();
2267 histoname = labelname+
"_DenominatorPtEndcap";
2268 title = labelname+
"DenominatorPtEndcap;Calo Pt[GeV/c]";
2269 MonitorElement * DenominatorPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2270 DenominatorPtEndcap->
getTH1();
2272 histoname = labelname+
"_DenominatorPtForward";
2273 title = labelname+
"DenominatorPtForward;Calo Pt[GeV/c] ";
2274 MonitorElement * DenominatorPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2275 DenominatorPtForward->
getTH1();
2277 histoname = labelname+
"_DenominatorEta";
2278 title = labelname+
"DenominatorEta;Calo #eta ";
2279 MonitorElement * DenominatorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2280 DenominatorEta->
getTH1();
2282 histoname = labelname+
"_DenominatorPhi";
2283 title = labelname+
"DenominatorPhi;Calo #Phi";
2284 MonitorElement * DenominatorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2285 DenominatorPhi->
getTH1();
2287 histoname = labelname+
"_DenominatorEtaPhi";
2288 title = labelname+
"DenominatorEtaPhi;Calo #eta; Calo #Phi";
2289 MonitorElement * DenominatorEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2290 DenominatorEtaPhi->
getTH1();
2292 histoname = labelname+
"_DenominatorEtaBarrel";
2293 title = labelname+
"DenominatorEtaBarrel;Calo #eta ";
2294 MonitorElement * DenominatorEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2295 DenominatorEtaBarrel->
getTH1();
2297 histoname = labelname+
"_DenominatorPhiBarrel";
2298 title = labelname+
"DenominatorPhiBarrel;Calo #Phi";
2299 MonitorElement * DenominatorPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2300 DenominatorPhiBarrel->
getTH1();
2302 histoname = labelname+
"_DenominatorEtaEndcap";
2303 title = labelname+
"DenominatorEtaEndcap;Calo #eta ";
2304 MonitorElement * DenominatorEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2305 DenominatorEtaEndcap->
getTH1();
2307 histoname = labelname+
"_DenominatorPhiEndcap";
2308 title = labelname+
"DenominatorPhiEndcap;Calo #Phi";
2309 MonitorElement * DenominatorPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2310 DenominatorPhiEndcap->
getTH1();
2312 histoname = labelname+
"_DenominatorEtaForward";
2313 title = labelname+
"DenominatorEtaForward;Calo #eta ";
2314 MonitorElement * DenominatorEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2315 DenominatorEtaForward->
getTH1();
2317 histoname = labelname+
"_DenominatorPhiForward";
2318 title = labelname+
"DenominatorPhiForward;Calo #Phi";
2319 MonitorElement * DenominatorPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2320 DenominatorPhiForward->
getTH1();
2322 histoname = labelname+
"_DenominatorEta_LowpTcut";
2323 title = labelname+
"DenominatorEta_LowpTcut;Calo #eta ";
2324 MonitorElement * DenominatorEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2325 DenominatorEta_LowpTcut->
getTH1();
2327 histoname = labelname+
"_DenominatorPhi_LowpTcut";
2328 title = labelname+
"DenominatorPhi_LowpTcut;Calo #Phi";
2329 MonitorElement * DenominatorPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2330 DenominatorPhi_LowpTcut->
getTH1();
2332 histoname = labelname+
"_DenominatorEtaPhi_LowpTcut";
2333 title = labelname+
"DenominatorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2334 MonitorElement * DenominatorEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2335 DenominatorEtaPhi_LowpTcut->
getTH1();
2337 histoname = labelname+
"_DenominatorEta_MedpTcut";
2338 title = labelname+
"DenominatorEta_MedpTcut;Calo #eta ";
2339 MonitorElement * DenominatorEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2340 DenominatorEta_MedpTcut->
getTH1();
2342 histoname = labelname+
"_DenominatorPhi_MedpTcut";
2343 title = labelname+
"DenominatorPhi_MedpTcut;Calo #Phi";
2344 MonitorElement * DenominatorPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2345 DenominatorPhi_MedpTcut->
getTH1();
2347 histoname = labelname+
"_DenominatorEtaPhi_MedpTcut";
2348 title = labelname+
"DenominatorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2349 MonitorElement * DenominatorEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2350 DenominatorEtaPhi_MedpTcut->
getTH1();
2352 histoname = labelname+
"_DenominatorEta_HighpTcut";
2353 title = labelname+
"DenominatorEta_HighpTcut;Calo #eta ";
2354 MonitorElement * DenominatorEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2355 DenominatorEta_HighpTcut->
getTH1();
2357 histoname = labelname+
"_DenominatorPhi_HighpTcut";
2358 title = labelname+
"DenominatorPhi_HighpTcut;Calo #Phi";
2359 MonitorElement * DenominatorPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2360 DenominatorPhi_HighpTcut->
getTH1();
2362 histoname = labelname+
"_DenominatorEtaPhi_HighpTcut";
2363 title = labelname+
"DenominatorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2364 MonitorElement * DenominatorEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2365 DenominatorEtaPhi_HighpTcut->
getTH1();
2367 histoname = labelname+
"_DeltaR";
2368 title = labelname+
"DeltaR;";
2372 histoname = labelname+
"_DeltaPhi";
2373 title = labelname+
"DeltaPhi;";
2377 histoname = labelname+
"_NumeratorPFMHT";
2378 title = labelname+
"NumeratorPFMHT;PFMHT[GeV/c]";
2379 MonitorElement * NumeratorPFMHT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2380 NumeratorPFMHT->
getTH1();
2382 histoname = labelname+
"_NumeratorPFPt";
2383 title = labelname+
"NumeratorPFPt;PF Pt[GeV/c]";
2384 MonitorElement * NumeratorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2387 histoname = labelname+
"_NumeratorPFPtBarrel";
2388 title = labelname+
"NumeratorPFPtBarrel;PF Pt[GeV/c] ";
2389 MonitorElement * NumeratorPFPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2390 NumeratorPFPtBarrel->
getTH1();
2392 histoname = labelname+
"_NumeratorPFPtEndcap";
2393 title = labelname+
"NumeratorPFPtEndcap;PF Pt[GeV/c]";
2394 MonitorElement * NumeratorPFPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2395 NumeratorPFPtEndcap->
getTH1();
2397 histoname = labelname+
"_NumeratorPFPtForward";
2398 title = labelname+
"NumeratorPFPtForward;PF Pt[GeV/c]";
2399 MonitorElement * NumeratorPFPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2400 NumeratorPFPtForward->
getTH1();
2402 histoname = labelname+
"_NumeratorPFEta";
2403 title = labelname+
"NumeratorPFEta;PF #eta ";
2404 MonitorElement * NumeratorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2405 NumeratorPFEta->
getTH1();
2407 histoname = labelname+
"_NumeratorPFPhi";
2408 title = labelname+
"NumeratorPFPhi;Calo #Phi";
2409 MonitorElement * NumeratorPFPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2410 NumeratorPFPhi->
getTH1();
2412 histoname = labelname+
"_NumeratorPFEtaPhi";
2413 title = labelname+
"NumeratorPFEtaPhi;PF #eta;Calo #Phi";
2414 MonitorElement * NumeratorPFEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2415 NumeratorPFEtaPhi->
getTH1();
2417 histoname = labelname+
"_NumeratorPFEtaBarrel";
2418 title = labelname+
"NumeratorPFEtaBarrel;PF #eta ";
2419 MonitorElement * NumeratorPFEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2420 NumeratorPFEtaBarrel->
getTH1();
2422 histoname = labelname+
"_NumeratorPFPhiBarrel";
2423 title = labelname+
"NumeratorPFPhiBarrel;PF #Phi";
2424 MonitorElement * NumeratorPFPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2425 NumeratorPFPhiBarrel->
getTH1();
2427 histoname = labelname+
"_NumeratorPFEtaEndcap";
2428 title = labelname+
"NumeratorPFEtaEndcap;Calo #eta ";
2429 MonitorElement * NumeratorPFEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2430 NumeratorPFEtaEndcap->
getTH1();
2432 histoname = labelname+
"_NumeratorPFPhiEndcap";
2433 title = labelname+
"NumeratorPFPhiEndcap;PF #Phi";
2434 MonitorElement * NumeratorPFPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2435 NumeratorPFPhiEndcap->
getTH1();
2437 histoname = labelname+
"_NumeratorPFEtaForward";
2438 title = labelname+
"NumeratorPFEtaForward;Calo #eta ";
2439 MonitorElement * NumeratorPFEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2440 NumeratorPFEtaForward->
getTH1();
2442 histoname = labelname+
"_NumeratorPFPhiForward";
2443 title = labelname+
"NumeratorPFPhiForward;PF #Phi";
2444 MonitorElement * NumeratorPFPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2445 NumeratorPFPhiForward->
getTH1();
2447 histoname = labelname+
"_NumeratorPFEta_LowpTcut";
2448 title = labelname+
"NumeratorPFEta_LowpTcut;PF #eta ";
2449 MonitorElement * NumeratorPFEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2450 NumeratorPFEta_LowpTcut->
getTH1();
2452 histoname = labelname+
"_NumeratorPFPhi_LowpTcut";
2453 title = labelname+
"NumeratorPFPhi_LowpTcut;PF #Phi";
2454 MonitorElement * NumeratorPFPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2455 NumeratorPFPhi_LowpTcut->
getTH1();
2457 histoname = labelname+
"_NumeratorPFEtaPhi_LowpTcut";
2458 title = labelname+
"NumeratorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2459 MonitorElement * NumeratorPFEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2460 NumeratorPFEtaPhi_LowpTcut->
getTH1();
2462 histoname = labelname+
"_NumeratorPFEta_MedpTcut";
2463 title = labelname+
"NumeratorPFEta_MedpTcut;PF #eta ";
2464 MonitorElement * NumeratorPFEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2465 NumeratorPFEta_MedpTcut->
getTH1();
2467 histoname = labelname+
"_NumeratorPFPhi_MedpTcut";
2468 title = labelname+
"NumeratorPFPhi_MedpTcut;PF #Phi";
2469 MonitorElement * NumeratorPFPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2470 NumeratorPFPhi_MedpTcut->
getTH1();
2472 histoname = labelname+
"_NumeratorPFEtaPhi_MedpTcut";
2473 title = labelname+
"NumeratorPFEtaPhi_MedpTcut;PF #eta;PF #Phi";
2474 MonitorElement * NumeratorPFEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2475 NumeratorPFEtaPhi_MedpTcut->
getTH1();
2477 histoname = labelname+
"_NumeratorPFEta_HighpTcut";
2478 title = labelname+
"NumeratorPFEta_HighpTcut;Calo #eta ";
2479 MonitorElement * NumeratorPFEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2480 NumeratorPFEta_HighpTcut->
getTH1();
2482 histoname = labelname+
"_NumeratorPFPhi_HighpTcut";
2483 title = labelname+
"NumeratorPFPhi_HighpTcut;PF #Phi";
2484 MonitorElement * NumeratorPFPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2485 NumeratorPFPhi_HighpTcut->
getTH1();
2487 histoname = labelname+
"_NumeratorPFEtaPhi_HighpTcut";
2488 title = labelname+
"NumeratorPFEtaPhi_HighpTcut;PF #eta;PF #Phi";
2489 MonitorElement * NumeratorPFEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2490 NumeratorPFEtaPhi_HighpTcut->
getTH1();
2492 histoname = labelname+
"_DenominatorPFMHT";
2493 title = labelname+
"DenominatorPFMHT;PF Pt[GeV/c]";
2494 MonitorElement * DenominatorPFMHT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2495 DenominatorPFMHT->
getTH1();
2497 histoname = labelname+
"_DenominatorPFPt";
2498 title = labelname+
"DenominatorPFPt;PF Pt[GeV/c]";
2499 MonitorElement * DenominatorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2500 DenominatorPFPt->
getTH1();
2502 histoname = labelname+
"_DenominatorPFPtBarrel";
2503 title = labelname+
"DenominatorPFPtBarrel;Calo Pt[GeV/c]";
2504 MonitorElement * DenominatorPFPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2505 DenominatorPFPtBarrel->
getTH1();
2507 histoname = labelname+
"_DenominatorPFPtEndcap";
2508 title = labelname+
"DenominatorPFPtEndcap;PF Pt[GeV/c]";
2509 MonitorElement * DenominatorPFPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2510 DenominatorPFPtEndcap->
getTH1();
2512 histoname = labelname+
"_DenominatorPFPtForward";
2513 title = labelname+
"DenominatorPFPtForward;PF Pt[GeV/c] ";
2514 MonitorElement * DenominatorPFPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2515 DenominatorPFPtForward->
getTH1();
2517 histoname = labelname+
"_DenominatorPFEta";
2518 title = labelname+
"DenominatorPFEta;PF #eta ";
2519 MonitorElement * DenominatorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2520 DenominatorPFEta->
getTH1();
2522 histoname = labelname+
"_DenominatorPFPhi";
2523 title = labelname+
"DenominatorPFPhi;PF #Phi";
2524 MonitorElement * DenominatorPFPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2525 DenominatorPFPhi->
getTH1();
2527 histoname = labelname+
"_DenominatorPFEtaPhi";
2528 title = labelname+
"DenominatorPFEtaPhi;PF #eta; Calo #Phi";
2529 MonitorElement * DenominatorPFEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2530 DenominatorPFEtaPhi->
getTH1();
2532 histoname = labelname+
"_DenominatorPFEtaBarrel";
2533 title = labelname+
"DenominatorPFEtaBarrel;Calo #eta ";
2534 MonitorElement * DenominatorPFEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2535 DenominatorPFEtaBarrel->
getTH1();
2537 histoname = labelname+
"_DenominatorPFPhiBarrel";
2538 title = labelname+
"DenominatorPFPhiBarrel;PF #Phi";
2539 MonitorElement * DenominatorPFPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2540 DenominatorPFPhiBarrel->
getTH1();
2542 histoname = labelname+
"_DenominatorPFEtaEndcap";
2543 title = labelname+
"DenominatorPFEtaEndcap;PF #eta ";
2544 MonitorElement * DenominatorPFEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2545 DenominatorPFEtaEndcap->
getTH1();
2547 histoname = labelname+
"_DenominatorPFPhiEndcap";
2548 title = labelname+
"DenominatorPFPhiEndcap;Calo #Phi";
2549 MonitorElement * DenominatorPFPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2550 DenominatorPFPhiEndcap->
getTH1();
2552 histoname = labelname+
"_DenominatorPFEtaForward";
2553 title = labelname+
"DenominatorPFEtaForward;PF #eta ";
2554 MonitorElement * DenominatorPFEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2555 DenominatorPFEtaForward->
getTH1();
2557 histoname = labelname+
"_DenominatorPFPhiForward";
2558 title = labelname+
"DenominatorPFPhiForward;PF #Phi";
2559 MonitorElement * DenominatorPFPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2560 DenominatorPFPhiForward->
getTH1();
2562 histoname = labelname+
"_DenominatorPFEta_LowpTcut";
2563 title = labelname+
"DenominatorPFEta_LowpTcut;PF #eta ";
2564 MonitorElement * DenominatorPFEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2565 DenominatorPFEta_LowpTcut->
getTH1();
2567 histoname = labelname+
"_DenominatorPFPhi_LowpTcut";
2568 title = labelname+
"DenominatorPFPhi_LowpTcut;PF #Phi";
2569 MonitorElement * DenominatorPFPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2570 DenominatorPFPhi_LowpTcut->
getTH1();
2572 histoname = labelname+
"_DenominatorPFEtaPhi_LowpTcut";
2573 title = labelname+
"DenominatorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2574 MonitorElement * DenominatorPFEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2575 DenominatorPFEtaPhi_LowpTcut->
getTH1();
2577 histoname = labelname+
"_DenominatorPFEta_MedpTcut";
2578 title = labelname+
"DenominatorPFEta_MedpTcut;PF #eta ";
2579 MonitorElement * DenominatorPFEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2580 DenominatorPFEta_MedpTcut->
getTH1();
2582 histoname = labelname+
"_DenominatorPFPhi_MedpTcut";
2583 title = labelname+
"DenominatorPFPhi_MedpTcut;PF #Phi";
2584 MonitorElement * DenominatorPFPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2585 DenominatorPFPhi_MedpTcut->
getTH1();
2587 histoname = labelname+
"_DenominatorPFEtaPhi_MedpTcut";
2588 title = labelname+
"DenominatorPFEtaPhi_MedpTcut;PF #eta;Calo #Phi";
2589 MonitorElement * DenominatorPFEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2590 DenominatorPFEtaPhi_MedpTcut->
getTH1();
2592 histoname = labelname+
"_DenominatorPFEta_HighpTcut";
2593 title = labelname+
"DenominatorPFEta_HighpTcut;PF #eta ";
2594 MonitorElement * DenominatorPFEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2595 DenominatorPFEta_HighpTcut->
getTH1();
2597 histoname = labelname+
"_DenominatorPFPhi_HighpTcut";
2598 title = labelname+
"DenominatorPFPhi_HighpTcut;PF #Phi";
2599 MonitorElement * DenominatorPFPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2600 DenominatorPFPhi_HighpTcut->
getTH1();
2602 histoname = labelname+
"_DenominatorPFEtaPhi_HighpTcut";
2603 title = labelname+
"DenominatorPFEtaPhi_HighpTcut;PF #eta;Calo #Phi";
2604 MonitorElement * DenominatorPFEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2605 DenominatorPFEtaPhi_HighpTcut->
getTH1();
2607 histoname = labelname+
"_PFDeltaR";
2608 title = labelname+
"PFDeltaR;";
2612 histoname = labelname+
"_PFDeltaPhi";
2613 title = labelname+
"PFDeltaPhi;";
2617 v.setEffHistos(NumeratorPt,
2629 NumeratorEtaForward,
2630 NumeratorPhiForward,
2631 NumeratorEta_LowpTcut,
2632 NumeratorPhi_LowpTcut,
2633 NumeratorEtaPhi_LowpTcut,
2634 NumeratorEta_MedpTcut,
2635 NumeratorPhi_MedpTcut,
2636 NumeratorEtaPhi_MedpTcut,
2637 NumeratorEta_HighpTcut,
2638 NumeratorPhi_HighpTcut,
2639 NumeratorEtaPhi_HighpTcut,
2642 DenominatorPtBarrel,
2643 DenominatorPtEndcap,
2644 DenominatorPtForward,
2649 DenominatorEtaBarrel,
2650 DenominatorPhiBarrel,
2651 DenominatorEtaEndcap,
2652 DenominatorPhiEndcap,
2653 DenominatorEtaForward,
2654 DenominatorPhiForward,
2655 DenominatorEta_LowpTcut,
2656 DenominatorPhi_LowpTcut,
2657 DenominatorEtaPhi_LowpTcut,
2658 DenominatorEta_MedpTcut,
2659 DenominatorPhi_MedpTcut,
2660 DenominatorEtaPhi_MedpTcut,
2661 DenominatorEta_HighpTcut,
2662 DenominatorPhi_HighpTcut,
2663 DenominatorEtaPhi_HighpTcut,
2669 NumeratorPFPtBarrel,
2670 NumeratorPFPtEndcap,
2671 NumeratorPFPtForward,
2675 NumeratorPFEtaBarrel,
2676 NumeratorPFPhiBarrel,
2677 NumeratorPFEtaEndcap,
2678 NumeratorPFPhiEndcap,
2679 NumeratorPFEtaForward,
2680 NumeratorPFPhiForward,
2681 NumeratorPFEta_LowpTcut,
2682 NumeratorPFPhi_LowpTcut,
2683 NumeratorPFEtaPhi_LowpTcut,
2684 NumeratorPFEta_MedpTcut,
2685 NumeratorPFPhi_MedpTcut,
2686 NumeratorPFEtaPhi_MedpTcut,
2687 NumeratorPFEta_HighpTcut,
2688 NumeratorPFPhi_HighpTcut,
2689 NumeratorPFEtaPhi_HighpTcut,
2692 DenominatorPFPtBarrel,
2693 DenominatorPFPtEndcap,
2694 DenominatorPFPtForward,
2697 DenominatorPFEtaPhi,
2698 DenominatorPFEtaBarrel,
2699 DenominatorPFPhiBarrel,
2700 DenominatorPFEtaEndcap,
2701 DenominatorPFPhiEndcap,
2702 DenominatorPFEtaForward,
2703 DenominatorPFPhiForward,
2704 DenominatorPFEta_LowpTcut,
2705 DenominatorPFPhi_LowpTcut,
2706 DenominatorPFEtaPhi_LowpTcut,
2707 DenominatorPFEta_MedpTcut,
2708 DenominatorPFPhi_MedpTcut,
2709 DenominatorPFEtaPhi_MedpTcut,
2710 DenominatorPFEta_HighpTcut,
2711 DenominatorPFPhi_HighpTcut,
2712 DenominatorPFEtaPhi_HighpTcut,
2721 histoname = labelname+
"_NumeratorAvrgPt";
2722 title = labelname+
"NumeratorAvrgPt;Calo Pt[GeV/c]";
2723 MonitorElement * NumeratorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2726 histoname = labelname+
"_NumeratorAvrgEta";
2727 title = labelname+
"NumeratorAvrgEta;Calo #eta";
2728 MonitorElement * NumeratorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2731 histoname = labelname+
"_DenominatorAvrgPt";
2732 title = labelname+
"DenominatorAvrgPt;Calo Pt[GeV/c] ";
2733 MonitorElement * DenominatorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2736 histoname = labelname+
"_DenominatorAvrgEta";
2737 title = labelname+
"DenominatorAvrgEta;Calo #eta";
2738 MonitorElement * DenominatorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2739 DenominatorEta->
getTH1();
2741 histoname = labelname+
"_DeltaR";
2742 title = labelname+
"DeltaR;";
2746 histoname = labelname+
"_DeltaPhi";
2747 title = labelname+
"DeltaPhi;";
2752 histoname = labelname+
"_NumeratorAvrgPFPt";
2753 title = labelname+
"NumeratorAvrgPFPt;PF Pt[GeV/c]";
2754 MonitorElement * NumeratorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2757 histoname = labelname+
"_NumeratorAvrgPFEta";
2758 title = labelname+
"NumeratorAvrgPFEta;PF #eta";
2759 MonitorElement * NumeratorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2760 NumeratorPFEta->
getTH1();
2762 histoname = labelname+
"_DenominatorAvrgPFPt";
2763 title = labelname+
"DenominatorAvrgPFPt;PF Pt[GeV/c] ";
2764 MonitorElement * DenominatorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2765 DenominatorPFPt->
getTH1();
2767 histoname = labelname+
"_DenominatorAvrgPFEta";
2768 title = labelname+
"DenominatorAvrgPFEta;PF #eta";
2769 MonitorElement * DenominatorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2770 DenominatorPFEta->
getTH1();
2772 histoname = labelname+
"_PFDeltaR";
2773 title = labelname+
"PFDeltaR;";
2777 histoname = labelname+
"_PFDeltaPhi";
2778 title = labelname+
"PFDeltaPhi;";
2782 v.setEffHistos( dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2783 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2784 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2785 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2786 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2787 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2788 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2789 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2790 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2791 dummy, dummy, dummy, dummy
2797 histoname = labelname+
"_NumeratorPt";
2798 if(
v.getPath().find(
"HLT_PFMET")==std::string::npos)
2799 title = labelname+
"NumeratorPt; CaloMET[GeV/c]";
2801 title = labelname+
"NumeratorPt; PFMET[GeV/c]";
2802 MonitorElement * NumeratorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2805 histoname = labelname+
"_NumeratorPhi";
2806 title = labelname+
"NumeratorPhi; #Phi";
2807 MonitorElement * NumeratorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2810 histoname = labelname+
"_DenominatorPt";
2811 if(
v.getPath().find(
"HLT_PFMET")==std::string::npos)
2812 title = labelname+
"DenominatorPt; CaloMET[GeV/c]";
2814 title = labelname+
"DenominatorPt; PFMET[GeV/c]";
2815 MonitorElement * DenominatorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2818 histoname = labelname+
"_DenominatorPhi";
2819 title = labelname+
"DenominatorPhi; #Phi";
2820 MonitorElement * DenominatorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2821 DenominatorPhi->
getTH1();
2823 v.setEffHistos( NumeratorPt, dummy, dummy, dummy, dummy, NumeratorPhi, dummy, dummy, dummy, dummy,
2824 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2825 dummy, dummy, DenominatorPt, dummy, dummy, dummy, dummy, DenominatorPhi, dummy, dummy,
2826 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2827 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2828 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2829 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2830 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2831 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2832 dummy, dummy, dummy, dummy
2847 double PtMax_ = 1000.;
2848 double EtaMin_ = -5.;
2849 double EtaMax_ = 5.;
2850 double PhiMin_ = -3.14159;
2851 double PhiMax_ = 3.14159;
2866 histoname = labelname+
"_TriggerSummary";
2867 title = labelname+
"Summary of trigger levels";
2870 std::vector<std::string>
trigger;
2871 trigger.emplace_back(
"Nevt");
2872 trigger.emplace_back(
"L1 failed");
2873 trigger.emplace_back(
"L1 & HLT failed");
2874 trigger.emplace_back(
"L1 failed but not HLT");
2875 trigger.emplace_back(
"L1 passed");
2876 trigger.emplace_back(
"L1 & HLT passed");
2877 trigger.emplace_back(
"L1 passed but not HLT");
2879 for(
unsigned int i =0;
i < trigger.size();
i++)
2882 if((
v.getTriggerType() ==
"SingleJet_Trigger")){
2883 histoname = labelname+
"_JetPt";
2884 title = labelname+
"Leading jet pT;Pt[GeV/c]";
2888 histoname = labelname+
"_JetEtaVsPt";
2889 title = labelname+
"Leading jet #eta vs pT;#eta;Pt[GeV/c]";
2890 MonitorElement * JetEtaVsPt = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Ptbins_,PtMin_,PtMax_);
2893 histoname = labelname+
"_JetPhiVsPt";
2894 title = labelname+
"Leading jet #Phi vs pT;#Phi;Pt[GeV/c]";
2895 MonitorElement * JetPhiVsPt = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Ptbins_,PtMin_,PtMax_);
2898 v.setDgnsHistos( TriggerSummary, dummy, JetPt, JetEtaVsPt, JetPhiVsPt, dummy, dummy, dummy, dummy, dummy, dummy);
2901 if((
v.getTriggerType() ==
"DiJet_Trigger")){
2902 histoname = labelname+
"_JetSize";
2903 title = labelname+
"Jet Size;multiplicity";
2907 histoname = labelname+
"_AvergPt";
2908 title = labelname+
"Average Pt;Pt[GeV/c]";
2912 histoname = labelname+
"_AvergEta";
2913 title = labelname+
"Average Eta;#eta";
2914 MonitorElement * Eta12 = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2917 histoname = labelname+
"_PhiDifference";
2918 title = labelname+
"#Delta#Phi;#Delta#Phi";
2919 MonitorElement * Phi12 = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2922 histoname = labelname+
"_Pt3Jet";
2923 title = labelname+
"Pt of 3rd Jet;Pt[GeV/c]";
2927 histoname = labelname+
"_Pt12VsPt3Jet";
2928 title = labelname+
"Pt of 3rd Jet vs Average Pt of leading jets;Avergage Pt[GeV/c]; Pt of 3rd Jet [GeV/c]";
2929 MonitorElement * Pt12Pt3 = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2932 histoname = labelname+
"_Pt12VsPhi12";
2933 title = labelname+
"Average Pt of leading jets vs #Delta#Phi between leading jets;Avergage Pt[GeV/c]; #Delta#Phi";
2934 MonitorElement * Pt12Phi12 = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Phibins_,PhiMin_,PhiMax_);
2937 v.setDgnsHistos( TriggerSummary, JetSize, dummy, dummy, dummy, Pt12, Eta12, Phi12, Pt3, Pt12Pt3, Pt12Phi12);
2940 if((
v.getTriggerType() ==
"MET_Trigger")){
2941 histoname = labelname+
"_MET";
2942 title = labelname+
"MET;Pt[GeV/c]";
2946 v.setDgnsHistos(TriggerSummary, dummy, MET, dummy, dummy, dummy, dummy, dummy,dummy,dummy,dummy);
2949 if((
v.getTriggerType() ==
"TET_Trigger")){
2950 histoname = labelname+
"_TET";
2951 title = labelname+
"TET;Pt[GeV/c]";
2955 v.setDgnsHistos(TriggerSummary, dummy, TET, dummy, dummy, dummy, dummy, dummy,dummy,dummy,dummy);
2973 for(
auto & numpathmodule : numpathmodules) {
2976 l1pathname = numpathmodule;
2986 if (fabs(eta)<=1.3) output=
true;
2993 if (fabs(eta)<=3.0 && fabs(eta)>1.3) output=
true;
3000 if (fabs(eta)>3.0) output=
true;
3030 double binVal = -100;
3031 for(
int ibin=1; ibin<nbins+1; ibin++)
3033 const char * binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
3034 if(binLabel[0]==
'\0')
continue;
3037 if(trigName!=binLabel)
continue;
3039 if(trigName==binLabel){
3054 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index "<< index <<
" of that name ";
3057 if (!k.empty()) output=
true;
unsigned int size() const
number of trigger paths in trigger table
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< edm::TriggerResults > triggerResultsFUToken
edm::EDGetTokenT< reco::VertexCollection > vertexToken
edm::EDGetTokenT< reco::PFJetCollection > pfJetsToken
const std::string moduleType(const std::string &module) const
C++ class name of module.
virtual bool isEndCap(double eta)
trigger::size_type sizeFilters() const
const std::string & triggerName(unsigned int triggerIndex) const
JetMETHLTOfflineSource(const edm::ParameterSet &)
edm::TriggerNames triggerNames_
edm::Handle< reco::PFJetCollection > pfjetColl_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual double TriggerPosition(std::string trigName)
bool accept() const
Has at least one path accepted the event?
const Keys & filterKeys(trigger::size_type index) const
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
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)
edm::Handle< edm::TriggerResults > triggerResults_
edm::LuminosityBlockNumber_t luminosityBlock() const
edm::InputTag triggerResultsLabel_
double pt() const final
transverse momentum
double correction(const LorentzVector &fJet) const
get correction using Jet information only
reco::PFJetCollection pfjet
Strings::size_type size() const
edm::Handle< reco::PFMETCollection > pfmetColl_
PathInfoCollection hltPathsAllTriggerSummary_
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 &)
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
void setCurrentFolder(std::string const &fullpath)
unsigned int triggerIndex(std::string const &name) const
edm::EDGetTokenT< reco::JetCorrector > CaloJetCorToken_
std::vector< std::string > MBTrigPaths_
double et() const final
transverse energy
const TriggerObjectCollection & getObjects() const
virtual bool isTriggerObjectFound(std::string objectName)
virtual bool isForward(double eta)
MonitorElement * correlation_AllWrtMu
std::vector< std::string > pathRejectKeyword_
MonitorElement * book1D(Args &&...args)
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< reco::CaloMETCollection > caloMetToken
reco::CaloJetCollection calojet
std::vector< std::string > MuonTrigPaths_
virtual bool isHLTPathAccepted(std::string pathName)
edm::Handle< reco::CaloJetCollection > calojetColl_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
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)
virtual void fillMEforMonTriggerSummary(const edm::Event &iEvent, const edm::EventSetup &)
std::vector< std::pair< std::string, std::string > > custompathnamepairs_
T const * product() const
MonitorElement * book2D(Args &&...args)
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
const std::string getL1ConditionModuleName(const std::string &pathname)
edm::Handle< trigger::TriggerEvent > triggerObj_
MonitorElement * correlation_AllWrtMB
edm::EDGetTokenT< reco::CaloJetCollection > caloJetsToken
et
define resolution functions of each parameter
HLTConfigProvider hltConfig_
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 * bookFloat(Args &&...args)
double phi() const final
momentum azimuthal angle
MonitorElement * rate_AllWrtMu
reco::helper::JetIDHelper * jetID
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
edm::EDGetTokenT< reco::JetCorrector > PFJetCorToken_
MonitorElement * rate_All
PathInfoCollection hltPathsEff_