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 auto *cjetTrigVal = (
char*)jetTrigVal.c_str();
856 jetVal=atof(cjetTrigVal);
861 trigMedpTcut = jetVal + 5.;
862 trigHighpTcut = jetVal + 10.;
864 trigLowpTcutFwd = jetVal + 9.;
865 trigMedpTcutFwd = jetVal + 15.;
866 trigHighpTcutFwd = jetVal + 21.;
870 trigMedpTcut = jetVal + 2.;
871 trigHighpTcut = jetVal + 60.;
873 trigLowpTcutFwd = jetVal + 22.;
874 trigMedpTcutFwd = jetVal + 25.;
875 trigHighpTcutFwd = jetVal + 110.;
877 trigLowpTcut = jetVal;
883 trigMedpTPFcut = jetVal + 20.;
884 trigHighpTPFcut = jetVal + 40.;
886 trigLowpTPFcutFwd = jetVal + 60.;
887 trigMedpTPFcutFwd = jetVal + 80.;
888 trigHighpTPFcutFwd = jetVal + 100.;
892 trigMedpTPFcut = jetVal + 40.;
893 trigHighpTPFcut = jetVal + 140.;
895 trigLowpTPFcutFwd = jetVal + 110.;
896 trigMedpTPFcutFwd = jetVal + 130.;
897 trigHighpTPFcutFwd = jetVal + 190.;
899 trigLowpTPFcut = jetVal;
905 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: CaloJet -------------------" << std::endl;
910 bool jetIDbool =
false;
917 if((
v.getTriggerType() ==
"SingleJet_Trigger") && !
calojet.empty()){
919 if(
verbose_)
cout<<
"Passed CaloJet ID -------------------" << endl;
922 v.getMEhisto_DenominatorPt()->Fill(leadjpt);
923 if (
isBarrel(leadjeta))
v.getMEhisto_DenominatorPtBarrel()->Fill(leadjpt);
924 if (
isEndCap(leadjeta))
v.getMEhisto_DenominatorPtEndcap()->Fill(leadjpt);
925 if (
isForward(leadjeta))
v.getMEhisto_DenominatorPtForward()->Fill(leadjpt);
926 v.getMEhisto_DenominatorEta()->Fill(leadjeta);
927 v.getMEhisto_DenominatorPhi()->Fill(leadjphi);
928 v.getMEhisto_DenominatorEtaPhi()->Fill(leadjeta,leadjphi);
930 v.getMEhisto_DenominatorEtaBarrel()->Fill(leadjeta);
931 v.getMEhisto_DenominatorPhiBarrel()->Fill(leadjphi);
934 v.getMEhisto_DenominatorEtaEndcap()->Fill(leadjeta);
935 v.getMEhisto_DenominatorPhiEndcap()->Fill(leadjphi);
938 v.getMEhisto_DenominatorEtaForward()->Fill(leadjeta);
939 v.getMEhisto_DenominatorPhiForward()->Fill(leadjphi);
941 if((leadjpt > trigLowpTcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))){
942 v.getMEhisto_DenominatorEta_LowpTcut()->Fill(leadjeta);
943 v.getMEhisto_DenominatorPhi_LowpTcut()->Fill(leadjphi);
944 v.getMEhisto_DenominatorEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
946 if((leadjpt > trigMedpTcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))){
947 v.getMEhisto_DenominatorEta_MedpTcut()->Fill(leadjeta);
948 v.getMEhisto_DenominatorPhi_MedpTcut()->Fill(leadjphi);
949 v.getMEhisto_DenominatorEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
951 if((leadjpt > trigHighpTcut && !
isForward(leadjeta)) || (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))){
952 v.getMEhisto_DenominatorEta_HighpTcut()->Fill(leadjeta);
953 v.getMEhisto_DenominatorPhi_HighpTcut()->Fill(leadjphi);
954 v.getMEhisto_DenominatorEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
960 double dRmin = 99999.;
961 double dPhimin = 9999.;
962 if(
v.getPath().find(
"L1") != std::string::npos){
964 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
968 for(
unsigned short ki : kl1){
969 double dR =
deltaR(toc[ki].
eta(), toc[ki].
phi(), leadjeta, leadjphi);
978 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
982 auto kj = khlt.begin();
983 for(;kj != khlt.end(); ++kj){
995 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
996 v.getMEhisto_DeltaR()->Fill(dRmin);
999 if(dRmin < 0.1 || (
v.getPath().find(
"L1") != std::string::npos && dRmin < 0.4)){
1000 v.getMEhisto_NumeratorPt()->Fill(leadjpt);
1001 if (
isBarrel(leadjeta))
v.getMEhisto_NumeratorPtBarrel()->Fill(leadjpt);
1002 if (
isEndCap(leadjeta))
v.getMEhisto_NumeratorPtEndcap()->Fill(leadjpt);
1003 if (
isForward(leadjeta))
v.getMEhisto_NumeratorPtForward()->Fill(leadjpt);
1004 v.getMEhisto_NumeratorEta()->Fill(leadjeta);
1005 v.getMEhisto_NumeratorPhi()->Fill(leadjphi);
1006 v.getMEhisto_NumeratorEtaPhi()->Fill(leadjeta,leadjphi);
1008 v.getMEhisto_NumeratorEtaBarrel()->Fill(leadjeta);
1009 v.getMEhisto_NumeratorPhiBarrel()->Fill(leadjphi);
1012 v.getMEhisto_NumeratorEtaEndcap()->Fill(leadjeta);
1013 v.getMEhisto_NumeratorPhiEndcap()->Fill(leadjphi);
1016 v.getMEhisto_NumeratorEtaForward()->Fill(leadjeta);
1017 v.getMEhisto_NumeratorPhiForward()->Fill(leadjphi);
1019 if((leadjpt > trigLowpTcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))){
1020 v.getMEhisto_NumeratorEta_LowpTcut()->Fill(leadjeta);
1021 v.getMEhisto_NumeratorPhi_LowpTcut()->Fill(leadjphi);
1022 v.getMEhisto_NumeratorEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
1024 if((leadjpt > trigMedpTcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))){
1025 v.getMEhisto_NumeratorEta_MedpTcut()->Fill(leadjeta);
1026 v.getMEhisto_NumeratorPhi_MedpTcut()->Fill(leadjphi);
1027 v.getMEhisto_NumeratorEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
1029 if((leadjpt > trigHighpTcut && !
isForward(leadjeta)) || (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))){
1030 v.getMEhisto_NumeratorEta_HighpTcut()->Fill(leadjeta);
1031 v.getMEhisto_NumeratorPhi_HighpTcut()->Fill(leadjphi);
1032 v.getMEhisto_NumeratorEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
1039 if(jetIDbool ==
true && (
v.getTriggerType() ==
"DiJet_Trigger") &&
calojet.size()>1){
1044 if(numpassed==
true){
1053 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: PFJet -------------------" << std::endl;
1058 bool jetIDbool =
false;
1077 if((
v.getTriggerType() ==
"SingleJet_Trigger") && !
pfjet.empty()){
1080 _pfMHT =
sqrt(pfMHTx*pfMHTx + pfMHTy*pfMHTy);
1081 v.getMEhisto_DenominatorPFMHT()->Fill(
_pfMHT);
1087 if(
verbose_)
cout<<
"Passed PFJet ID -------------------" << endl;
1089 v.getMEhisto_DenominatorPFPt()->Fill(leadjpt);
1090 if (
isBarrel(leadjeta))
v.getMEhisto_DenominatorPFPtBarrel()->Fill(leadjpt);
1091 if (
isEndCap(leadjeta))
v.getMEhisto_DenominatorPFPtEndcap()->Fill(leadjpt);
1092 if (
isForward(leadjeta))
v.getMEhisto_DenominatorPFPtForward()->Fill(leadjpt);
1093 v.getMEhisto_DenominatorPFEta()->Fill(leadjeta);
1094 v.getMEhisto_DenominatorPFPhi()->Fill(leadjphi);
1095 v.getMEhisto_DenominatorPFEtaPhi()->Fill(leadjeta,leadjphi);
1097 v.getMEhisto_DenominatorPFEtaBarrel()->Fill(leadjeta);
1098 v.getMEhisto_DenominatorPFPhiBarrel()->Fill(leadjphi);
1101 v.getMEhisto_DenominatorPFEtaEndcap()->Fill(leadjeta);
1102 v.getMEhisto_DenominatorPFPhiEndcap()->Fill(leadjphi);
1105 v.getMEhisto_DenominatorPFEtaForward()->Fill(leadjeta);
1106 v.getMEhisto_DenominatorPFPhiForward()->Fill(leadjphi);
1108 if((leadjpt > trigLowpTPFcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))){
1109 v.getMEhisto_DenominatorPFEta_LowpTcut()->Fill(leadjeta);
1110 v.getMEhisto_DenominatorPFPhi_LowpTcut()->Fill(leadjphi);
1111 v.getMEhisto_DenominatorPFEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
1113 if((leadjpt > trigMedpTPFcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))){
1114 v.getMEhisto_DenominatorPFEta_MedpTcut()->Fill(leadjeta);
1115 v.getMEhisto_DenominatorPFPhi_MedpTcut()->Fill(leadjphi);
1116 v.getMEhisto_DenominatorPFEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
1118 if((leadjpt > trigHighpTPFcut && !
isForward(leadjeta)) || (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))){
1119 v.getMEhisto_DenominatorPFEta_HighpTcut()->Fill(leadjeta);
1120 v.getMEhisto_DenominatorPFPhi_HighpTcut()->Fill(leadjphi);
1121 v.getMEhisto_DenominatorPFEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
1126 double dRmin = 99999.;
1127 double dPhimin = 9999.;
1128 if(
v.getPath().find(
"L1") != std::string::npos){
1130 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1134 for(
unsigned short ki : kl1){
1135 double dR =
deltaR(toc[ki].
eta(), toc[ki].
phi(), leadjeta, leadjphi);
1144 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1148 for(
unsigned short kj : khlt){
1149 double dR =
deltaR(toc[kj].
eta(), toc[kj].
phi(), leadjeta, leadjphi);
1158 v.getMEhisto_PFDeltaPhi()->Fill(dPhimin);
1159 v.getMEhisto_PFDeltaR()->Fill(dRmin);
1162 if(dRmin < 0.1 || (
v.getPath().find(
"L1") != std::string::npos && dRmin < 0.4)){
1163 v.getMEhisto_NumeratorPFPt()->Fill(leadjpt);
1164 if (
isBarrel(leadjeta))
v.getMEhisto_NumeratorPFPtBarrel()->Fill(leadjpt);
1165 if (
isEndCap(leadjeta))
v.getMEhisto_NumeratorPFPtEndcap()->Fill(leadjpt);
1166 if (
isForward(leadjeta))
v.getMEhisto_NumeratorPFPtForward()->Fill(leadjpt);
1167 v.getMEhisto_NumeratorPFEta()->Fill(leadjeta);
1168 v.getMEhisto_NumeratorPFPhi()->Fill(leadjphi);
1169 v.getMEhisto_NumeratorPFEtaPhi()->Fill(leadjeta,leadjphi);
1171 v.getMEhisto_NumeratorPFEtaBarrel()->Fill(leadjeta);
1172 v.getMEhisto_NumeratorPFPhiBarrel()->Fill(leadjphi);
1175 v.getMEhisto_NumeratorPFEtaEndcap()->Fill(leadjeta);
1176 v.getMEhisto_NumeratorPFPhiEndcap()->Fill(leadjphi);
1179 v.getMEhisto_NumeratorPFEtaForward()->Fill(leadjeta);
1180 v.getMEhisto_NumeratorPFPhiForward()->Fill(leadjphi);
1182 if((leadjpt > trigLowpTPFcut && !
isForward(leadjeta))
1183 || (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))){
1184 v.getMEhisto_NumeratorPFEta_LowpTcut()->Fill(leadjeta);
1185 v.getMEhisto_NumeratorPFPhi_LowpTcut()->Fill(leadjphi);
1186 v.getMEhisto_NumeratorPFEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
1188 if((leadjpt > trigMedpTPFcut && !
isForward(leadjeta))
1189 || (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))){
1190 v.getMEhisto_NumeratorPFEta_MedpTcut()->Fill(leadjeta);
1191 v.getMEhisto_NumeratorPFPhi_MedpTcut()->Fill(leadjphi);
1192 v.getMEhisto_NumeratorPFEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
1194 if((leadjpt > trigHighpTPFcut && !
isForward(leadjeta))
1195 || (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))){
1196 v.getMEhisto_NumeratorPFEta_HighpTcut()->Fill(leadjeta);
1197 v.getMEhisto_NumeratorPFPhi_HighpTcut()->Fill(leadjphi);
1198 v.getMEhisto_NumeratorPFEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
1204 if(jetIDbool ==
true && (
v.getTriggerType() ==
"DiJet_Trigger") &&
pfjet.size()>1){
1224 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: CaloMET -------------------" << std::endl;
1227 && (
v.getPath().find(
"HLT_PFMET")==std::string::npos)){
1230 v.getMEhisto_DenominatorPt()->Fill(met.
et());
1231 v.getMEhisto_DenominatorPhi()->Fill(met.
phi());
1233 v.getMEhisto_NumeratorPt()->Fill(met.
et());
1234 v.getMEhisto_NumeratorPhi()->Fill(met.
phi());
1236 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1239 double dPhimin = 9999.;
1241 for(
unsigned short kj : khlt){
1247 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1253 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: PFMET -------------------" << std::endl;
1256 && (
v.getPath().find(
"HLT_PFMET")!=std::string::npos)){
1258 const PFMET met = pfmetcol->front();
1259 v.getMEhisto_DenominatorPt()->Fill(met.
et());
1260 v.getMEhisto_DenominatorPhi()->Fill(met.
phi());
1262 v.getMEhisto_NumeratorPt()->Fill(met.
et());
1263 v.getMEhisto_NumeratorPhi()->Fill(met.
phi());
1265 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1268 double dPhimin = 9999.;
1270 for(
unsigned short kj : khlt){
1276 v.getMEhisto_DeltaPhi()->Fill(dPhimin);
1303 LogDebug(
"HLTJetMETDQMSource") <<
"HLTConfigProvider failed to initialize.";
1317 for (
unsigned int i=0;
i!=
n; ++
i) {
1318 bool denomFound =
false;
1319 bool numFound =
false;
1326 for(;controlPathname!=
pathFilter_.end(); ++controlPathname){
1327 if(pathname.find((*controlPathname)) != std::string::npos){
1332 if(checkPath==
false)
continue;
1337 if(pathname.find((*rejectPathname)) != std::string::npos){
1342 if(checkPath==
false)
continue;
1349 unsigned int usedPrescale = 1;
1350 unsigned int objectType = 0;
1355 if(pathname.find(
"Jet") != std::string::npos
1356 && !(pathname.find(
"DoubleJet") != std::string::npos)
1357 && !(pathname.find(
"DiJet") != std::string::npos)
1358 && !(pathname.find(
"DiPFJet") != std::string::npos)
1359 && !(pathname.find(
"BTag") != std::string::npos)
1360 && !(pathname.find(
"Mu") != std::string::npos)
1361 && !(pathname.find(
"Fwd") != std::string::npos)){
1362 triggerType =
"SingleJet_Trigger";
1365 if(pathname.find(
"DiJet") != std::string::npos
1366 || pathname.find(
"DiPFJet") != std::string::npos
1367 || pathname.find(
"DoubleJet") != std::string::npos){
1368 triggerType =
"DiJet_Trigger";
1371 if(pathname.find(
"MET") != std::string::npos){
1372 triggerType =
"MET_Trigger";
1375 if(pathname.find(
"HT") != std::string::npos) {
1376 triggerType =
"TET_Trigger";
1382 && !(pathname.find(
"DiJet") != std::string::npos)
1383 && !(pathname.find(
"DiPFJet") != std::string::npos)
1384 && !(pathname.find(
"DoubleJet") != std::string::npos)){
1390 && ((pathname.find(
"DiJet") != std::string::npos)
1391 || (pathname.find(
"DiPFJet") != std::string::npos))){
1412 for (
unsigned int i=0;
i!=
n; ++
i){
1414 if(HLTname == pathname) numFound =
true;
1415 if(HLTname == dpathname) denomFound =
true;
1423 for(
auto & numpathmodule : numpathmodules) {
1432 filtername = numpathmodule;
1436 if(objectType != 0 && denomFound){
1438 for(
auto & numpathmodule : numpathmodules) {
1447 Denomfiltername = numpathmodule;
1451 if(objectType != 0 && numFound){
1453 cout<<
"=Pathname= "<<pathname
1454 <<
" | =Denompath= "<<dpathname
1455 <<
" | =Filtername= "<<filtername
1456 <<
" | =Denomfiltername= "<<Denomfiltername
1457 <<
" | =L1pathname= "<<l1pathname
1458 <<
" | =ObjectType= "<<objectType<<endl;
1459 if(!((pathname.find(
"HT") != std::string::npos) || (pathname.find(
"Quad") != std::string::npos))){
1462 filtername, Denomfiltername,
processname_, objectType, triggerType));
1465 filtername, Denomfiltername,
processname_, objectType, triggerType));
1469 if (
verbose_)
cout <<
"get names for efficicncy------------------"<< endl;
1474 unsigned int usedPrescale = 1;
1475 unsigned int objectType = 0;
1481 std::string dpathname = custompathnamepair.second;
1482 bool numFound =
false;
1483 bool denomFound =
false;
1485 for (
unsigned int i=0;
i!=
n; ++
i) {
1487 if(HLTname.find(pathname)!=std::string::npos){numFound =
true; pathname = HLTname;}
1488 if(HLTname.find(dpathname)!=std::string::npos){denomFound =
true; dpathname = HLTname;}
1490 if(numFound && denomFound){
1491 if (pathname.find(
"Jet") != std::string::npos
1492 && !(pathname.find(
"DiJet") != std::string::npos)
1493 && !(pathname.find(
"DiPFJet") != std::string::npos)
1494 && !(pathname.find(
"DoubleJet") != std::string::npos)
1495 && !(pathname.find(
"BTag") != std::string::npos)
1496 && !(pathname.find(
"Mu") != std::string::npos)
1497 && !(pathname.find(
"Fwd") != std::string::npos)){
1498 triggerType =
"SingleJet_Trigger";
1501 if (pathname.find(
"DiJet") != std::string::npos
1502 || pathname.find(
"DiPFJet") != std::string::npos
1503 || pathname.find(
"DoubleJet") != std::string::npos ){
1504 triggerType =
"DiJet_Trigger";
1507 if (pathname.find(
"MET") != std::string::npos ){
1508 triggerType =
"MET_Trigger";
1511 if (pathname.find(
"TET") != std::string::npos ){
1512 triggerType =
"TET_Trigger";
1518 for(
auto & numpathmodule : numpathmodules) {
1527 filtername = numpathmodule;
1530 if(objectType != 0){
1532 for(
auto & numpathmodule : numpathmodules) {
1541 Denomfiltername = numpathmodule;
1545 <<
"==denompath=="<<dpathname
1546 <<
"==filtername=="<<filtername
1547 <<
"==denomfiltername=="<<Denomfiltername
1548 <<
"==l1pathname=="<<l1pathname
1549 <<
"==objectType=="<<objectType<<endl;
1551 filtername, Denomfiltername,
processname_, objectType, triggerType));
1557 if(
verbose_)
cout<<
"== end hltPathsEff_.push_back ======" << endl;
1578 double TrigMin_ = -0.5;
1583 rate_All = iBooker.
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1585 histonm =
"JetMET_TriggerRate_Correlation";
1586 histot =
"JetMET TriggerRate Correlation Summary;y&&!x;x&&y";
1587 correlation_All = iBooker.
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1589 histonm =
"JetMET_NVertices";
1590 histot =
"No. of vertices";
1593 histonm =
"JetMET_PVZ";
1594 histot =
"Primary Vertex Z pos";
1595 PVZ = iBooker.
book1D(histonm.c_str(),histot.c_str(),100,-50.,50.);
1598 histonm=
"JetMET_TriggerRate_WrtMuTrigger";
1599 histot=
"JetMET TriggerRate Summary Wrt Muon Trigger ";
1600 rate_AllWrtMu = iBooker.
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1602 histonm=
"JetMET_TriggerRate_Correlation_WrtMuTrigger";
1603 histot=
"JetMET TriggerRate Correlation Summary Wrt Muon Trigger;y&&!x;x&&y";
1604 correlation_AllWrtMu = iBooker.
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1606 histonm=
"JetMET_TriggerRate_WrtMBTrigger";
1607 histot=
"JetMET TriggerRate Summary Wrt MB Trigger";
1608 rate_AllWrtMB = iBooker.
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1610 histonm=
"JetMET_TriggerRate_Correlation_WrtMBTrigger";
1611 histot=
"JetMET TriggerRate Correlation Wrt MB Trigger;y&&!x;x&&y";
1612 correlation_AllWrtMB = iBooker.
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1620 labelnm =
v.getPath();
1622 for(
int ibin=1; ibin<nbins+1; ibin++){
1623 const char * binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
1625 if(binLabel_str==labelnm)
break;
1626 if(binLabel[0]==
'\0'){
1647 double Nmin_ = -0.5;
1653 double PtMax_ = 1000.;
1657 double EtaMin_ = -5.;
1658 double EtaMax_ = 5.;
1661 double PhiMin_ = -3.5;
1662 double PhiMax_ = 3.5;
1665 double ResMin_ = -1.5;
1666 double ResMax_ = 1.5;
1685 histoname = labelname+
"_recObjN";
1686 title = labelname+
"_recObjN;Reco multiplicity()"+trigPath;
1690 histoname = labelname+
"_recObjPt";
1691 title = labelname+
"_recObjPt; Reco Pt[GeV/c]"+trigPath;
1695 histoname = labelname+
"_recObjPtBarrel";
1696 title = labelname+
"_recObjPtBarrel;Reco Pt[GeV/c]"+trigPath;
1697 MonitorElement * PtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1700 histoname = labelname+
"_recObjPtEndcap";
1701 title = labelname+
"_recObjPtEndcap;Reco Pt[GeV/c]"+trigPath;
1702 MonitorElement * PtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1705 histoname = labelname+
"_recObjPtForward";
1706 title = labelname+
"_recObjPtForward;Reco Pt[GeV/c]"+trigPath;
1707 MonitorElement * PtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1710 histoname = labelname+
"_recObjEta";
1711 title = labelname+
"_recObjEta;Reco #eta"+trigPath;
1715 histoname = labelname+
"_recObjPhi";
1716 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
1720 histoname = labelname+
"_recObjEtaPhi";
1721 title = labelname+
"_recObjEtaPhi;Reco #eta;Reco #Phi"+trigPath;
1722 MonitorElement * EtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1725 histoname = labelname+
"_l1ObjPt";
1726 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
1727 MonitorElement * Pt_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1730 histoname = labelname+
"_l1ObjEta";
1731 title = labelname+
"_l1ObjEta;L1 #eta"+trigPath;
1732 MonitorElement * Eta_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1735 histoname = labelname+
"_l1ObjPhi";
1736 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
1737 MonitorElement * Phi_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1740 histoname = labelname+
"_l1ObjEtaPhi";
1741 title = labelname+
"_l1ObjEtaPhi;L1 #eta;L1 #Phi"+trigPath;
1742 MonitorElement * EtaPhi_L1 = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1745 histoname = labelname+
"_l1ObjN";
1746 title = labelname+
"_l1ObjN;L1 multiplicity"+trigPath;
1750 histoname = labelname+
"_l1ObjPtBarrel";
1751 title = labelname+
"_l1ObjPtBarrel;L1 Pt[GeV/c]"+trigPath;
1752 MonitorElement * PtBarrel_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1755 histoname = labelname+
"_l1ObjPtEndcap";
1756 title = labelname+
"_l1ObjPtEndcap;L1 Pt[GeV/c]"+trigPath;
1757 MonitorElement * PtEndcap_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1760 histoname = labelname+
"_l1ObjPtForward";
1761 title = labelname+
"_l1ObjPtForward;L1 Pt[GeV/c]"+trigPath;
1762 MonitorElement * PtForward_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1765 histoname = labelname+
"_hltObjN";
1766 title = labelname+
"_hltObjN;HLT multiplicity"+trigPath;
1770 histoname = labelname+
"_hltObjPtBarrel";
1771 title = labelname+
"_hltObjPtBarrel;HLT Pt[GeV/c]"+trigPath;
1772 MonitorElement * PtBarrel_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1775 histoname = labelname+
"_hltObjPtEndcap";
1776 title = labelname+
"_hltObjPtEndcap;HLT Pt[GeV/c]"+trigPath;
1777 MonitorElement * PtEndcap_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1780 histoname = labelname+
"_hltObjPtForward";
1781 title = labelname+
"_hltObjPtForward;HLT Pt[GeV/c]"+trigPath;
1782 MonitorElement * PtForward_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1785 histoname = labelname+
"_hltObjPt";
1786 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
1787 MonitorElement * Pt_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1790 histoname = labelname+
"_hltObjEta";
1791 title = labelname+
"_hltObjEta;HLT #eta"+trigPath;
1792 MonitorElement * Eta_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1795 histoname = labelname+
"_hltObjPhi";
1796 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
1797 MonitorElement * Phi_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1800 histoname = labelname+
"_hltObjEtaPhi";
1801 title = labelname+
"_hltObjEtaPhi;HLT #eta;HLT #Phi"+trigPath;
1802 MonitorElement * EtaPhi_HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1805 histoname = labelname+
"_l1HLTPtResolution";
1806 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
1807 MonitorElement * PtResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1808 PtResolution_L1HLT->
getTH1();
1810 histoname = labelname+
"_l1HLTEtaResolution";
1811 title = labelname+
"_l1HLTEtaResolution;#eta(L1)-#eta(HLT)"+trigPath;
1812 MonitorElement * EtaResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1813 EtaResolution_L1HLT->
getTH1();
1815 histoname = labelname+
"_l1HLTPhiResolution";
1816 title = labelname+
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)"+trigPath;
1817 MonitorElement * PhiResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1818 PhiResolution_L1HLT->
getTH1();
1820 histoname = labelname+
"_l1HLTPtCorrelation";
1821 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
1822 MonitorElement * PtCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1823 PtCorrelation_L1HLT->
getTH1();
1825 histoname = labelname+
"_l1HLTEtaCorrelation";
1826 title = labelname+
"_l1HLTEtaCorrelation;#eta(L1);#eta(HLT)"+trigPath;
1827 MonitorElement * EtaCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
1828 EtaCorrelation_L1HLT->
getTH1();
1830 histoname = labelname+
"_l1HLTPhiCorrelation";
1831 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
1832 MonitorElement * PhiCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1833 PhiCorrelation_L1HLT->
getTH1();
1835 histoname = labelname+
"_hltRecObjPtResolution";
1836 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
1837 MonitorElement * PtResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1838 PtResolution_HLTRecObj->
getTH1();
1840 histoname = labelname+
"_hltRecObjEtaResolution";
1841 title = labelname+
"_hltRecObjEtaResolution;#eta(HLT)-#eta(Reco)"+trigPath;
1842 MonitorElement * EtaResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1843 EtaResolution_HLTRecObj->
getTH1();
1845 histoname = labelname+
"_hltRecObjPhiResolution";
1846 title = labelname+
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)"+trigPath;
1847 MonitorElement * PhiResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1848 PhiResolution_HLTRecObj->
getTH1();
1850 histoname = labelname+
"_hltRecObjPtCorrelation";
1851 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
1852 MonitorElement * PtCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1853 PtCorrelation_HLTRecObj->
getTH1();
1855 histoname = labelname+
"_hltRecObjEtaCorrelation";
1856 title = labelname+
"_hltRecObjEtaCorrelation;#eta(HLT);#eta(Reco)"+trigPath;
1857 MonitorElement * EtaCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
1858 EtaCorrelation_HLTRecObj->
getTH1();
1860 histoname = labelname+
"_hltRecObjPhiCorrelation";
1861 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
1862 MonitorElement * PhiCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1863 PhiCorrelation_HLTRecObj->
getTH1();
1890 EtaResolution_L1HLT,
1891 PhiResolution_L1HLT,
1892 PtResolution_HLTRecObj,
1893 EtaResolution_HLTRecObj,
1894 PhiResolution_HLTRecObj,
1895 PtCorrelation_L1HLT,
1896 EtaCorrelation_L1HLT,
1897 PhiCorrelation_L1HLT,
1898 PtCorrelation_HLTRecObj,
1899 EtaCorrelation_HLTRecObj,
1900 PhiCorrelation_HLTRecObj,
1915 histoname = labelname+
"_RecObjAveragePt";
1916 title = labelname+
"_RecObjAveragePt;Reco Average Pt[GeV/c]"+trigPath;
1917 MonitorElement * jetAveragePt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1920 histoname = labelname+
"_RecObjAverageEta";
1921 title = labelname+
"_RecObjAverageEta;Reco Average #eta"+trigPath;
1922 MonitorElement * jetAverageEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1925 histoname = labelname+
"_RecObjPhiDifference";
1926 title = labelname+
"_RecObjPhiDifference;Reco #Delta#Phi"+trigPath;
1927 MonitorElement * jetPhiDifference = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1928 jetPhiDifference->
getTH1();
1930 histoname = labelname+
"_hltObjAveragePt";
1931 title = labelname+
"_hltObjAveragePt;HLT Average Pt[GeV/c]"+trigPath;
1932 MonitorElement * hltAveragePt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1935 histoname = labelname+
"_hltObjAverageEta";
1936 title = labelname+
"_hltObjAverageEta;HLT Average #eta"+trigPath;
1937 MonitorElement * hltAverageEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1940 histoname = labelname+
"_hltObjPhiDifference";
1941 title = labelname+
"_hltObjPhiDifference;Reco #Delta#Phi"+trigPath;
1942 MonitorElement * hltPhiDifference = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1943 hltPhiDifference->
getTH1();
1995 histoname = labelname+
"_recObjPt";
1996 title = labelname+
"_recObjPt;Reco Pt[GeV/c]"+trigPath;
2000 histoname = labelname+
"_recObjPhi";
2001 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
2005 histoname = labelname+
"_l1ObjPt";
2006 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
2007 MonitorElement * Pt_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2010 histoname = labelname+
"_l1ObjPhi";
2011 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
2012 MonitorElement * Phi_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2015 histoname = labelname+
"_hltObjPt";
2016 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
2017 MonitorElement * Pt_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2020 histoname = labelname+
"_hltObjPhi";
2021 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
2022 MonitorElement * Phi_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2025 histoname = labelname+
"_l1HLTPtResolution";
2026 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
2027 MonitorElement * PtResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
2028 PtResolution_L1HLT->
getTH1();
2030 histoname = labelname+
"_l1HLTPhiResolution";
2031 title = labelname+
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)"+trigPath;
2032 MonitorElement * PhiResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
2033 PhiResolution_L1HLT->
getTH1();
2035 histoname = labelname+
"_l1HLTPtCorrelation";
2036 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
2037 MonitorElement * PtCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2038 PtCorrelation_L1HLT->
getTH1();
2040 histoname = labelname+
"_l1HLTPhiCorrelation";
2041 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
2042 MonitorElement * PhiCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
2043 PhiCorrelation_L1HLT->
getTH1();
2045 histoname = labelname+
"_hltRecObjPtResolution";
2046 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
2047 MonitorElement * PtResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
2048 PtResolution_HLTRecObj->
getTH1();
2050 histoname = labelname+
"_hltRecObjPhiResolution";
2051 title = labelname+
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)"+trigPath;
2052 MonitorElement * PhiResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
2053 PhiResolution_HLTRecObj->
getTH1();
2055 histoname = labelname+
"_hltRecObjPtCorrelation";
2056 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
2057 MonitorElement * PtCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2058 PtCorrelation_HLTRecObj->
getTH1();
2060 histoname = labelname+
"_hltRecObjPhiCorrelation";
2061 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
2062 MonitorElement * PhiCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
2063 PhiCorrelation_HLTRecObj->
getTH1();
2091 PhiResolution_L1HLT,
2092 PtResolution_HLTRecObj,
2094 PhiResolution_HLTRecObj,
2095 PtCorrelation_L1HLT,
2097 PhiCorrelation_L1HLT,
2098 PtCorrelation_HLTRecObj,
2100 PhiCorrelation_HLTRecObj,
2120 double PtMax_ = 1000.;
2123 double EtaMin_ = -5.;
2124 double EtaMax_ = 5.;
2127 double PhiMin_ = -3.5;
2128 double PhiMax_ = 3.5;
2137 std::string subdirName = dirName1 + trgPathName +
"_wrt_" + trgPathNameD;
2148 histoname = labelname+
"_NumeratorPt";
2149 title = labelname+
"NumeratorPt;Calo Pt[GeV/c]";
2150 MonitorElement * NumeratorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2153 histoname = labelname+
"_NumeratorPtBarrel";
2154 title = labelname+
"NumeratorPtBarrel;Calo Pt[GeV/c] ";
2155 MonitorElement * NumeratorPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2156 NumeratorPtBarrel->
getTH1();
2158 histoname = labelname+
"_NumeratorPtEndcap";
2159 title = labelname+
"NumeratorPtEndcap;Calo Pt[GeV/c]";
2160 MonitorElement * NumeratorPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2161 NumeratorPtEndcap->
getTH1();
2163 histoname = labelname+
"_NumeratorPtForward";
2164 title = labelname+
"NumeratorPtForward;Calo Pt[GeV/c]";
2165 MonitorElement * NumeratorPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2166 NumeratorPtForward->
getTH1();
2168 histoname = labelname+
"_NumeratorEta";
2169 title = labelname+
"NumeratorEta;Calo #eta ";
2170 MonitorElement * NumeratorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2173 histoname = labelname+
"_NumeratorPhi";
2174 title = labelname+
"NumeratorPhi;Calo #Phi";
2175 MonitorElement * NumeratorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2178 histoname = labelname+
"_NumeratorEtaPhi";
2179 title = labelname+
"NumeratorEtaPhi;Calo #eta;Calo #Phi";
2180 MonitorElement * NumeratorEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2181 NumeratorEtaPhi->
getTH1();
2183 histoname = labelname+
"_NumeratorEtaBarrel";
2184 title = labelname+
"NumeratorEtaBarrel;Calo #eta ";
2185 MonitorElement * NumeratorEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2186 NumeratorEtaBarrel->
getTH1();
2188 histoname = labelname+
"_NumeratorPhiBarrel";
2189 title = labelname+
"NumeratorPhiBarrel;Calo #Phi";
2190 MonitorElement * NumeratorPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2191 NumeratorPhiBarrel->
getTH1();
2193 histoname = labelname+
"_NumeratorEtaEndcap";
2194 title = labelname+
"NumeratorEtaEndcap;Calo #eta ";
2195 MonitorElement * NumeratorEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2196 NumeratorEtaEndcap->
getTH1();
2198 histoname = labelname+
"_NumeratorPhiEndcap";
2199 title = labelname+
"NumeratorPhiEndcap;Calo #Phi";
2200 MonitorElement * NumeratorPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2201 NumeratorPhiEndcap->
getTH1();
2203 histoname = labelname+
"_NumeratorEtaForward";
2204 title = labelname+
"NumeratorEtaForward;Calo #eta ";
2205 MonitorElement * NumeratorEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2206 NumeratorEtaForward->
getTH1();
2208 histoname = labelname+
"_NumeratorPhiForward";
2209 title = labelname+
"NumeratorPhiForward;Calo #Phi";
2210 MonitorElement * NumeratorPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2211 NumeratorPhiForward->
getTH1();
2213 histoname = labelname+
"_NumeratorEta_LowpTcut";
2214 title = labelname+
"NumeratorEta_LowpTcut;Calo #eta ";
2215 MonitorElement * NumeratorEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2216 NumeratorEta_LowpTcut->
getTH1();
2218 histoname = labelname+
"_NumeratorPhi_LowpTcut";
2219 title = labelname+
"NumeratorPhi_LowpTcut;Calo #Phi";
2220 MonitorElement * NumeratorPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2221 NumeratorPhi_LowpTcut->
getTH1();
2223 histoname = labelname+
"_NumeratorEtaPhi_LowpTcut";
2224 title = labelname+
"NumeratorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2225 MonitorElement * NumeratorEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2226 NumeratorEtaPhi_LowpTcut->
getTH1();
2228 histoname = labelname+
"_NumeratorEta_MedpTcut";
2229 title = labelname+
"NumeratorEta_MedpTcut;Calo #eta ";
2230 MonitorElement * NumeratorEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2231 NumeratorEta_MedpTcut->
getTH1();
2233 histoname = labelname+
"_NumeratorPhi_MedpTcut";
2234 title = labelname+
"NumeratorPhi_MedpTcut;Calo #Phi";
2235 MonitorElement * NumeratorPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2236 NumeratorPhi_MedpTcut->
getTH1();
2238 histoname = labelname+
"_NumeratorEtaPhi_MedpTcut";
2239 title = labelname+
"NumeratorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2240 MonitorElement * NumeratorEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2241 NumeratorEtaPhi_MedpTcut->
getTH1();
2243 histoname = labelname+
"_NumeratorEta_HighpTcut";
2244 title = labelname+
"NumeratorEta_HighpTcut;Calo #eta ";
2245 MonitorElement * NumeratorEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2246 NumeratorEta_HighpTcut->
getTH1();
2248 histoname = labelname+
"_NumeratorPhi_HighpTcut";
2249 title = labelname+
"NumeratorPhi_HighpTcut;Calo #Phi";
2250 MonitorElement * NumeratorPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2251 NumeratorPhi_HighpTcut->
getTH1();
2253 histoname = labelname+
"_NumeratorEtaPhi_HighpTcut";
2254 title = labelname+
"NumeratorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2255 MonitorElement * NumeratorEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2256 NumeratorEtaPhi_HighpTcut->
getTH1();
2258 histoname = labelname+
"_DenominatorPt";
2259 title = labelname+
"DenominatorPt;Calo Pt[GeV/c]";
2260 MonitorElement * DenominatorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2263 histoname = labelname+
"_DenominatorPtBarrel";
2264 title = labelname+
"DenominatorPtBarrel;Calo Pt[GeV/c]";
2265 MonitorElement * DenominatorPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2266 DenominatorPtBarrel->
getTH1();
2268 histoname = labelname+
"_DenominatorPtEndcap";
2269 title = labelname+
"DenominatorPtEndcap;Calo Pt[GeV/c]";
2270 MonitorElement * DenominatorPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2271 DenominatorPtEndcap->
getTH1();
2273 histoname = labelname+
"_DenominatorPtForward";
2274 title = labelname+
"DenominatorPtForward;Calo Pt[GeV/c] ";
2275 MonitorElement * DenominatorPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2276 DenominatorPtForward->
getTH1();
2278 histoname = labelname+
"_DenominatorEta";
2279 title = labelname+
"DenominatorEta;Calo #eta ";
2280 MonitorElement * DenominatorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2281 DenominatorEta->
getTH1();
2283 histoname = labelname+
"_DenominatorPhi";
2284 title = labelname+
"DenominatorPhi;Calo #Phi";
2285 MonitorElement * DenominatorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2286 DenominatorPhi->
getTH1();
2288 histoname = labelname+
"_DenominatorEtaPhi";
2289 title = labelname+
"DenominatorEtaPhi;Calo #eta; Calo #Phi";
2290 MonitorElement * DenominatorEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2291 DenominatorEtaPhi->
getTH1();
2293 histoname = labelname+
"_DenominatorEtaBarrel";
2294 title = labelname+
"DenominatorEtaBarrel;Calo #eta ";
2295 MonitorElement * DenominatorEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2296 DenominatorEtaBarrel->
getTH1();
2298 histoname = labelname+
"_DenominatorPhiBarrel";
2299 title = labelname+
"DenominatorPhiBarrel;Calo #Phi";
2300 MonitorElement * DenominatorPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2301 DenominatorPhiBarrel->
getTH1();
2303 histoname = labelname+
"_DenominatorEtaEndcap";
2304 title = labelname+
"DenominatorEtaEndcap;Calo #eta ";
2305 MonitorElement * DenominatorEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2306 DenominatorEtaEndcap->
getTH1();
2308 histoname = labelname+
"_DenominatorPhiEndcap";
2309 title = labelname+
"DenominatorPhiEndcap;Calo #Phi";
2310 MonitorElement * DenominatorPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2311 DenominatorPhiEndcap->
getTH1();
2313 histoname = labelname+
"_DenominatorEtaForward";
2314 title = labelname+
"DenominatorEtaForward;Calo #eta ";
2315 MonitorElement * DenominatorEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2316 DenominatorEtaForward->
getTH1();
2318 histoname = labelname+
"_DenominatorPhiForward";
2319 title = labelname+
"DenominatorPhiForward;Calo #Phi";
2320 MonitorElement * DenominatorPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2321 DenominatorPhiForward->
getTH1();
2323 histoname = labelname+
"_DenominatorEta_LowpTcut";
2324 title = labelname+
"DenominatorEta_LowpTcut;Calo #eta ";
2325 MonitorElement * DenominatorEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2326 DenominatorEta_LowpTcut->
getTH1();
2328 histoname = labelname+
"_DenominatorPhi_LowpTcut";
2329 title = labelname+
"DenominatorPhi_LowpTcut;Calo #Phi";
2330 MonitorElement * DenominatorPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2331 DenominatorPhi_LowpTcut->
getTH1();
2333 histoname = labelname+
"_DenominatorEtaPhi_LowpTcut";
2334 title = labelname+
"DenominatorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2335 MonitorElement * DenominatorEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2336 DenominatorEtaPhi_LowpTcut->
getTH1();
2338 histoname = labelname+
"_DenominatorEta_MedpTcut";
2339 title = labelname+
"DenominatorEta_MedpTcut;Calo #eta ";
2340 MonitorElement * DenominatorEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2341 DenominatorEta_MedpTcut->
getTH1();
2343 histoname = labelname+
"_DenominatorPhi_MedpTcut";
2344 title = labelname+
"DenominatorPhi_MedpTcut;Calo #Phi";
2345 MonitorElement * DenominatorPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2346 DenominatorPhi_MedpTcut->
getTH1();
2348 histoname = labelname+
"_DenominatorEtaPhi_MedpTcut";
2349 title = labelname+
"DenominatorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2350 MonitorElement * DenominatorEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2351 DenominatorEtaPhi_MedpTcut->
getTH1();
2353 histoname = labelname+
"_DenominatorEta_HighpTcut";
2354 title = labelname+
"DenominatorEta_HighpTcut;Calo #eta ";
2355 MonitorElement * DenominatorEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2356 DenominatorEta_HighpTcut->
getTH1();
2358 histoname = labelname+
"_DenominatorPhi_HighpTcut";
2359 title = labelname+
"DenominatorPhi_HighpTcut;Calo #Phi";
2360 MonitorElement * DenominatorPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2361 DenominatorPhi_HighpTcut->
getTH1();
2363 histoname = labelname+
"_DenominatorEtaPhi_HighpTcut";
2364 title = labelname+
"DenominatorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2365 MonitorElement * DenominatorEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2366 DenominatorEtaPhi_HighpTcut->
getTH1();
2368 histoname = labelname+
"_DeltaR";
2369 title = labelname+
"DeltaR;";
2373 histoname = labelname+
"_DeltaPhi";
2374 title = labelname+
"DeltaPhi;";
2378 histoname = labelname+
"_NumeratorPFMHT";
2379 title = labelname+
"NumeratorPFMHT;PFMHT[GeV/c]";
2380 MonitorElement * NumeratorPFMHT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2381 NumeratorPFMHT->
getTH1();
2383 histoname = labelname+
"_NumeratorPFPt";
2384 title = labelname+
"NumeratorPFPt;PF Pt[GeV/c]";
2385 MonitorElement * NumeratorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2388 histoname = labelname+
"_NumeratorPFPtBarrel";
2389 title = labelname+
"NumeratorPFPtBarrel;PF Pt[GeV/c] ";
2390 MonitorElement * NumeratorPFPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2391 NumeratorPFPtBarrel->
getTH1();
2393 histoname = labelname+
"_NumeratorPFPtEndcap";
2394 title = labelname+
"NumeratorPFPtEndcap;PF Pt[GeV/c]";
2395 MonitorElement * NumeratorPFPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2396 NumeratorPFPtEndcap->
getTH1();
2398 histoname = labelname+
"_NumeratorPFPtForward";
2399 title = labelname+
"NumeratorPFPtForward;PF Pt[GeV/c]";
2400 MonitorElement * NumeratorPFPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2401 NumeratorPFPtForward->
getTH1();
2403 histoname = labelname+
"_NumeratorPFEta";
2404 title = labelname+
"NumeratorPFEta;PF #eta ";
2405 MonitorElement * NumeratorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2406 NumeratorPFEta->
getTH1();
2408 histoname = labelname+
"_NumeratorPFPhi";
2409 title = labelname+
"NumeratorPFPhi;Calo #Phi";
2410 MonitorElement * NumeratorPFPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2411 NumeratorPFPhi->
getTH1();
2413 histoname = labelname+
"_NumeratorPFEtaPhi";
2414 title = labelname+
"NumeratorPFEtaPhi;PF #eta;Calo #Phi";
2415 MonitorElement * NumeratorPFEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2416 NumeratorPFEtaPhi->
getTH1();
2418 histoname = labelname+
"_NumeratorPFEtaBarrel";
2419 title = labelname+
"NumeratorPFEtaBarrel;PF #eta ";
2420 MonitorElement * NumeratorPFEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2421 NumeratorPFEtaBarrel->
getTH1();
2423 histoname = labelname+
"_NumeratorPFPhiBarrel";
2424 title = labelname+
"NumeratorPFPhiBarrel;PF #Phi";
2425 MonitorElement * NumeratorPFPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2426 NumeratorPFPhiBarrel->
getTH1();
2428 histoname = labelname+
"_NumeratorPFEtaEndcap";
2429 title = labelname+
"NumeratorPFEtaEndcap;Calo #eta ";
2430 MonitorElement * NumeratorPFEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2431 NumeratorPFEtaEndcap->
getTH1();
2433 histoname = labelname+
"_NumeratorPFPhiEndcap";
2434 title = labelname+
"NumeratorPFPhiEndcap;PF #Phi";
2435 MonitorElement * NumeratorPFPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2436 NumeratorPFPhiEndcap->
getTH1();
2438 histoname = labelname+
"_NumeratorPFEtaForward";
2439 title = labelname+
"NumeratorPFEtaForward;Calo #eta ";
2440 MonitorElement * NumeratorPFEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2441 NumeratorPFEtaForward->
getTH1();
2443 histoname = labelname+
"_NumeratorPFPhiForward";
2444 title = labelname+
"NumeratorPFPhiForward;PF #Phi";
2445 MonitorElement * NumeratorPFPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2446 NumeratorPFPhiForward->
getTH1();
2448 histoname = labelname+
"_NumeratorPFEta_LowpTcut";
2449 title = labelname+
"NumeratorPFEta_LowpTcut;PF #eta ";
2450 MonitorElement * NumeratorPFEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2451 NumeratorPFEta_LowpTcut->
getTH1();
2453 histoname = labelname+
"_NumeratorPFPhi_LowpTcut";
2454 title = labelname+
"NumeratorPFPhi_LowpTcut;PF #Phi";
2455 MonitorElement * NumeratorPFPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2456 NumeratorPFPhi_LowpTcut->
getTH1();
2458 histoname = labelname+
"_NumeratorPFEtaPhi_LowpTcut";
2459 title = labelname+
"NumeratorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2460 MonitorElement * NumeratorPFEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2461 NumeratorPFEtaPhi_LowpTcut->
getTH1();
2463 histoname = labelname+
"_NumeratorPFEta_MedpTcut";
2464 title = labelname+
"NumeratorPFEta_MedpTcut;PF #eta ";
2465 MonitorElement * NumeratorPFEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2466 NumeratorPFEta_MedpTcut->
getTH1();
2468 histoname = labelname+
"_NumeratorPFPhi_MedpTcut";
2469 title = labelname+
"NumeratorPFPhi_MedpTcut;PF #Phi";
2470 MonitorElement * NumeratorPFPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2471 NumeratorPFPhi_MedpTcut->
getTH1();
2473 histoname = labelname+
"_NumeratorPFEtaPhi_MedpTcut";
2474 title = labelname+
"NumeratorPFEtaPhi_MedpTcut;PF #eta;PF #Phi";
2475 MonitorElement * NumeratorPFEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2476 NumeratorPFEtaPhi_MedpTcut->
getTH1();
2478 histoname = labelname+
"_NumeratorPFEta_HighpTcut";
2479 title = labelname+
"NumeratorPFEta_HighpTcut;Calo #eta ";
2480 MonitorElement * NumeratorPFEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2481 NumeratorPFEta_HighpTcut->
getTH1();
2483 histoname = labelname+
"_NumeratorPFPhi_HighpTcut";
2484 title = labelname+
"NumeratorPFPhi_HighpTcut;PF #Phi";
2485 MonitorElement * NumeratorPFPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2486 NumeratorPFPhi_HighpTcut->
getTH1();
2488 histoname = labelname+
"_NumeratorPFEtaPhi_HighpTcut";
2489 title = labelname+
"NumeratorPFEtaPhi_HighpTcut;PF #eta;PF #Phi";
2490 MonitorElement * NumeratorPFEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2491 NumeratorPFEtaPhi_HighpTcut->
getTH1();
2493 histoname = labelname+
"_DenominatorPFMHT";
2494 title = labelname+
"DenominatorPFMHT;PF Pt[GeV/c]";
2495 MonitorElement * DenominatorPFMHT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2496 DenominatorPFMHT->
getTH1();
2498 histoname = labelname+
"_DenominatorPFPt";
2499 title = labelname+
"DenominatorPFPt;PF Pt[GeV/c]";
2500 MonitorElement * DenominatorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2501 DenominatorPFPt->
getTH1();
2503 histoname = labelname+
"_DenominatorPFPtBarrel";
2504 title = labelname+
"DenominatorPFPtBarrel;Calo Pt[GeV/c]";
2505 MonitorElement * DenominatorPFPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2506 DenominatorPFPtBarrel->
getTH1();
2508 histoname = labelname+
"_DenominatorPFPtEndcap";
2509 title = labelname+
"DenominatorPFPtEndcap;PF Pt[GeV/c]";
2510 MonitorElement * DenominatorPFPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2511 DenominatorPFPtEndcap->
getTH1();
2513 histoname = labelname+
"_DenominatorPFPtForward";
2514 title = labelname+
"DenominatorPFPtForward;PF Pt[GeV/c] ";
2515 MonitorElement * DenominatorPFPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2516 DenominatorPFPtForward->
getTH1();
2518 histoname = labelname+
"_DenominatorPFEta";
2519 title = labelname+
"DenominatorPFEta;PF #eta ";
2520 MonitorElement * DenominatorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2521 DenominatorPFEta->
getTH1();
2523 histoname = labelname+
"_DenominatorPFPhi";
2524 title = labelname+
"DenominatorPFPhi;PF #Phi";
2525 MonitorElement * DenominatorPFPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2526 DenominatorPFPhi->
getTH1();
2528 histoname = labelname+
"_DenominatorPFEtaPhi";
2529 title = labelname+
"DenominatorPFEtaPhi;PF #eta; Calo #Phi";
2530 MonitorElement * DenominatorPFEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2531 DenominatorPFEtaPhi->
getTH1();
2533 histoname = labelname+
"_DenominatorPFEtaBarrel";
2534 title = labelname+
"DenominatorPFEtaBarrel;Calo #eta ";
2535 MonitorElement * DenominatorPFEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2536 DenominatorPFEtaBarrel->
getTH1();
2538 histoname = labelname+
"_DenominatorPFPhiBarrel";
2539 title = labelname+
"DenominatorPFPhiBarrel;PF #Phi";
2540 MonitorElement * DenominatorPFPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2541 DenominatorPFPhiBarrel->
getTH1();
2543 histoname = labelname+
"_DenominatorPFEtaEndcap";
2544 title = labelname+
"DenominatorPFEtaEndcap;PF #eta ";
2545 MonitorElement * DenominatorPFEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2546 DenominatorPFEtaEndcap->
getTH1();
2548 histoname = labelname+
"_DenominatorPFPhiEndcap";
2549 title = labelname+
"DenominatorPFPhiEndcap;Calo #Phi";
2550 MonitorElement * DenominatorPFPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2551 DenominatorPFPhiEndcap->
getTH1();
2553 histoname = labelname+
"_DenominatorPFEtaForward";
2554 title = labelname+
"DenominatorPFEtaForward;PF #eta ";
2555 MonitorElement * DenominatorPFEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2556 DenominatorPFEtaForward->
getTH1();
2558 histoname = labelname+
"_DenominatorPFPhiForward";
2559 title = labelname+
"DenominatorPFPhiForward;PF #Phi";
2560 MonitorElement * DenominatorPFPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2561 DenominatorPFPhiForward->
getTH1();
2563 histoname = labelname+
"_DenominatorPFEta_LowpTcut";
2564 title = labelname+
"DenominatorPFEta_LowpTcut;PF #eta ";
2565 MonitorElement * DenominatorPFEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2566 DenominatorPFEta_LowpTcut->
getTH1();
2568 histoname = labelname+
"_DenominatorPFPhi_LowpTcut";
2569 title = labelname+
"DenominatorPFPhi_LowpTcut;PF #Phi";
2570 MonitorElement * DenominatorPFPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2571 DenominatorPFPhi_LowpTcut->
getTH1();
2573 histoname = labelname+
"_DenominatorPFEtaPhi_LowpTcut";
2574 title = labelname+
"DenominatorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2575 MonitorElement * DenominatorPFEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2576 DenominatorPFEtaPhi_LowpTcut->
getTH1();
2578 histoname = labelname+
"_DenominatorPFEta_MedpTcut";
2579 title = labelname+
"DenominatorPFEta_MedpTcut;PF #eta ";
2580 MonitorElement * DenominatorPFEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2581 DenominatorPFEta_MedpTcut->
getTH1();
2583 histoname = labelname+
"_DenominatorPFPhi_MedpTcut";
2584 title = labelname+
"DenominatorPFPhi_MedpTcut;PF #Phi";
2585 MonitorElement * DenominatorPFPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2586 DenominatorPFPhi_MedpTcut->
getTH1();
2588 histoname = labelname+
"_DenominatorPFEtaPhi_MedpTcut";
2589 title = labelname+
"DenominatorPFEtaPhi_MedpTcut;PF #eta;Calo #Phi";
2590 MonitorElement * DenominatorPFEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2591 DenominatorPFEtaPhi_MedpTcut->
getTH1();
2593 histoname = labelname+
"_DenominatorPFEta_HighpTcut";
2594 title = labelname+
"DenominatorPFEta_HighpTcut;PF #eta ";
2595 MonitorElement * DenominatorPFEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2596 DenominatorPFEta_HighpTcut->
getTH1();
2598 histoname = labelname+
"_DenominatorPFPhi_HighpTcut";
2599 title = labelname+
"DenominatorPFPhi_HighpTcut;PF #Phi";
2600 MonitorElement * DenominatorPFPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2601 DenominatorPFPhi_HighpTcut->
getTH1();
2603 histoname = labelname+
"_DenominatorPFEtaPhi_HighpTcut";
2604 title = labelname+
"DenominatorPFEtaPhi_HighpTcut;PF #eta;Calo #Phi";
2605 MonitorElement * DenominatorPFEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2606 DenominatorPFEtaPhi_HighpTcut->
getTH1();
2608 histoname = labelname+
"_PFDeltaR";
2609 title = labelname+
"PFDeltaR;";
2613 histoname = labelname+
"_PFDeltaPhi";
2614 title = labelname+
"PFDeltaPhi;";
2618 v.setEffHistos(NumeratorPt,
2630 NumeratorEtaForward,
2631 NumeratorPhiForward,
2632 NumeratorEta_LowpTcut,
2633 NumeratorPhi_LowpTcut,
2634 NumeratorEtaPhi_LowpTcut,
2635 NumeratorEta_MedpTcut,
2636 NumeratorPhi_MedpTcut,
2637 NumeratorEtaPhi_MedpTcut,
2638 NumeratorEta_HighpTcut,
2639 NumeratorPhi_HighpTcut,
2640 NumeratorEtaPhi_HighpTcut,
2643 DenominatorPtBarrel,
2644 DenominatorPtEndcap,
2645 DenominatorPtForward,
2650 DenominatorEtaBarrel,
2651 DenominatorPhiBarrel,
2652 DenominatorEtaEndcap,
2653 DenominatorPhiEndcap,
2654 DenominatorEtaForward,
2655 DenominatorPhiForward,
2656 DenominatorEta_LowpTcut,
2657 DenominatorPhi_LowpTcut,
2658 DenominatorEtaPhi_LowpTcut,
2659 DenominatorEta_MedpTcut,
2660 DenominatorPhi_MedpTcut,
2661 DenominatorEtaPhi_MedpTcut,
2662 DenominatorEta_HighpTcut,
2663 DenominatorPhi_HighpTcut,
2664 DenominatorEtaPhi_HighpTcut,
2670 NumeratorPFPtBarrel,
2671 NumeratorPFPtEndcap,
2672 NumeratorPFPtForward,
2676 NumeratorPFEtaBarrel,
2677 NumeratorPFPhiBarrel,
2678 NumeratorPFEtaEndcap,
2679 NumeratorPFPhiEndcap,
2680 NumeratorPFEtaForward,
2681 NumeratorPFPhiForward,
2682 NumeratorPFEta_LowpTcut,
2683 NumeratorPFPhi_LowpTcut,
2684 NumeratorPFEtaPhi_LowpTcut,
2685 NumeratorPFEta_MedpTcut,
2686 NumeratorPFPhi_MedpTcut,
2687 NumeratorPFEtaPhi_MedpTcut,
2688 NumeratorPFEta_HighpTcut,
2689 NumeratorPFPhi_HighpTcut,
2690 NumeratorPFEtaPhi_HighpTcut,
2693 DenominatorPFPtBarrel,
2694 DenominatorPFPtEndcap,
2695 DenominatorPFPtForward,
2698 DenominatorPFEtaPhi,
2699 DenominatorPFEtaBarrel,
2700 DenominatorPFPhiBarrel,
2701 DenominatorPFEtaEndcap,
2702 DenominatorPFPhiEndcap,
2703 DenominatorPFEtaForward,
2704 DenominatorPFPhiForward,
2705 DenominatorPFEta_LowpTcut,
2706 DenominatorPFPhi_LowpTcut,
2707 DenominatorPFEtaPhi_LowpTcut,
2708 DenominatorPFEta_MedpTcut,
2709 DenominatorPFPhi_MedpTcut,
2710 DenominatorPFEtaPhi_MedpTcut,
2711 DenominatorPFEta_HighpTcut,
2712 DenominatorPFPhi_HighpTcut,
2713 DenominatorPFEtaPhi_HighpTcut,
2722 histoname = labelname+
"_NumeratorAvrgPt";
2723 title = labelname+
"NumeratorAvrgPt;Calo Pt[GeV/c]";
2724 MonitorElement * NumeratorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2727 histoname = labelname+
"_NumeratorAvrgEta";
2728 title = labelname+
"NumeratorAvrgEta;Calo #eta";
2729 MonitorElement * NumeratorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2732 histoname = labelname+
"_DenominatorAvrgPt";
2733 title = labelname+
"DenominatorAvrgPt;Calo Pt[GeV/c] ";
2734 MonitorElement * DenominatorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2737 histoname = labelname+
"_DenominatorAvrgEta";
2738 title = labelname+
"DenominatorAvrgEta;Calo #eta";
2739 MonitorElement * DenominatorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2740 DenominatorEta->
getTH1();
2742 histoname = labelname+
"_DeltaR";
2743 title = labelname+
"DeltaR;";
2747 histoname = labelname+
"_DeltaPhi";
2748 title = labelname+
"DeltaPhi;";
2753 histoname = labelname+
"_NumeratorAvrgPFPt";
2754 title = labelname+
"NumeratorAvrgPFPt;PF Pt[GeV/c]";
2755 MonitorElement * NumeratorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2758 histoname = labelname+
"_NumeratorAvrgPFEta";
2759 title = labelname+
"NumeratorAvrgPFEta;PF #eta";
2760 MonitorElement * NumeratorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2761 NumeratorPFEta->
getTH1();
2763 histoname = labelname+
"_DenominatorAvrgPFPt";
2764 title = labelname+
"DenominatorAvrgPFPt;PF Pt[GeV/c] ";
2765 MonitorElement * DenominatorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2766 DenominatorPFPt->
getTH1();
2768 histoname = labelname+
"_DenominatorAvrgPFEta";
2769 title = labelname+
"DenominatorAvrgPFEta;PF #eta";
2770 MonitorElement * DenominatorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2771 DenominatorPFEta->
getTH1();
2773 histoname = labelname+
"_PFDeltaR";
2774 title = labelname+
"PFDeltaR;";
2778 histoname = labelname+
"_PFDeltaPhi";
2779 title = labelname+
"PFDeltaPhi;";
2783 v.setEffHistos( 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, dummy, dummy, dummy, dummy, dummy, dummy,
2792 dummy, dummy, dummy, dummy
2798 histoname = labelname+
"_NumeratorPt";
2799 if(
v.getPath().find(
"HLT_PFMET")==std::string::npos)
2800 title = labelname+
"NumeratorPt; CaloMET[GeV/c]";
2802 title = labelname+
"NumeratorPt; PFMET[GeV/c]";
2803 MonitorElement * NumeratorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2806 histoname = labelname+
"_NumeratorPhi";
2807 title = labelname+
"NumeratorPhi; #Phi";
2808 MonitorElement * NumeratorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2811 histoname = labelname+
"_DenominatorPt";
2812 if(
v.getPath().find(
"HLT_PFMET")==std::string::npos)
2813 title = labelname+
"DenominatorPt; CaloMET[GeV/c]";
2815 title = labelname+
"DenominatorPt; PFMET[GeV/c]";
2816 MonitorElement * DenominatorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2819 histoname = labelname+
"_DenominatorPhi";
2820 title = labelname+
"DenominatorPhi; #Phi";
2821 MonitorElement * DenominatorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2822 DenominatorPhi->
getTH1();
2824 v.setEffHistos( NumeratorPt, dummy, dummy, dummy, dummy, NumeratorPhi, dummy, dummy, dummy, dummy,
2825 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2826 dummy, dummy, DenominatorPt, dummy, dummy, dummy, dummy, DenominatorPhi, 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, dummy, dummy, dummy, dummy, dummy, dummy,
2833 dummy, dummy, dummy, dummy
2848 double PtMax_ = 1000.;
2849 double EtaMin_ = -5.;
2850 double EtaMax_ = 5.;
2851 double PhiMin_ = -3.14159;
2852 double PhiMax_ = 3.14159;
2867 histoname = labelname+
"_TriggerSummary";
2868 title = labelname+
"Summary of trigger levels";
2871 std::vector<std::string>
trigger;
2872 trigger.emplace_back(
"Nevt");
2873 trigger.emplace_back(
"L1 failed");
2874 trigger.emplace_back(
"L1 & HLT failed");
2875 trigger.emplace_back(
"L1 failed but not HLT");
2876 trigger.emplace_back(
"L1 passed");
2877 trigger.emplace_back(
"L1 & HLT passed");
2878 trigger.emplace_back(
"L1 passed but not HLT");
2880 for(
unsigned int i =0;
i < trigger.size();
i++)
2883 if((
v.getTriggerType() ==
"SingleJet_Trigger")){
2884 histoname = labelname+
"_JetPt";
2885 title = labelname+
"Leading jet pT;Pt[GeV/c]";
2889 histoname = labelname+
"_JetEtaVsPt";
2890 title = labelname+
"Leading jet #eta vs pT;#eta;Pt[GeV/c]";
2891 MonitorElement * JetEtaVsPt = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Ptbins_,PtMin_,PtMax_);
2894 histoname = labelname+
"_JetPhiVsPt";
2895 title = labelname+
"Leading jet #Phi vs pT;#Phi;Pt[GeV/c]";
2896 MonitorElement * JetPhiVsPt = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Ptbins_,PtMin_,PtMax_);
2899 v.setDgnsHistos( TriggerSummary, dummy, JetPt, JetEtaVsPt, JetPhiVsPt, dummy, dummy, dummy, dummy, dummy, dummy);
2902 if((
v.getTriggerType() ==
"DiJet_Trigger")){
2903 histoname = labelname+
"_JetSize";
2904 title = labelname+
"Jet Size;multiplicity";
2908 histoname = labelname+
"_AvergPt";
2909 title = labelname+
"Average Pt;Pt[GeV/c]";
2913 histoname = labelname+
"_AvergEta";
2914 title = labelname+
"Average Eta;#eta";
2915 MonitorElement * Eta12 = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2918 histoname = labelname+
"_PhiDifference";
2919 title = labelname+
"#Delta#Phi;#Delta#Phi";
2920 MonitorElement * Phi12 = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2923 histoname = labelname+
"_Pt3Jet";
2924 title = labelname+
"Pt of 3rd Jet;Pt[GeV/c]";
2928 histoname = labelname+
"_Pt12VsPt3Jet";
2929 title = labelname+
"Pt of 3rd Jet vs Average Pt of leading jets;Avergage Pt[GeV/c]; Pt of 3rd Jet [GeV/c]";
2930 MonitorElement * Pt12Pt3 = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2933 histoname = labelname+
"_Pt12VsPhi12";
2934 title = labelname+
"Average Pt of leading jets vs #Delta#Phi between leading jets;Avergage Pt[GeV/c]; #Delta#Phi";
2935 MonitorElement * Pt12Phi12 = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Phibins_,PhiMin_,PhiMax_);
2938 v.setDgnsHistos( TriggerSummary, JetSize, dummy, dummy, dummy, Pt12, Eta12, Phi12, Pt3, Pt12Pt3, Pt12Phi12);
2941 if((
v.getTriggerType() ==
"MET_Trigger")){
2942 histoname = labelname+
"_MET";
2943 title = labelname+
"MET;Pt[GeV/c]";
2947 v.setDgnsHistos(TriggerSummary, dummy, MET, dummy, dummy, dummy, dummy, dummy,dummy,dummy,dummy);
2950 if((
v.getTriggerType() ==
"TET_Trigger")){
2951 histoname = labelname+
"_TET";
2952 title = labelname+
"TET;Pt[GeV/c]";
2956 v.setDgnsHistos(TriggerSummary, dummy, TET, dummy, dummy, dummy, dummy, dummy,dummy,dummy,dummy);
2974 for(
auto & numpathmodule : numpathmodules) {
2977 l1pathname = numpathmodule;
2987 if (fabs(eta)<=1.3) output=
true;
2994 if (fabs(eta)<=3.0 && fabs(eta)>1.3) output=
true;
3001 if (fabs(eta)>3.0) output=
true;
3031 double binVal = -100;
3032 for(
int ibin=1; ibin<nbins+1; ibin++)
3034 const char * binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
3035 if(binLabel[0]==
'\0')
continue;
3038 if(trigName!=binLabel)
continue;
3040 if(trigName==binLabel){
3055 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index "<< index <<
" of that name ";
3058 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
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)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
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
double deltaR(double eta1, double eta2, double phi1, double phi2)
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 &)
void setCurrentFolder(const std::string &fullpath)
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_