39 using namespace trigger;
44 LogDebug(
"JetMETHLTOfflineSource") <<
"constructor....";
93 std::vector<edm::ParameterSet>
paths = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"pathPairs");
94 for(std::vector<edm::ParameterSet>::iterator pathconf = paths.begin() ; pathconf != paths.end(); pathconf++) {
97 pathconf->getParameter<
std::string>(
"denompathname")
120 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"TriggerResults not found, "
134 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"TriggerEvent not found, "
162 for(
int i=0;
i<2;
i++){
185 CaloJetCollection::const_iterator calojet_ =
calojet.begin();
186 for(; calojet_ !=
calojet.end(); ++calojet_){
187 double scale = calocorrector->correction(*calojet_);
227 PFJetCollection::const_iterator pfjet_ =
pfjet.begin();
228 for(; pfjet_ !=
pfjet.end(); ++pfjet_){
229 double scale = pfcorrector->correction(*pfjet_);
232 if(scale*pfjet_->pt()>
PFJetPt[0]){
243 PFJetPt[0] = scale*pfjet_->pt();
244 PFJetPx[0] = scale*pfjet_->px();
245 PFJetPy[0] = scale*pfjet_->py();
248 PFJetNHEF[0] = pfjet_->neutralHadronEnergyFraction();
249 PFJetCHEF[0] = pfjet_->chargedHadronEnergyFraction();
250 PFJetNEMF[0] = pfjet_->neutralEmEnergyFraction();
251 PFJetCEMF[0] = pfjet_->chargedEmEnergyFraction();
253 else if(scale*pfjet_->pt()<
PFJetPt[0] && scale*pfjet_->pt()>
PFJetPt[1] ){
254 PFJetPt[1] = scale*pfjet_->pt();
255 PFJetPx[1] = scale*pfjet_->px();
256 PFJetPy[1] = scale*pfjet_->py();
259 PFJetNHEF[1] = pfjet_->neutralHadronEnergyFraction();
260 PFJetCHEF[1] = pfjet_->chargedHadronEnergyFraction();
261 PFJetNEMF[1] = pfjet_->neutralEmEnergyFraction();
262 PFJetCEMF[1] = pfjet_->chargedEmEnergyFraction();
268 for(
int i = 0;
i<2;
i++){
272 for(
int i = 0;
i<2;
i++){
293 for (
unsigned int j=0;
j!=nPath; ++
j) {
298 if(
verbose_)
cout<<
"fillMEforMonTriggerSummary: Muon Match"<<endl;
309 for (
unsigned int j=0;
j!=nPath; ++
j) {
314 if(
verbose_)
cout<<
"fillMEforMonTriggerSummary: MinBias Match"<<endl;
324 bool trigFirst=
false;
327 if(!trigFirst)
continue;
340 for(PathInfoCollection::iterator
w = v+1;
w!=
hltPathsAll_.end(); ++
w ){
341 bool trigSec =
false;
344 if(trigSec && trigFirst){
349 if(!trigSec && trigFirst){
361 for (VertexCollection::const_iterator itv=Vtx->begin(); itv!=Vtx->end(); itv++){
382 v->getMEhisto_TriggerSummary()->Fill(0.);
384 const int l1Index =
triggerObj_->filterIndex(l1Tag);
385 bool l1found =
false;
386 if(l1Index < triggerObj_->sizeFilters() ) l1found =
true;
387 if(!l1found)
v->getMEhisto_TriggerSummary()->Fill(1.);
388 if(!l1found && !(
triggerResults_->accept(index)))
v->getMEhisto_TriggerSummary()->Fill(2.);
389 if(!l1found && (
triggerResults_->accept(index)))
v->getMEhisto_TriggerSummary()->Fill(3.);
390 if(l1found)
v->getMEhisto_TriggerSummary()->Fill(4.);
391 if(l1found && (
triggerResults_->accept(index)))
v->getMEhisto_TriggerSummary()->Fill(5.);
392 if(l1found && !(
triggerResults_->accept(index)))
v->getMEhisto_TriggerSummary()->Fill(6.);
396 CaloJetCollection::const_iterator
jet =
calojet.begin();
397 v->getMEhisto_JetPt()->Fill(jet->pt());
398 v->getMEhisto_EtavsPt()->Fill(jet->eta(),jet->pt());
399 v->getMEhisto_PhivsPt()->Fill(jet->phi(),jet->pt());
404 v->getMEhisto_JetSize()->Fill(
calojet.size());
406 CaloJetCollection::const_iterator
jet =
calojet.begin();
407 CaloJetCollection::const_iterator jet2=
calojet.begin(); jet2++;
410 CaloJetCollection::const_iterator jet3 = jet2++;
413 v->getMEhisto_Pt12()->Fill((jet->pt()+jet2->pt())/2.);
414 v->getMEhisto_Eta12()->Fill((jet->eta()+jet2->eta())/2.);
415 v->getMEhisto_Phi12()->Fill(
deltaPhi(jet->phi(),jet2->phi()));
416 v->getMEhisto_Pt3()->Fill(jet3pt);
417 v->getMEhisto_Pt12Pt3()->Fill((jet->pt()+jet2->pt())/2., jet3pt);
418 v->getMEhisto_Pt12Phi12()->Fill((jet->pt()+jet2->pt())/2.,
deltaPhi(jet->phi(),jet2->phi()));
422 if(((
v->getTriggerType().compare(
"MET_Trigger") == 0)|| (
v->getTriggerType().compare(
"TET_Trigger") == 0)) &&
calometColl_.
isValid() ){
425 v->getMEhisto_JetPt()->Fill(met.
pt());
444 std::vector<double>jetPtVec;
445 std::vector<double>jetPhiVec;
446 std::vector<double>jetEtaVec;
447 std::vector<double>jetPxVec;
448 std::vector<double>jetPyVec;
449 std::vector<double>hltPtVec;
450 std::vector<double>hltPhiVec;
451 std::vector<double>hltEtaVec;
452 std::vector<double>hltPxVec;
453 std::vector<double>hltPyVec;
460 const int l1Index =
triggerObj_->filterIndex(l1Tag);
462 const int hltIndex =
triggerObj_->filterIndex(hltTag);
464 bool hltTrigBool =
false;
465 bool diJetFire =
false;
469 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index "<< l1Index <<
" of that name "<<l1Tag;
476 && v->getTriggerType().compare(
"SingleJet_Trigger") == 0)
477 v->getMEhisto_N_L1()->Fill(kl1.size());
479 trigger::Keys::const_iterator ki = kl1.begin();
480 for(; ki != kl1.end(); ++ki){
481 double l1TrigEta = -100;
482 double l1TrigPhi = -100;
485 l1TrigEta = toc[*ki].eta();
486 l1TrigPhi = toc[*ki].phi();
487 if(v->getTriggerType().compare(
"SingleJet_Trigger") == 0){
488 v->getMEhisto_Pt_L1()->Fill(toc[*ki].
pt());
489 if (
isBarrel(toc[*ki].
eta())) v->getMEhisto_PtBarrel_L1()->Fill(toc[*ki].
pt());
490 if (
isEndCap(toc[*ki].
eta())) v->getMEhisto_PtEndcap_L1()->Fill(toc[*ki].
pt());
491 if (
isForward(toc[*ki].
eta())) v->getMEhisto_PtForward_L1()->Fill(toc[*ki].
pt());
492 v->getMEhisto_Eta_L1()->Fill(toc[*ki].
eta());
493 v->getMEhisto_Phi_L1()->Fill(toc[*ki].
phi());
494 v->getMEhisto_EtaPhi_L1()->Fill(toc[*ki].
eta(),toc[*ki].
phi());
499 v->getMEhisto_Pt_L1()->Fill(toc[*ki].
pt());
500 v->getMEhisto_Phi_L1()->Fill(toc[*ki].
phi());
505 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
511 && v->getTriggerType().compare(
"SingleJet_Trigger") == 0)
512 v->getMEhisto_N_HLT()->Fill(khlt.size());
514 trigger::Keys::const_iterator kj = khlt.begin();
516 for(;kj != khlt.end(); ++kj){
518 double hltTrigEta = -100;
519 double hltTrigPhi = -100;
520 hltTrigEta = toc[*kj].eta();
521 hltTrigPhi = toc[*kj].phi();
522 if((
deltaR(hltTrigEta, hltTrigPhi, l1TrigEta, l1TrigPhi)) < 0.4
523 && (v->getTriggerType().compare(
"DiJet_Trigger") == 0))
529 for(;kj != khlt.end(); ++kj){
530 double hltTrigEta = -100.;
531 double hltTrigPhi = -100.;
535 v->getMEhisto_Pt_HLT()->Fill(toc[*kj].
pt());
536 v->getMEhisto_Phi_HLT()->Fill(toc[*kj].
phi());
537 v->getMEhisto_PtCorrelation_L1HLT()->Fill(toc[*ki].
pt(),toc[*kj].
pt());
538 v->getMEhisto_PhiCorrelation_L1HLT()->Fill(toc[*ki].
phi(),toc[*kj].
phi());
539 v->getMEhisto_PtResolution_L1HLT()->Fill((toc[*ki].
pt()-toc[*kj].
pt())/(toc[*ki].
pt()));
540 v->getMEhisto_PhiResolution_L1HLT()->Fill(toc[*ki].
phi()-toc[*kj].
phi());
544 hltTrigEta = toc[*kj].eta();
545 hltTrigPhi = toc[*kj].phi();
546 if((
deltaR(hltTrigEta, hltTrigPhi, l1TrigEta, l1TrigPhi)) < 0.4){
547 if(v->getTriggerType().compare(
"SingleJet_Trigger") == 0){
548 v->getMEhisto_PtCorrelation_L1HLT()->Fill(toc[*ki].
pt(),toc[*kj].
pt());
549 v->getMEhisto_EtaCorrelation_L1HLT()->Fill(toc[*ki].
eta(),toc[*kj].
eta());
550 v->getMEhisto_PhiCorrelation_L1HLT()->Fill(toc[*ki].
phi(),toc[*kj].
phi());
551 v->getMEhisto_PtResolution_L1HLT()->Fill((toc[*ki].
pt()-toc[*kj].
pt())/(toc[*ki].
pt()));
552 v->getMEhisto_EtaResolution_L1HLT()->Fill(toc[*ki].
eta()-toc[*kj].
eta());
553 v->getMEhisto_PhiResolution_L1HLT()->Fill(toc[*ki].
phi()-toc[*kj].
phi());
556 if(((
deltaR(hltTrigEta, hltTrigPhi, l1TrigEta, l1TrigPhi) < 0.4 )
557 || ((v->getTriggerType().compare(
"DiJet_Trigger") == 0) && hltTrigBool)) && !diJetFire){
558 if(v->getTriggerType().compare(
"SingleJet_Trigger") == 0){
559 v->getMEhisto_Pt_HLT()->Fill(toc[*kj].
pt());
560 if (
isBarrel(toc[*kj].
eta())) v->getMEhisto_PtBarrel_HLT()->Fill(toc[*kj].
pt());
561 if (
isEndCap(toc[*kj].
eta())) v->getMEhisto_PtEndcap_HLT()->Fill(toc[*kj].
pt());
562 if (
isForward(toc[*kj].
eta())) v->getMEhisto_PtForward_HLT()->Fill(toc[*kj].
pt());
563 v->getMEhisto_Eta_HLT()->Fill(toc[*kj].
eta());
564 v->getMEhisto_Phi_HLT()->Fill(toc[*kj].
phi());
565 v->getMEhisto_EtaPhi_HLT()->Fill(toc[*kj].
eta(),toc[*kj].
phi());
571 && (v->getPath().compare(
"PFJet") == 0)){
574 for(
int iCalo=0; iCalo<2; iCalo++){
577 if(v->getTriggerType().compare(
"SingleJet_Trigger") == 0){
578 v->getMEhisto_Pt()->Fill(
CaloJetPt[iCalo]);
587 v->getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
pt(),
CaloJetPt[iCalo]);
588 v->getMEhisto_EtaCorrelation_HLTRecObj()->Fill(toc[*kj].
eta(),
CaloJetEta[iCalo]);
589 v->getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),
CaloJetPhi[iCalo]);
591 v->getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
pt()-
CaloJetPt[iCalo])/(toc[*kj].
pt()));
592 v->getMEhisto_EtaResolution_HLTRecObj()->Fill(toc[*kj].
eta()-
CaloJetEta[iCalo]);
593 v->getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi()-
CaloJetPhi[iCalo]);
597 if((v->getTriggerType().compare(
"DiJet_Trigger") == 0)){
604 hltPhiVec.push_back(toc[*kj].
phi());
605 hltPtVec.push_back(toc[*kj].
pt());
606 hltEtaVec.push_back(toc[*kj].
eta());
607 hltPxVec.push_back(toc[*kj].px());
608 hltPyVec.push_back(toc[*kj].py());
617 && (v->getPath().compare(
"PFJet") != 0)){
620 for(
int iPF=0; iPF<2; iPF++){
623 if(v->getTriggerType().compare(
"SingleJet_Trigger") == 0){
624 v->getMEhisto_Pt()->Fill(
PFJetPt[iPF]);
629 v->getMEhisto_Eta()->Fill(
PFJetEta[iPF]);
630 v->getMEhisto_Phi()->Fill(
PFJetPhi[iPF]);
633 v->getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].
pt(),
PFJetPt[iPF]);
634 v->getMEhisto_EtaCorrelation_HLTRecObj()->Fill(toc[*kj].
eta(),
PFJetEta[iPF]);
635 v->getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),
PFJetPhi[iPF]);
637 v->getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].
pt()-
PFJetPt[iPF])/(toc[*kj].
pt()));
638 v->getMEhisto_EtaResolution_HLTRecObj()->Fill(toc[*kj].
eta()-
PFJetEta[iPF]);
639 v->getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi()-
PFJetPhi[iPF]);
643 if((v->getTriggerType().compare(
"DiJet_Trigger") == 0)){
645 jetPtVec.push_back(
PFJetPt[iPF]);
647 jetPxVec.push_back(
PFJetPx[iPF]);
648 jetPyVec.push_back(
PFJetPy[iPF]);
650 hltPhiVec.push_back(toc[*kj].
phi());
651 hltPtVec.push_back(toc[*kj].
pt());
652 hltEtaVec.push_back(toc[*kj].
eta());
653 hltPxVec.push_back(toc[*kj].px());
654 hltPyVec.push_back(toc[*kj].py());
666 && (v->getPath().find(
"HLT_PFMET")==std::string::npos)){
670 v->getMEhisto_Pt()->Fill(met.
et());
671 v->getMEhisto_Phi()->Fill(met.
phi());
673 v->getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].et(),met.
et());
674 v->getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),met.
phi());
675 v->getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].et()-met.
et())/(toc[*kj].et()));
676 v->getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi()-met.
phi());
682 && (v->getPath().find(
"HLT_PFMET")!=std::string::npos)){
684 const PFMET pfmet = pfmetcol->front();
686 v->getMEhisto_Pt()->Fill(pfmet.
et());
687 v->getMEhisto_Phi()->Fill(pfmet.
phi());
689 v->getMEhisto_PtCorrelation_HLTRecObj()->Fill(toc[*kj].et(),pfmet.
et());
690 v->getMEhisto_PhiCorrelation_HLTRecObj()->Fill(toc[*kj].
phi(),pfmet.
phi());
691 v->getMEhisto_PtResolution_HLTRecObj()->Fill((toc[*kj].et()-pfmet.
et())/(toc[*kj].et()));
692 v->getMEhisto_PhiResolution_HLTRecObj()->Fill(toc[*kj].
phi()-pfmet.
phi());
695 if((v->getTriggerType().compare(
"DiJet_Trigger") == 0)) diJetFire =
true;
699 v->getMEhisto_N()->Fill(jetsize);
702 if((v->getTriggerType().compare(
"DiJet_Trigger") == 0) && jetPtVec.size() >1){
703 double AveJetPt = (jetPtVec[0] + jetPtVec[1])/2;
704 double AveJetEta = (jetEtaVec[0] + jetEtaVec[1])/2;
705 double JetDelPhi =
deltaPhi(jetPhiVec[0],jetPhiVec[1]);
706 double AveHLTPt = (hltPtVec[0] + hltPtVec[1])/2;
707 double AveHLTEta = (hltEtaVec[0] + hltEtaVec[1])/2;
708 double HLTDelPhi =
deltaPhi(hltPhiVec[0],hltPhiVec[1]);
709 v->getMEhisto_AveragePt_RecObj()->Fill(AveJetPt);
710 v->getMEhisto_AverageEta_RecObj()->Fill(AveJetEta);
711 v->getMEhisto_DeltaPhi_RecObj()->Fill(JetDelPhi);
713 v->getMEhisto_AveragePt_HLTObj()->Fill(AveHLTPt);
714 v->getMEhisto_AverageEta_HLTObj()->Fill(AveHLTEta);
715 v->getMEhisto_DeltaPhi_HLTObj()->Fill(HLTDelPhi);
729 bool denompassed =
false;
730 bool numpassed =
false;
745 if(denompassed==
false)
continue;
749 const int hltIndex =
triggerObj_->filterIndex(hltTag);
751 const int l1Index =
triggerObj_->filterIndex(l1Tag);
756 double trigLowpTcut = 0;
757 double trigMedpTcut = 0;
758 double trigHighpTcut = 0;
759 double trigLowpTcutFwd = 0;
760 double trigMedpTcutFwd = 0;
761 double trigHighpTcutFwd = 0;
764 double trigLowpTPFcut = 0;
765 double trigMedpTPFcut = 0;
766 double trigHighpTPFcut = 0;
767 double trigLowpTPFcutFwd = 0;
768 double trigMedpTPFcutFwd = 0;
769 double trigHighpTPFcutFwd = 0;
772 size_t jetstrfound =
v->getPath().find(
"Jet");
774 string tpath =
v->getPath();
778 if(jetstrfound != string::npos){
780 for(
int trig =
int(jetstrfound)+3; trig < int(jetstrfound)+7; trig++){
781 if(!isdigit(tpath[trig]))
break;
782 jetTrigVal+=tpath[trig];
784 char *cjetTrigVal = (
char*)jetTrigVal.c_str();
785 jetVal=atof(cjetTrigVal);
790 trigMedpTcut = jetVal + 5.;
791 trigHighpTcut = jetVal + 10.;
793 trigLowpTcutFwd = jetVal + 9.;
794 trigMedpTcutFwd = jetVal + 15.;
795 trigHighpTcutFwd = jetVal + 21.;
799 trigMedpTcut = jetVal + 2.;
800 trigHighpTcut = jetVal + 60.;
802 trigLowpTcutFwd = jetVal + 22.;
803 trigMedpTcutFwd = jetVal + 25.;
804 trigHighpTcutFwd = jetVal + 110.;
806 trigLowpTcut = jetVal;
812 trigMedpTPFcut = jetVal + 20.;
813 trigHighpTPFcut = jetVal + 40.;
815 trigLowpTPFcutFwd = jetVal + 60.;
816 trigMedpTPFcutFwd = jetVal + 80.;
817 trigHighpTPFcutFwd = jetVal + 100.;
821 trigMedpTPFcut = jetVal + 40.;
822 trigHighpTPFcut = jetVal + 140.;
824 trigLowpTPFcutFwd = jetVal + 110.;
825 trigMedpTPFcutFwd = jetVal + 130.;
826 trigHighpTPFcutFwd = jetVal + 190.;
828 trigLowpTPFcut = jetVal;
834 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: CaloJet -------------------" << std::endl;
839 bool jetIDbool =
false;
846 if((
v->getTriggerType().compare(
"SingleJet_Trigger") == 0) &&
calojet.size()){
848 if(
verbose_)
cout<<
"Passed CaloJet ID -------------------" << endl;
851 v->getMEhisto_DenominatorPt()->Fill(leadjpt);
852 if (
isBarrel(leadjeta))
v->getMEhisto_DenominatorPtBarrel()->Fill(leadjpt);
853 if (
isEndCap(leadjeta))
v->getMEhisto_DenominatorPtEndcap()->Fill(leadjpt);
854 if (
isForward(leadjeta))
v->getMEhisto_DenominatorPtForward()->Fill(leadjpt);
855 v->getMEhisto_DenominatorEta()->Fill(leadjeta);
856 v->getMEhisto_DenominatorPhi()->Fill(leadjphi);
857 v->getMEhisto_DenominatorEtaPhi()->Fill(leadjeta,leadjphi);
859 v->getMEhisto_DenominatorEtaBarrel()->Fill(leadjeta);
860 v->getMEhisto_DenominatorPhiBarrel()->Fill(leadjphi);
863 v->getMEhisto_DenominatorEtaEndcap()->Fill(leadjeta);
864 v->getMEhisto_DenominatorPhiEndcap()->Fill(leadjphi);
867 v->getMEhisto_DenominatorEtaForward()->Fill(leadjeta);
868 v->getMEhisto_DenominatorPhiForward()->Fill(leadjphi);
870 if((leadjpt > trigLowpTcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))){
871 v->getMEhisto_DenominatorEta_LowpTcut()->Fill(leadjeta);
872 v->getMEhisto_DenominatorPhi_LowpTcut()->Fill(leadjphi);
873 v->getMEhisto_DenominatorEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
875 if((leadjpt > trigMedpTcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))){
876 v->getMEhisto_DenominatorEta_MedpTcut()->Fill(leadjeta);
877 v->getMEhisto_DenominatorPhi_MedpTcut()->Fill(leadjphi);
878 v->getMEhisto_DenominatorEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
880 if((leadjpt > trigHighpTcut && !
isForward(leadjeta)) || (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))){
881 v->getMEhisto_DenominatorEta_HighpTcut()->Fill(leadjeta);
882 v->getMEhisto_DenominatorPhi_HighpTcut()->Fill(leadjphi);
883 v->getMEhisto_DenominatorEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
889 double dRmin = 99999.;
890 double dPhimin = 9999.;
891 if(
v->getPath().find(
"L1") != std::string::npos){
893 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
897 for(trigger::Keys::const_iterator ki = kl1.begin();ki != kl1.end(); ++ki){
898 double dR =
deltaR(toc[*ki].
eta(), toc[*ki].
phi(), leadjeta, leadjphi);
907 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
911 trigger::Keys::const_iterator kj = khlt.begin();
912 for(;kj != khlt.end(); ++kj){
924 v->getMEhisto_DeltaPhi()->Fill(dPhimin);
925 v->getMEhisto_DeltaR()->Fill(dRmin);
928 if(dRmin < 0.1 || (
v->getPath().find(
"L1") != std::string::npos && dRmin < 0.4)){
929 v->getMEhisto_NumeratorPt()->Fill(leadjpt);
930 if (
isBarrel(leadjeta))
v->getMEhisto_NumeratorPtBarrel()->Fill(leadjpt);
931 if (
isEndCap(leadjeta))
v->getMEhisto_NumeratorPtEndcap()->Fill(leadjpt);
932 if (
isForward(leadjeta))
v->getMEhisto_NumeratorPtForward()->Fill(leadjpt);
933 v->getMEhisto_NumeratorEta()->Fill(leadjeta);
934 v->getMEhisto_NumeratorPhi()->Fill(leadjphi);
935 v->getMEhisto_NumeratorEtaPhi()->Fill(leadjeta,leadjphi);
937 v->getMEhisto_NumeratorEtaBarrel()->Fill(leadjeta);
938 v->getMEhisto_NumeratorPhiBarrel()->Fill(leadjphi);
941 v->getMEhisto_NumeratorEtaEndcap()->Fill(leadjeta);
942 v->getMEhisto_NumeratorPhiEndcap()->Fill(leadjphi);
945 v->getMEhisto_NumeratorEtaForward()->Fill(leadjeta);
946 v->getMEhisto_NumeratorPhiForward()->Fill(leadjphi);
948 if((leadjpt > trigLowpTcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTcutFwd &&
isForward(leadjeta))){
949 v->getMEhisto_NumeratorEta_LowpTcut()->Fill(leadjeta);
950 v->getMEhisto_NumeratorPhi_LowpTcut()->Fill(leadjphi);
951 v->getMEhisto_NumeratorEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
953 if((leadjpt > trigMedpTcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTcutFwd &&
isForward(leadjeta))){
954 v->getMEhisto_NumeratorEta_MedpTcut()->Fill(leadjeta);
955 v->getMEhisto_NumeratorPhi_MedpTcut()->Fill(leadjphi);
956 v->getMEhisto_NumeratorEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
958 if((leadjpt > trigHighpTcut && !
isForward(leadjeta)) || (leadjpt > trigHighpTcutFwd &&
isForward(leadjeta))){
959 v->getMEhisto_NumeratorEta_HighpTcut()->Fill(leadjeta);
960 v->getMEhisto_NumeratorPhi_HighpTcut()->Fill(leadjphi);
961 v->getMEhisto_NumeratorEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
968 if(jetIDbool ==
true && (
v->getTriggerType().compare(
"DiJet_Trigger") == 0) &&
calojet.size()>1){
982 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: PFJet -------------------" << std::endl;
987 bool jetIDbool =
false;
1006 if((
v->getTriggerType().compare(
"SingleJet_Trigger") == 0) &&
pfjet.size()){
1009 _pfMHT =
sqrt(pfMHTx*pfMHTx + pfMHTy*pfMHTy);
1010 v->getMEhisto_DenominatorPFMHT()->Fill(
_pfMHT);
1016 if(
verbose_)
cout<<
"Passed PFJet ID -------------------" << endl;
1018 v->getMEhisto_DenominatorPFPt()->Fill(leadjpt);
1019 if (
isBarrel(leadjeta))
v->getMEhisto_DenominatorPFPtBarrel()->Fill(leadjpt);
1020 if (
isEndCap(leadjeta))
v->getMEhisto_DenominatorPFPtEndcap()->Fill(leadjpt);
1021 if (
isForward(leadjeta))
v->getMEhisto_DenominatorPFPtForward()->Fill(leadjpt);
1022 v->getMEhisto_DenominatorPFEta()->Fill(leadjeta);
1023 v->getMEhisto_DenominatorPFPhi()->Fill(leadjphi);
1024 v->getMEhisto_DenominatorPFEtaPhi()->Fill(leadjeta,leadjphi);
1026 v->getMEhisto_DenominatorPFEtaBarrel()->Fill(leadjeta);
1027 v->getMEhisto_DenominatorPFPhiBarrel()->Fill(leadjphi);
1030 v->getMEhisto_DenominatorPFEtaEndcap()->Fill(leadjeta);
1031 v->getMEhisto_DenominatorPFPhiEndcap()->Fill(leadjphi);
1034 v->getMEhisto_DenominatorPFEtaForward()->Fill(leadjeta);
1035 v->getMEhisto_DenominatorPFPhiForward()->Fill(leadjphi);
1037 if((leadjpt > trigLowpTPFcut && !
isForward(leadjeta)) || (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))){
1038 v->getMEhisto_DenominatorPFEta_LowpTcut()->Fill(leadjeta);
1039 v->getMEhisto_DenominatorPFPhi_LowpTcut()->Fill(leadjphi);
1040 v->getMEhisto_DenominatorPFEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
1042 if((leadjpt > trigMedpTPFcut && !
isForward(leadjeta)) || (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))){
1043 v->getMEhisto_DenominatorPFEta_MedpTcut()->Fill(leadjeta);
1044 v->getMEhisto_DenominatorPFPhi_MedpTcut()->Fill(leadjphi);
1045 v->getMEhisto_DenominatorPFEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
1047 if((leadjpt > trigHighpTPFcut && !
isForward(leadjeta)) || (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))){
1048 v->getMEhisto_DenominatorPFEta_HighpTcut()->Fill(leadjeta);
1049 v->getMEhisto_DenominatorPFPhi_HighpTcut()->Fill(leadjphi);
1050 v->getMEhisto_DenominatorPFEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
1055 double dRmin = 99999.;
1056 double dPhimin = 9999.;
1057 if(
v->getPath().find(
"L1") != std::string::npos){
1059 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1063 for(trigger::Keys::const_iterator ki = kl1.begin();ki != kl1.end(); ++ki){
1064 double dR =
deltaR(toc[*ki].
eta(), toc[*ki].
phi(), leadjeta, leadjphi);
1073 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1077 for(trigger::Keys::const_iterator kj = khlt.begin();kj != khlt.end(); ++kj){
1078 double dR =
deltaR(toc[*kj].
eta(), toc[*kj].
phi(), leadjeta, leadjphi);
1087 v->getMEhisto_PFDeltaPhi()->Fill(dPhimin);
1088 v->getMEhisto_PFDeltaR()->Fill(dRmin);
1091 if(dRmin < 0.1 || (
v->getPath().find(
"L1") != std::string::npos && dRmin < 0.4)){
1092 v->getMEhisto_NumeratorPFPt()->Fill(leadjpt);
1093 if (
isBarrel(leadjeta))
v->getMEhisto_NumeratorPFPtBarrel()->Fill(leadjpt);
1094 if (
isEndCap(leadjeta))
v->getMEhisto_NumeratorPFPtEndcap()->Fill(leadjpt);
1095 if (
isForward(leadjeta))
v->getMEhisto_NumeratorPFPtForward()->Fill(leadjpt);
1096 v->getMEhisto_NumeratorPFEta()->Fill(leadjeta);
1097 v->getMEhisto_NumeratorPFPhi()->Fill(leadjphi);
1098 v->getMEhisto_NumeratorPFEtaPhi()->Fill(leadjeta,leadjphi);
1100 v->getMEhisto_NumeratorPFEtaBarrel()->Fill(leadjeta);
1101 v->getMEhisto_NumeratorPFPhiBarrel()->Fill(leadjphi);
1104 v->getMEhisto_NumeratorPFEtaEndcap()->Fill(leadjeta);
1105 v->getMEhisto_NumeratorPFPhiEndcap()->Fill(leadjphi);
1108 v->getMEhisto_NumeratorPFEtaForward()->Fill(leadjeta);
1109 v->getMEhisto_NumeratorPFPhiForward()->Fill(leadjphi);
1111 if((leadjpt > trigLowpTPFcut && !
isForward(leadjeta))
1112 || (leadjpt > trigLowpTPFcutFwd &&
isForward(leadjeta))){
1113 v->getMEhisto_NumeratorPFEta_LowpTcut()->Fill(leadjeta);
1114 v->getMEhisto_NumeratorPFPhi_LowpTcut()->Fill(leadjphi);
1115 v->getMEhisto_NumeratorPFEtaPhi_LowpTcut()->Fill(leadjeta,leadjphi);
1117 if((leadjpt > trigMedpTPFcut && !
isForward(leadjeta))
1118 || (leadjpt > trigMedpTPFcutFwd &&
isForward(leadjeta))){
1119 v->getMEhisto_NumeratorPFEta_MedpTcut()->Fill(leadjeta);
1120 v->getMEhisto_NumeratorPFPhi_MedpTcut()->Fill(leadjphi);
1121 v->getMEhisto_NumeratorPFEtaPhi_MedpTcut()->Fill(leadjeta,leadjphi);
1123 if((leadjpt > trigHighpTPFcut && !
isForward(leadjeta))
1124 || (leadjpt > trigHighpTPFcutFwd &&
isForward(leadjeta))){
1125 v->getMEhisto_NumeratorPFEta_HighpTcut()->Fill(leadjeta);
1126 v->getMEhisto_NumeratorPFPhi_HighpTcut()->Fill(leadjphi);
1127 v->getMEhisto_NumeratorPFEtaPhi_HighpTcut()->Fill(leadjeta,leadjphi);
1133 if(jetIDbool ==
true && (
v->getTriggerType().compare(
"DiJet_Trigger") == 0) &&
pfjet.size()>1){
1153 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: CaloMET -------------------" << std::endl;
1156 && (
v->getPath().find(
"HLT_PFMET")==std::string::npos)){
1159 v->getMEhisto_DenominatorPt()->Fill(met.
et());
1160 v->getMEhisto_DenominatorPhi()->Fill(met.
phi());
1162 v->getMEhisto_NumeratorPt()->Fill(met.
et());
1163 v->getMEhisto_NumeratorPhi()->Fill(met.
phi());
1165 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1168 double dPhimin = 9999.;
1170 for(trigger::Keys::const_iterator kj = khlt.begin();kj != khlt.end(); ++kj){
1176 v->getMEhisto_DeltaPhi()->Fill(dPhimin);
1182 if(
verbose_)
std::cout <<
"fillMEforEffAllTrigger: PFMET -------------------" << std::endl;
1185 && (
v->getPath().find(
"HLT_PFMET")!=std::string::npos)){
1187 const PFMET met = pfmetcol->front();
1188 v->getMEhisto_DenominatorPt()->Fill(met.
et());
1189 v->getMEhisto_DenominatorPhi()->Fill(met.
phi());
1191 v->getMEhisto_NumeratorPt()->Fill(met.
et());
1192 v->getMEhisto_NumeratorPhi()->Fill(met.
phi());
1194 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index hlt"<< hltIndex <<
" of that name ";
1197 double dPhimin = 9999.;
1199 for(trigger::Keys::const_iterator kj = khlt.begin();kj != khlt.end(); ++kj){
1205 v->getMEhisto_DeltaPhi()->Fill(dPhimin);
1232 LogDebug(
"HLTJetMETDQMSource") <<
"HLTConfigProvider failed to initialize.";
1246 for (
unsigned int i=0;
i!=
n; ++
i) {
1247 bool denomFound =
false;
1248 bool numFound =
false;
1254 std::vector<std::string>::const_iterator controlPathname =
pathFilter_.begin();
1255 for(;controlPathname!=
pathFilter_.end(); ++controlPathname){
1256 if(pathname.find((*controlPathname)) != std::string::npos){
1261 if(checkPath==
false)
continue;
1264 std::vector<std::string>::const_iterator rejectPathname =
pathRejectKeyword_.begin();
1266 if(pathname.find((*rejectPathname)) != std::string::npos){
1271 if(checkPath==
false)
continue;
1278 unsigned int usedPrescale = 1;
1279 unsigned int objectType = 0;
1284 if(pathname.find(
"Jet") != std::string::npos
1285 && !(pathname.find(
"DoubleJet") != std::string::npos)
1286 && !(pathname.find(
"DiJet") != std::string::npos)
1287 && !(pathname.find(
"DiPFJet") != std::string::npos)
1288 && !(pathname.find(
"BTag") != std::string::npos)
1289 && !(pathname.find(
"Mu") != std::string::npos)
1290 && !(pathname.find(
"Fwd") != std::string::npos)){
1291 triggerType =
"SingleJet_Trigger";
1294 if(pathname.find(
"DiJet") != std::string::npos
1295 || pathname.find(
"DiPFJet") != std::string::npos
1296 || pathname.find(
"DoubleJet") != std::string::npos){
1297 triggerType =
"DiJet_Trigger";
1300 if(pathname.find(
"MET") != std::string::npos){
1301 triggerType =
"MET_Trigger";
1304 if(pathname.find(
"HT") != std::string::npos) {
1305 triggerType =
"TET_Trigger";
1311 && !(pathname.find(
"DiJet") != std::string::npos)
1312 && !(pathname.find(
"DiPFJet") != std::string::npos)
1313 && !(pathname.find(
"DoubleJet") != std::string::npos)){
1319 && ((pathname.find(
"DiJet") != std::string::npos)
1320 || (pathname.find(
"DiPFJet") != std::string::npos))){
1341 for (
unsigned int i=0;
i!=
n; ++
i){
1343 if(HLTname == pathname) numFound =
true;
1344 if(HLTname == dpathname) denomFound =
true;
1352 for(std::vector<std::string>::iterator numpathmodule = numpathmodules.begin(); numpathmodule!= numpathmodules.end(); ++numpathmodule ) {
1361 filtername = *numpathmodule;
1365 if(objectType != 0 && denomFound){
1367 for(std::vector<std::string>::iterator numpathmodule = numpathmodules.begin(); numpathmodule!= numpathmodules.end(); ++numpathmodule ) {
1376 Denomfiltername = *numpathmodule;
1380 if(objectType != 0 && numFound){
1382 cout<<
"=Pathname= "<<pathname
1383 <<
" | =Denompath= "<<dpathname
1384 <<
" | =Filtername= "<<filtername
1385 <<
" | =Denomfiltername= "<<Denomfiltername
1386 <<
" | =L1pathname= "<<l1pathname
1387 <<
" | =ObjectType= "<<objectType<<endl;
1388 if(!((pathname.find(
"HT") != std::string::npos) || (pathname.find(
"Quad") != std::string::npos))){
1391 filtername, Denomfiltername,
processname_, objectType, triggerType));
1394 filtername, Denomfiltername,
processname_, objectType, triggerType));
1398 if (
verbose_)
cout <<
"get names for efficicncy------------------"<< endl;
1403 unsigned int usedPrescale = 1;
1404 unsigned int objectType = 0;
1408 for (std::vector<std::pair<std::string, std::string> >::iterator custompathnamepair =
custompathnamepairs_.begin();
1411 std::string dpathname = custompathnamepair->second;
1412 bool numFound =
false;
1413 bool denomFound =
false;
1415 for (
unsigned int i=0;
i!=
n; ++
i) {
1417 if(HLTname.find(pathname)!=std::string::npos){numFound =
true; pathname = HLTname;}
1418 if(HLTname.find(dpathname)!=std::string::npos){denomFound =
true; dpathname = HLTname;}
1420 if(numFound && denomFound){
1421 if (pathname.find(
"Jet") != std::string::npos
1422 && !(pathname.find(
"DiJet") != std::string::npos)
1423 && !(pathname.find(
"DiPFJet") != std::string::npos)
1424 && !(pathname.find(
"DoubleJet") != std::string::npos)
1425 && !(pathname.find(
"BTag") != std::string::npos)
1426 && !(pathname.find(
"Mu") != std::string::npos)
1427 && !(pathname.find(
"Fwd") != std::string::npos)){
1428 triggerType =
"SingleJet_Trigger";
1431 if (pathname.find(
"DiJet") != std::string::npos
1432 || pathname.find(
"DiPFJet") != std::string::npos
1433 || pathname.find(
"DoubleJet") != std::string::npos ){
1434 triggerType =
"DiJet_Trigger";
1437 if (pathname.find(
"MET") != std::string::npos ){
1438 triggerType =
"MET_Trigger";
1441 if (pathname.find(
"TET") != std::string::npos ){
1442 triggerType =
"TET_Trigger";
1448 for(std::vector<std::string>::iterator numpathmodule = numpathmodules.begin(); numpathmodule!= numpathmodules.end(); ++numpathmodule ) {
1457 filtername = *numpathmodule;
1460 if(objectType != 0){
1462 for(std::vector<std::string>::iterator numpathmodule = numpathmodules.begin(); numpathmodule!= numpathmodules.end(); ++numpathmodule ) {
1471 Denomfiltername = *numpathmodule;
1475 <<
"==denompath=="<<dpathname
1476 <<
"==filtername=="<<filtername
1477 <<
"==denomfiltername=="<<Denomfiltername
1478 <<
"==l1pathname=="<<l1pathname
1479 <<
"==objectType=="<<objectType<<endl;
1481 filtername, Denomfiltername,
processname_, objectType, triggerType));
1487 if(
verbose_)
cout<<
"== end hltPathsEff_.push_back ======" << endl;
1508 double TrigMin_ = -0.5;
1513 rate_All = iBooker.
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1515 histonm =
"JetMET_TriggerRate_Correlation";
1516 histot =
"JetMET TriggerRate Correlation Summary;y&&!x;x&&y";
1517 correlation_All = iBooker.
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1519 histonm =
"JetMET_NVertices";
1520 histot =
"No. of vertices";
1523 histonm =
"JetMET_PVZ";
1524 histot =
"Primary Vertex Z pos";
1525 PVZ = iBooker.
book1D(histonm.c_str(),histot.c_str(),100,-50.,50.);
1528 histonm=
"JetMET_TriggerRate_WrtMuTrigger";
1529 histot=
"JetMET TriggerRate Summary Wrt Muon Trigger ";
1530 rate_AllWrtMu = iBooker.
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1532 histonm=
"JetMET_TriggerRate_Correlation_WrtMuTrigger";
1533 histot=
"JetMET TriggerRate Correlation Summary Wrt Muon Trigger;y&&!x;x&&y";
1534 correlation_AllWrtMu = iBooker.
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1536 histonm=
"JetMET_TriggerRate_WrtMBTrigger";
1537 histot=
"JetMET TriggerRate Summary Wrt MB Trigger";
1538 rate_AllWrtMB = iBooker.
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1540 histonm=
"JetMET_TriggerRate_Correlation_WrtMBTrigger";
1541 histot=
"JetMET TriggerRate Correlation Wrt MB Trigger;y&&!x;x&&y";
1542 correlation_AllWrtMB = iBooker.
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1550 labelnm =
v->getPath();
1552 for(
int ibin=1; ibin<nbins+1; ibin++){
1553 const char * binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
1555 if(binLabel_str.compare(labelnm)==0)
break;
1556 if(binLabel[0]==
'\0'){
1577 double Nmin_ = -0.5;
1583 double PtMax_ = 1000.;
1587 double EtaMin_ = -5.;
1588 double EtaMax_ = 5.;
1591 double PhiMin_ = -3.5;
1592 double PhiMax_ = 3.5;
1595 double ResMin_ = -1.5;
1596 double ResMax_ = 1.5;
1613 if(
v->getObjectType() ==
trigger::TriggerJet &&
v->getTriggerType().compare(
"SingleJet_Trigger") == 0){
1615 histoname = labelname+
"_recObjN";
1616 title = labelname+
"_recObjN;Reco multiplicity()"+trigPath;
1620 histoname = labelname+
"_recObjPt";
1621 title = labelname+
"_recObjPt; Reco Pt[GeV/c]"+trigPath;
1625 histoname = labelname+
"_recObjPtBarrel";
1626 title = labelname+
"_recObjPtBarrel;Reco Pt[GeV/c]"+trigPath;
1627 MonitorElement * PtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1630 histoname = labelname+
"_recObjPtEndcap";
1631 title = labelname+
"_recObjPtEndcap;Reco Pt[GeV/c]"+trigPath;
1632 MonitorElement * PtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1635 histoname = labelname+
"_recObjPtForward";
1636 title = labelname+
"_recObjPtForward;Reco Pt[GeV/c]"+trigPath;
1637 MonitorElement * PtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1640 histoname = labelname+
"_recObjEta";
1641 title = labelname+
"_recObjEta;Reco #eta"+trigPath;
1645 histoname = labelname+
"_recObjPhi";
1646 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
1650 histoname = labelname+
"_recObjEtaPhi";
1651 title = labelname+
"_recObjEtaPhi;Reco #eta;Reco #Phi"+trigPath;
1652 MonitorElement * EtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1655 histoname = labelname+
"_l1ObjPt";
1656 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
1657 MonitorElement * Pt_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1660 histoname = labelname+
"_l1ObjEta";
1661 title = labelname+
"_l1ObjEta;L1 #eta"+trigPath;
1662 MonitorElement * Eta_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1665 histoname = labelname+
"_l1ObjPhi";
1666 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
1667 MonitorElement * Phi_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1670 histoname = labelname+
"_l1ObjEtaPhi";
1671 title = labelname+
"_l1ObjEtaPhi;L1 #eta;L1 #Phi"+trigPath;
1672 MonitorElement * EtaPhi_L1 = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1675 histoname = labelname+
"_l1ObjN";
1676 title = labelname+
"_l1ObjN;L1 multiplicity"+trigPath;
1680 histoname = labelname+
"_l1ObjPtBarrel";
1681 title = labelname+
"_l1ObjPtBarrel;L1 Pt[GeV/c]"+trigPath;
1682 MonitorElement * PtBarrel_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1685 histoname = labelname+
"_l1ObjPtEndcap";
1686 title = labelname+
"_l1ObjPtEndcap;L1 Pt[GeV/c]"+trigPath;
1687 MonitorElement * PtEndcap_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1690 histoname = labelname+
"_l1ObjPtForward";
1691 title = labelname+
"_l1ObjPtForward;L1 Pt[GeV/c]"+trigPath;
1692 MonitorElement * PtForward_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1695 histoname = labelname+
"_hltObjN";
1696 title = labelname+
"_hltObjN;HLT multiplicity"+trigPath;
1700 histoname = labelname+
"_hltObjPtBarrel";
1701 title = labelname+
"_hltObjPtBarrel;HLT Pt[GeV/c]"+trigPath;
1702 MonitorElement * PtBarrel_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1705 histoname = labelname+
"_hltObjPtEndcap";
1706 title = labelname+
"_hltObjPtEndcap;HLT Pt[GeV/c]"+trigPath;
1707 MonitorElement * PtEndcap_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1710 histoname = labelname+
"_hltObjPtForward";
1711 title = labelname+
"_hltObjPtForward;HLT Pt[GeV/c]"+trigPath;
1712 MonitorElement * PtForward_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1715 histoname = labelname+
"_hltObjPt";
1716 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
1717 MonitorElement * Pt_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1720 histoname = labelname+
"_hltObjEta";
1721 title = labelname+
"_hltObjEta;HLT #eta"+trigPath;
1722 MonitorElement * Eta_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1725 histoname = labelname+
"_hltObjPhi";
1726 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
1727 MonitorElement * Phi_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1730 histoname = labelname+
"_hltObjEtaPhi";
1731 title = labelname+
"_hltObjEtaPhi;HLT #eta;HLT #Phi"+trigPath;
1732 MonitorElement * EtaPhi_HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1735 histoname = labelname+
"_l1HLTPtResolution";
1736 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
1737 MonitorElement * PtResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1738 PtResolution_L1HLT->
getTH1();
1740 histoname = labelname+
"_l1HLTEtaResolution";
1741 title = labelname+
"_l1HLTEtaResolution;#eta(L1)-#eta(HLT)"+trigPath;
1742 MonitorElement * EtaResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1743 EtaResolution_L1HLT->
getTH1();
1745 histoname = labelname+
"_l1HLTPhiResolution";
1746 title = labelname+
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)"+trigPath;
1747 MonitorElement * PhiResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1748 PhiResolution_L1HLT->
getTH1();
1750 histoname = labelname+
"_l1HLTPtCorrelation";
1751 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
1752 MonitorElement * PtCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1753 PtCorrelation_L1HLT->
getTH1();
1755 histoname = labelname+
"_l1HLTEtaCorrelation";
1756 title = labelname+
"_l1HLTEtaCorrelation;#eta(L1);#eta(HLT)"+trigPath;
1757 MonitorElement * EtaCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
1758 EtaCorrelation_L1HLT->
getTH1();
1760 histoname = labelname+
"_l1HLTPhiCorrelation";
1761 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
1762 MonitorElement * PhiCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1763 PhiCorrelation_L1HLT->
getTH1();
1765 histoname = labelname+
"_hltRecObjPtResolution";
1766 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
1767 MonitorElement * PtResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1768 PtResolution_HLTRecObj->
getTH1();
1770 histoname = labelname+
"_hltRecObjEtaResolution";
1771 title = labelname+
"_hltRecObjEtaResolution;#eta(HLT)-#eta(Reco)"+trigPath;
1772 MonitorElement * EtaResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1773 EtaResolution_HLTRecObj->
getTH1();
1775 histoname = labelname+
"_hltRecObjPhiResolution";
1776 title = labelname+
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)"+trigPath;
1777 MonitorElement * PhiResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1778 PhiResolution_HLTRecObj->
getTH1();
1780 histoname = labelname+
"_hltRecObjPtCorrelation";
1781 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
1782 MonitorElement * PtCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1783 PtCorrelation_HLTRecObj->
getTH1();
1785 histoname = labelname+
"_hltRecObjEtaCorrelation";
1786 title = labelname+
"_hltRecObjEtaCorrelation;#eta(HLT);#eta(Reco)"+trigPath;
1787 MonitorElement * EtaCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
1788 EtaCorrelation_HLTRecObj->
getTH1();
1790 histoname = labelname+
"_hltRecObjPhiCorrelation";
1791 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
1792 MonitorElement * PhiCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1793 PhiCorrelation_HLTRecObj->
getTH1();
1820 EtaResolution_L1HLT,
1821 PhiResolution_L1HLT,
1822 PtResolution_HLTRecObj,
1823 EtaResolution_HLTRecObj,
1824 PhiResolution_HLTRecObj,
1825 PtCorrelation_L1HLT,
1826 EtaCorrelation_L1HLT,
1827 PhiCorrelation_L1HLT,
1828 PtCorrelation_HLTRecObj,
1829 EtaCorrelation_HLTRecObj,
1830 PhiCorrelation_HLTRecObj,
1845 histoname = labelname+
"_RecObjAveragePt";
1846 title = labelname+
"_RecObjAveragePt;Reco Average Pt[GeV/c]"+trigPath;
1847 MonitorElement * jetAveragePt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1850 histoname = labelname+
"_RecObjAverageEta";
1851 title = labelname+
"_RecObjAverageEta;Reco Average #eta"+trigPath;
1852 MonitorElement * jetAverageEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1855 histoname = labelname+
"_RecObjPhiDifference";
1856 title = labelname+
"_RecObjPhiDifference;Reco #Delta#Phi"+trigPath;
1857 MonitorElement * jetPhiDifference = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1858 jetPhiDifference->
getTH1();
1860 histoname = labelname+
"_hltObjAveragePt";
1861 title = labelname+
"_hltObjAveragePt;HLT Average Pt[GeV/c]"+trigPath;
1862 MonitorElement * hltAveragePt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1865 histoname = labelname+
"_hltObjAverageEta";
1866 title = labelname+
"_hltObjAverageEta;HLT Average #eta"+trigPath;
1867 MonitorElement * hltAverageEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
1870 histoname = labelname+
"_hltObjPhiDifference";
1871 title = labelname+
"_hltObjPhiDifference;Reco #Delta#Phi"+trigPath;
1872 MonitorElement * hltPhiDifference = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1873 hltPhiDifference->
getTH1();
1925 histoname = labelname+
"_recObjPt";
1926 title = labelname+
"_recObjPt;Reco Pt[GeV/c]"+trigPath;
1930 histoname = labelname+
"_recObjPhi";
1931 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
1935 histoname = labelname+
"_l1ObjPt";
1936 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
1937 MonitorElement * Pt_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1940 histoname = labelname+
"_l1ObjPhi";
1941 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
1942 MonitorElement * Phi_L1 = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1945 histoname = labelname+
"_hltObjPt";
1946 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
1947 MonitorElement * Pt_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
1950 histoname = labelname+
"_hltObjPhi";
1951 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
1952 MonitorElement * Phi_HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
1955 histoname = labelname+
"_l1HLTPtResolution";
1956 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
1957 MonitorElement * PtResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1958 PtResolution_L1HLT->
getTH1();
1960 histoname = labelname+
"_l1HLTPhiResolution";
1961 title = labelname+
"_l1HLTPhiResolution;#Phi(L1)-#Phi(HLT)"+trigPath;
1962 MonitorElement * PhiResolution_L1HLT = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1963 PhiResolution_L1HLT->
getTH1();
1965 histoname = labelname+
"_l1HLTPtCorrelation";
1966 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
1967 MonitorElement * PtCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1968 PtCorrelation_L1HLT->
getTH1();
1970 histoname = labelname+
"_l1HLTPhiCorrelation";
1971 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
1972 MonitorElement * PhiCorrelation_L1HLT = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1973 PhiCorrelation_L1HLT->
getTH1();
1975 histoname = labelname+
"_hltRecObjPtResolution";
1976 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
1977 MonitorElement * PtResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1978 PtResolution_HLTRecObj->
getTH1();
1980 histoname = labelname+
"_hltRecObjPhiResolution";
1981 title = labelname+
"_hltRecObjPhiResolution;#Phi(HLT)-#Phi(Reco)"+trigPath;
1982 MonitorElement * PhiResolution_HLTRecObj = iBooker.
book1D(histoname.c_str(),title.c_str(),Resbins_,ResMin_,ResMax_);
1983 PhiResolution_HLTRecObj->
getTH1();
1985 histoname = labelname+
"_hltRecObjPtCorrelation";
1986 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
1987 MonitorElement * PtCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1988 PtCorrelation_HLTRecObj->
getTH1();
1990 histoname = labelname+
"_hltRecObjPhiCorrelation";
1991 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
1992 MonitorElement * PhiCorrelation_HLTRecObj = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1993 PhiCorrelation_HLTRecObj->
getTH1();
2021 PhiResolution_L1HLT,
2022 PtResolution_HLTRecObj,
2024 PhiResolution_HLTRecObj,
2025 PtCorrelation_L1HLT,
2027 PhiCorrelation_L1HLT,
2028 PtCorrelation_HLTRecObj,
2030 PhiCorrelation_HLTRecObj,
2050 double PtMax_ = 1000.;
2053 double EtaMin_ = -5.;
2054 double EtaMax_ = 5.;
2057 double PhiMin_ = -3.5;
2058 double PhiMax_ = 3.5;
2067 std::string subdirName = dirName1 + trgPathName +
"_wrt_" + trgPathNameD;
2076 if((
v->getObjectType() ==
trigger::TriggerJet) && (
v->getTriggerType().compare(
"SingleJet_Trigger") == 0)){
2078 histoname = labelname+
"_NumeratorPt";
2079 title = labelname+
"NumeratorPt;Calo Pt[GeV/c]";
2080 MonitorElement * NumeratorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2083 histoname = labelname+
"_NumeratorPtBarrel";
2084 title = labelname+
"NumeratorPtBarrel;Calo Pt[GeV/c] ";
2085 MonitorElement * NumeratorPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2086 NumeratorPtBarrel->
getTH1();
2088 histoname = labelname+
"_NumeratorPtEndcap";
2089 title = labelname+
"NumeratorPtEndcap;Calo Pt[GeV/c]";
2090 MonitorElement * NumeratorPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2091 NumeratorPtEndcap->
getTH1();
2093 histoname = labelname+
"_NumeratorPtForward";
2094 title = labelname+
"NumeratorPtForward;Calo Pt[GeV/c]";
2095 MonitorElement * NumeratorPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2096 NumeratorPtForward->
getTH1();
2098 histoname = labelname+
"_NumeratorEta";
2099 title = labelname+
"NumeratorEta;Calo #eta ";
2100 MonitorElement * NumeratorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2103 histoname = labelname+
"_NumeratorPhi";
2104 title = labelname+
"NumeratorPhi;Calo #Phi";
2105 MonitorElement * NumeratorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2108 histoname = labelname+
"_NumeratorEtaPhi";
2109 title = labelname+
"NumeratorEtaPhi;Calo #eta;Calo #Phi";
2110 MonitorElement * NumeratorEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2111 NumeratorEtaPhi->
getTH1();
2113 histoname = labelname+
"_NumeratorEtaBarrel";
2114 title = labelname+
"NumeratorEtaBarrel;Calo #eta ";
2115 MonitorElement * NumeratorEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2116 NumeratorEtaBarrel->
getTH1();
2118 histoname = labelname+
"_NumeratorPhiBarrel";
2119 title = labelname+
"NumeratorPhiBarrel;Calo #Phi";
2120 MonitorElement * NumeratorPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2121 NumeratorPhiBarrel->
getTH1();
2123 histoname = labelname+
"_NumeratorEtaEndcap";
2124 title = labelname+
"NumeratorEtaEndcap;Calo #eta ";
2125 MonitorElement * NumeratorEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2126 NumeratorEtaEndcap->
getTH1();
2128 histoname = labelname+
"_NumeratorPhiEndcap";
2129 title = labelname+
"NumeratorPhiEndcap;Calo #Phi";
2130 MonitorElement * NumeratorPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2131 NumeratorPhiEndcap->
getTH1();
2133 histoname = labelname+
"_NumeratorEtaForward";
2134 title = labelname+
"NumeratorEtaForward;Calo #eta ";
2135 MonitorElement * NumeratorEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2136 NumeratorEtaForward->
getTH1();
2138 histoname = labelname+
"_NumeratorPhiForward";
2139 title = labelname+
"NumeratorPhiForward;Calo #Phi";
2140 MonitorElement * NumeratorPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2141 NumeratorPhiForward->
getTH1();
2143 histoname = labelname+
"_NumeratorEta_LowpTcut";
2144 title = labelname+
"NumeratorEta_LowpTcut;Calo #eta ";
2145 MonitorElement * NumeratorEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2146 NumeratorEta_LowpTcut->
getTH1();
2148 histoname = labelname+
"_NumeratorPhi_LowpTcut";
2149 title = labelname+
"NumeratorPhi_LowpTcut;Calo #Phi";
2150 MonitorElement * NumeratorPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2151 NumeratorPhi_LowpTcut->
getTH1();
2153 histoname = labelname+
"_NumeratorEtaPhi_LowpTcut";
2154 title = labelname+
"NumeratorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2155 MonitorElement * NumeratorEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2156 NumeratorEtaPhi_LowpTcut->
getTH1();
2158 histoname = labelname+
"_NumeratorEta_MedpTcut";
2159 title = labelname+
"NumeratorEta_MedpTcut;Calo #eta ";
2160 MonitorElement * NumeratorEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2161 NumeratorEta_MedpTcut->
getTH1();
2163 histoname = labelname+
"_NumeratorPhi_MedpTcut";
2164 title = labelname+
"NumeratorPhi_MedpTcut;Calo #Phi";
2165 MonitorElement * NumeratorPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2166 NumeratorPhi_MedpTcut->
getTH1();
2168 histoname = labelname+
"_NumeratorEtaPhi_MedpTcut";
2169 title = labelname+
"NumeratorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2170 MonitorElement * NumeratorEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2171 NumeratorEtaPhi_MedpTcut->
getTH1();
2173 histoname = labelname+
"_NumeratorEta_HighpTcut";
2174 title = labelname+
"NumeratorEta_HighpTcut;Calo #eta ";
2175 MonitorElement * NumeratorEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2176 NumeratorEta_HighpTcut->
getTH1();
2178 histoname = labelname+
"_NumeratorPhi_HighpTcut";
2179 title = labelname+
"NumeratorPhi_HighpTcut;Calo #Phi";
2180 MonitorElement * NumeratorPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2181 NumeratorPhi_HighpTcut->
getTH1();
2183 histoname = labelname+
"_NumeratorEtaPhi_HighpTcut";
2184 title = labelname+
"NumeratorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2185 MonitorElement * NumeratorEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2186 NumeratorEtaPhi_HighpTcut->
getTH1();
2188 histoname = labelname+
"_DenominatorPt";
2189 title = labelname+
"DenominatorPt;Calo Pt[GeV/c]";
2190 MonitorElement * DenominatorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2193 histoname = labelname+
"_DenominatorPtBarrel";
2194 title = labelname+
"DenominatorPtBarrel;Calo Pt[GeV/c]";
2195 MonitorElement * DenominatorPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2196 DenominatorPtBarrel->
getTH1();
2198 histoname = labelname+
"_DenominatorPtEndcap";
2199 title = labelname+
"DenominatorPtEndcap;Calo Pt[GeV/c]";
2200 MonitorElement * DenominatorPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2201 DenominatorPtEndcap->
getTH1();
2203 histoname = labelname+
"_DenominatorPtForward";
2204 title = labelname+
"DenominatorPtForward;Calo Pt[GeV/c] ";
2205 MonitorElement * DenominatorPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2206 DenominatorPtForward->
getTH1();
2208 histoname = labelname+
"_DenominatorEta";
2209 title = labelname+
"DenominatorEta;Calo #eta ";
2210 MonitorElement * DenominatorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2211 DenominatorEta->
getTH1();
2213 histoname = labelname+
"_DenominatorPhi";
2214 title = labelname+
"DenominatorPhi;Calo #Phi";
2215 MonitorElement * DenominatorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2216 DenominatorPhi->
getTH1();
2218 histoname = labelname+
"_DenominatorEtaPhi";
2219 title = labelname+
"DenominatorEtaPhi;Calo #eta; Calo #Phi";
2220 MonitorElement * DenominatorEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2221 DenominatorEtaPhi->
getTH1();
2223 histoname = labelname+
"_DenominatorEtaBarrel";
2224 title = labelname+
"DenominatorEtaBarrel;Calo #eta ";
2225 MonitorElement * DenominatorEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2226 DenominatorEtaBarrel->
getTH1();
2228 histoname = labelname+
"_DenominatorPhiBarrel";
2229 title = labelname+
"DenominatorPhiBarrel;Calo #Phi";
2230 MonitorElement * DenominatorPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2231 DenominatorPhiBarrel->
getTH1();
2233 histoname = labelname+
"_DenominatorEtaEndcap";
2234 title = labelname+
"DenominatorEtaEndcap;Calo #eta ";
2235 MonitorElement * DenominatorEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2236 DenominatorEtaEndcap->
getTH1();
2238 histoname = labelname+
"_DenominatorPhiEndcap";
2239 title = labelname+
"DenominatorPhiEndcap;Calo #Phi";
2240 MonitorElement * DenominatorPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2241 DenominatorPhiEndcap->
getTH1();
2243 histoname = labelname+
"_DenominatorEtaForward";
2244 title = labelname+
"DenominatorEtaForward;Calo #eta ";
2245 MonitorElement * DenominatorEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2246 DenominatorEtaForward->
getTH1();
2248 histoname = labelname+
"_DenominatorPhiForward";
2249 title = labelname+
"DenominatorPhiForward;Calo #Phi";
2250 MonitorElement * DenominatorPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2251 DenominatorPhiForward->
getTH1();
2253 histoname = labelname+
"_DenominatorEta_LowpTcut";
2254 title = labelname+
"DenominatorEta_LowpTcut;Calo #eta ";
2255 MonitorElement * DenominatorEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2256 DenominatorEta_LowpTcut->
getTH1();
2258 histoname = labelname+
"_DenominatorPhi_LowpTcut";
2259 title = labelname+
"DenominatorPhi_LowpTcut;Calo #Phi";
2260 MonitorElement * DenominatorPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2261 DenominatorPhi_LowpTcut->
getTH1();
2263 histoname = labelname+
"_DenominatorEtaPhi_LowpTcut";
2264 title = labelname+
"DenominatorEtaPhi_LowpTcut;Calo #eta;Calo #Phi";
2265 MonitorElement * DenominatorEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2266 DenominatorEtaPhi_LowpTcut->
getTH1();
2268 histoname = labelname+
"_DenominatorEta_MedpTcut";
2269 title = labelname+
"DenominatorEta_MedpTcut;Calo #eta ";
2270 MonitorElement * DenominatorEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2271 DenominatorEta_MedpTcut->
getTH1();
2273 histoname = labelname+
"_DenominatorPhi_MedpTcut";
2274 title = labelname+
"DenominatorPhi_MedpTcut;Calo #Phi";
2275 MonitorElement * DenominatorPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2276 DenominatorPhi_MedpTcut->
getTH1();
2278 histoname = labelname+
"_DenominatorEtaPhi_MedpTcut";
2279 title = labelname+
"DenominatorEtaPhi_MedpTcut;Calo #eta;Calo #Phi";
2280 MonitorElement * DenominatorEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2281 DenominatorEtaPhi_MedpTcut->
getTH1();
2283 histoname = labelname+
"_DenominatorEta_HighpTcut";
2284 title = labelname+
"DenominatorEta_HighpTcut;Calo #eta ";
2285 MonitorElement * DenominatorEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2286 DenominatorEta_HighpTcut->
getTH1();
2288 histoname = labelname+
"_DenominatorPhi_HighpTcut";
2289 title = labelname+
"DenominatorPhi_HighpTcut;Calo #Phi";
2290 MonitorElement * DenominatorPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2291 DenominatorPhi_HighpTcut->
getTH1();
2293 histoname = labelname+
"_DenominatorEtaPhi_HighpTcut";
2294 title = labelname+
"DenominatorEtaPhi_HighpTcut;Calo #eta;Calo #Phi";
2295 MonitorElement * DenominatorEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2296 DenominatorEtaPhi_HighpTcut->
getTH1();
2298 histoname = labelname+
"_DeltaR";
2299 title = labelname+
"DeltaR;";
2303 histoname = labelname+
"_DeltaPhi";
2304 title = labelname+
"DeltaPhi;";
2308 histoname = labelname+
"_NumeratorPFMHT";
2309 title = labelname+
"NumeratorPFMHT;PFMHT[GeV/c]";
2310 MonitorElement * NumeratorPFMHT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2311 NumeratorPFMHT->
getTH1();
2313 histoname = labelname+
"_NumeratorPFPt";
2314 title = labelname+
"NumeratorPFPt;PF Pt[GeV/c]";
2315 MonitorElement * NumeratorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2318 histoname = labelname+
"_NumeratorPFPtBarrel";
2319 title = labelname+
"NumeratorPFPtBarrel;PF Pt[GeV/c] ";
2320 MonitorElement * NumeratorPFPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2321 NumeratorPFPtBarrel->
getTH1();
2323 histoname = labelname+
"_NumeratorPFPtEndcap";
2324 title = labelname+
"NumeratorPFPtEndcap;PF Pt[GeV/c]";
2325 MonitorElement * NumeratorPFPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2326 NumeratorPFPtEndcap->
getTH1();
2328 histoname = labelname+
"_NumeratorPFPtForward";
2329 title = labelname+
"NumeratorPFPtForward;PF Pt[GeV/c]";
2330 MonitorElement * NumeratorPFPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2331 NumeratorPFPtForward->
getTH1();
2333 histoname = labelname+
"_NumeratorPFEta";
2334 title = labelname+
"NumeratorPFEta;PF #eta ";
2335 MonitorElement * NumeratorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2336 NumeratorPFEta->
getTH1();
2338 histoname = labelname+
"_NumeratorPFPhi";
2339 title = labelname+
"NumeratorPFPhi;Calo #Phi";
2340 MonitorElement * NumeratorPFPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2341 NumeratorPFPhi->
getTH1();
2343 histoname = labelname+
"_NumeratorPFEtaPhi";
2344 title = labelname+
"NumeratorPFEtaPhi;PF #eta;Calo #Phi";
2345 MonitorElement * NumeratorPFEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2346 NumeratorPFEtaPhi->
getTH1();
2348 histoname = labelname+
"_NumeratorPFEtaBarrel";
2349 title = labelname+
"NumeratorPFEtaBarrel;PF #eta ";
2350 MonitorElement * NumeratorPFEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2351 NumeratorPFEtaBarrel->
getTH1();
2353 histoname = labelname+
"_NumeratorPFPhiBarrel";
2354 title = labelname+
"NumeratorPFPhiBarrel;PF #Phi";
2355 MonitorElement * NumeratorPFPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2356 NumeratorPFPhiBarrel->
getTH1();
2358 histoname = labelname+
"_NumeratorPFEtaEndcap";
2359 title = labelname+
"NumeratorPFEtaEndcap;Calo #eta ";
2360 MonitorElement * NumeratorPFEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2361 NumeratorPFEtaEndcap->
getTH1();
2363 histoname = labelname+
"_NumeratorPFPhiEndcap";
2364 title = labelname+
"NumeratorPFPhiEndcap;PF #Phi";
2365 MonitorElement * NumeratorPFPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2366 NumeratorPFPhiEndcap->
getTH1();
2368 histoname = labelname+
"_NumeratorPFEtaForward";
2369 title = labelname+
"NumeratorPFEtaForward;Calo #eta ";
2370 MonitorElement * NumeratorPFEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2371 NumeratorPFEtaForward->
getTH1();
2373 histoname = labelname+
"_NumeratorPFPhiForward";
2374 title = labelname+
"NumeratorPFPhiForward;PF #Phi";
2375 MonitorElement * NumeratorPFPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2376 NumeratorPFPhiForward->
getTH1();
2378 histoname = labelname+
"_NumeratorPFEta_LowpTcut";
2379 title = labelname+
"NumeratorPFEta_LowpTcut;PF #eta ";
2380 MonitorElement * NumeratorPFEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2381 NumeratorPFEta_LowpTcut->
getTH1();
2383 histoname = labelname+
"_NumeratorPFPhi_LowpTcut";
2384 title = labelname+
"NumeratorPFPhi_LowpTcut;PF #Phi";
2385 MonitorElement * NumeratorPFPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2386 NumeratorPFPhi_LowpTcut->
getTH1();
2388 histoname = labelname+
"_NumeratorPFEtaPhi_LowpTcut";
2389 title = labelname+
"NumeratorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2390 MonitorElement * NumeratorPFEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2391 NumeratorPFEtaPhi_LowpTcut->
getTH1();
2393 histoname = labelname+
"_NumeratorPFEta_MedpTcut";
2394 title = labelname+
"NumeratorPFEta_MedpTcut;PF #eta ";
2395 MonitorElement * NumeratorPFEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2396 NumeratorPFEta_MedpTcut->
getTH1();
2398 histoname = labelname+
"_NumeratorPFPhi_MedpTcut";
2399 title = labelname+
"NumeratorPFPhi_MedpTcut;PF #Phi";
2400 MonitorElement * NumeratorPFPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2401 NumeratorPFPhi_MedpTcut->
getTH1();
2403 histoname = labelname+
"_NumeratorPFEtaPhi_MedpTcut";
2404 title = labelname+
"NumeratorPFEtaPhi_MedpTcut;PF #eta;PF #Phi";
2405 MonitorElement * NumeratorPFEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2406 NumeratorPFEtaPhi_MedpTcut->
getTH1();
2408 histoname = labelname+
"_NumeratorPFEta_HighpTcut";
2409 title = labelname+
"NumeratorPFEta_HighpTcut;Calo #eta ";
2410 MonitorElement * NumeratorPFEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2411 NumeratorPFEta_HighpTcut->
getTH1();
2413 histoname = labelname+
"_NumeratorPFPhi_HighpTcut";
2414 title = labelname+
"NumeratorPFPhi_HighpTcut;PF #Phi";
2415 MonitorElement * NumeratorPFPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2416 NumeratorPFPhi_HighpTcut->
getTH1();
2418 histoname = labelname+
"_NumeratorPFEtaPhi_HighpTcut";
2419 title = labelname+
"NumeratorPFEtaPhi_HighpTcut;PF #eta;PF #Phi";
2420 MonitorElement * NumeratorPFEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2421 NumeratorPFEtaPhi_HighpTcut->
getTH1();
2423 histoname = labelname+
"_DenominatorPFMHT";
2424 title = labelname+
"DenominatorPFMHT;PF Pt[GeV/c]";
2425 MonitorElement * DenominatorPFMHT = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2426 DenominatorPFMHT->
getTH1();
2428 histoname = labelname+
"_DenominatorPFPt";
2429 title = labelname+
"DenominatorPFPt;PF Pt[GeV/c]";
2430 MonitorElement * DenominatorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2431 DenominatorPFPt->
getTH1();
2433 histoname = labelname+
"_DenominatorPFPtBarrel";
2434 title = labelname+
"DenominatorPFPtBarrel;Calo Pt[GeV/c]";
2435 MonitorElement * DenominatorPFPtBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2436 DenominatorPFPtBarrel->
getTH1();
2438 histoname = labelname+
"_DenominatorPFPtEndcap";
2439 title = labelname+
"DenominatorPFPtEndcap;PF Pt[GeV/c]";
2440 MonitorElement * DenominatorPFPtEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2441 DenominatorPFPtEndcap->
getTH1();
2443 histoname = labelname+
"_DenominatorPFPtForward";
2444 title = labelname+
"DenominatorPFPtForward;PF Pt[GeV/c] ";
2445 MonitorElement * DenominatorPFPtForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2446 DenominatorPFPtForward->
getTH1();
2448 histoname = labelname+
"_DenominatorPFEta";
2449 title = labelname+
"DenominatorPFEta;PF #eta ";
2450 MonitorElement * DenominatorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2451 DenominatorPFEta->
getTH1();
2453 histoname = labelname+
"_DenominatorPFPhi";
2454 title = labelname+
"DenominatorPFPhi;PF #Phi";
2455 MonitorElement * DenominatorPFPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2456 DenominatorPFPhi->
getTH1();
2458 histoname = labelname+
"_DenominatorPFEtaPhi";
2459 title = labelname+
"DenominatorPFEtaPhi;PF #eta; Calo #Phi";
2460 MonitorElement * DenominatorPFEtaPhi = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2461 DenominatorPFEtaPhi->
getTH1();
2463 histoname = labelname+
"_DenominatorPFEtaBarrel";
2464 title = labelname+
"DenominatorPFEtaBarrel;Calo #eta ";
2465 MonitorElement * DenominatorPFEtaBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2466 DenominatorPFEtaBarrel->
getTH1();
2468 histoname = labelname+
"_DenominatorPFPhiBarrel";
2469 title = labelname+
"DenominatorPFPhiBarrel;PF #Phi";
2470 MonitorElement * DenominatorPFPhiBarrel = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2471 DenominatorPFPhiBarrel->
getTH1();
2473 histoname = labelname+
"_DenominatorPFEtaEndcap";
2474 title = labelname+
"DenominatorPFEtaEndcap;PF #eta ";
2475 MonitorElement * DenominatorPFEtaEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2476 DenominatorPFEtaEndcap->
getTH1();
2478 histoname = labelname+
"_DenominatorPFPhiEndcap";
2479 title = labelname+
"DenominatorPFPhiEndcap;Calo #Phi";
2480 MonitorElement * DenominatorPFPhiEndcap = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2481 DenominatorPFPhiEndcap->
getTH1();
2483 histoname = labelname+
"_DenominatorPFEtaForward";
2484 title = labelname+
"DenominatorPFEtaForward;PF #eta ";
2485 MonitorElement * DenominatorPFEtaForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2486 DenominatorPFEtaForward->
getTH1();
2488 histoname = labelname+
"_DenominatorPFPhiForward";
2489 title = labelname+
"DenominatorPFPhiForward;PF #Phi";
2490 MonitorElement * DenominatorPFPhiForward = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2491 DenominatorPFPhiForward->
getTH1();
2493 histoname = labelname+
"_DenominatorPFEta_LowpTcut";
2494 title = labelname+
"DenominatorPFEta_LowpTcut;PF #eta ";
2495 MonitorElement * DenominatorPFEta_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2496 DenominatorPFEta_LowpTcut->
getTH1();
2498 histoname = labelname+
"_DenominatorPFPhi_LowpTcut";
2499 title = labelname+
"DenominatorPFPhi_LowpTcut;PF #Phi";
2500 MonitorElement * DenominatorPFPhi_LowpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2501 DenominatorPFPhi_LowpTcut->
getTH1();
2503 histoname = labelname+
"_DenominatorPFEtaPhi_LowpTcut";
2504 title = labelname+
"DenominatorPFEtaPhi_LowpTcut;PF #eta;Calo #Phi";
2505 MonitorElement * DenominatorPFEtaPhi_LowpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2506 DenominatorPFEtaPhi_LowpTcut->
getTH1();
2508 histoname = labelname+
"_DenominatorPFEta_MedpTcut";
2509 title = labelname+
"DenominatorPFEta_MedpTcut;PF #eta ";
2510 MonitorElement * DenominatorPFEta_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2511 DenominatorPFEta_MedpTcut->
getTH1();
2513 histoname = labelname+
"_DenominatorPFPhi_MedpTcut";
2514 title = labelname+
"DenominatorPFPhi_MedpTcut;PF #Phi";
2515 MonitorElement * DenominatorPFPhi_MedpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2516 DenominatorPFPhi_MedpTcut->
getTH1();
2518 histoname = labelname+
"_DenominatorPFEtaPhi_MedpTcut";
2519 title = labelname+
"DenominatorPFEtaPhi_MedpTcut;PF #eta;Calo #Phi";
2520 MonitorElement * DenominatorPFEtaPhi_MedpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2521 DenominatorPFEtaPhi_MedpTcut->
getTH1();
2523 histoname = labelname+
"_DenominatorPFEta_HighpTcut";
2524 title = labelname+
"DenominatorPFEta_HighpTcut;PF #eta ";
2525 MonitorElement * DenominatorPFEta_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2526 DenominatorPFEta_HighpTcut->
getTH1();
2528 histoname = labelname+
"_DenominatorPFPhi_HighpTcut";
2529 title = labelname+
"DenominatorPFPhi_HighpTcut;PF #Phi";
2530 MonitorElement * DenominatorPFPhi_HighpTcut = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2531 DenominatorPFPhi_HighpTcut->
getTH1();
2533 histoname = labelname+
"_DenominatorPFEtaPhi_HighpTcut";
2534 title = labelname+
"DenominatorPFEtaPhi_HighpTcut;PF #eta;Calo #Phi";
2535 MonitorElement * DenominatorPFEtaPhi_HighpTcut = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2536 DenominatorPFEtaPhi_HighpTcut->
getTH1();
2538 histoname = labelname+
"_PFDeltaR";
2539 title = labelname+
"PFDeltaR;";
2543 histoname = labelname+
"_PFDeltaPhi";
2544 title = labelname+
"PFDeltaPhi;";
2548 v->setEffHistos(NumeratorPt,
2560 NumeratorEtaForward,
2561 NumeratorPhiForward,
2562 NumeratorEta_LowpTcut,
2563 NumeratorPhi_LowpTcut,
2564 NumeratorEtaPhi_LowpTcut,
2565 NumeratorEta_MedpTcut,
2566 NumeratorPhi_MedpTcut,
2567 NumeratorEtaPhi_MedpTcut,
2568 NumeratorEta_HighpTcut,
2569 NumeratorPhi_HighpTcut,
2570 NumeratorEtaPhi_HighpTcut,
2573 DenominatorPtBarrel,
2574 DenominatorPtEndcap,
2575 DenominatorPtForward,
2580 DenominatorEtaBarrel,
2581 DenominatorPhiBarrel,
2582 DenominatorEtaEndcap,
2583 DenominatorPhiEndcap,
2584 DenominatorEtaForward,
2585 DenominatorPhiForward,
2586 DenominatorEta_LowpTcut,
2587 DenominatorPhi_LowpTcut,
2588 DenominatorEtaPhi_LowpTcut,
2589 DenominatorEta_MedpTcut,
2590 DenominatorPhi_MedpTcut,
2591 DenominatorEtaPhi_MedpTcut,
2592 DenominatorEta_HighpTcut,
2593 DenominatorPhi_HighpTcut,
2594 DenominatorEtaPhi_HighpTcut,
2600 NumeratorPFPtBarrel,
2601 NumeratorPFPtEndcap,
2602 NumeratorPFPtForward,
2606 NumeratorPFEtaBarrel,
2607 NumeratorPFPhiBarrel,
2608 NumeratorPFEtaEndcap,
2609 NumeratorPFPhiEndcap,
2610 NumeratorPFEtaForward,
2611 NumeratorPFPhiForward,
2612 NumeratorPFEta_LowpTcut,
2613 NumeratorPFPhi_LowpTcut,
2614 NumeratorPFEtaPhi_LowpTcut,
2615 NumeratorPFEta_MedpTcut,
2616 NumeratorPFPhi_MedpTcut,
2617 NumeratorPFEtaPhi_MedpTcut,
2618 NumeratorPFEta_HighpTcut,
2619 NumeratorPFPhi_HighpTcut,
2620 NumeratorPFEtaPhi_HighpTcut,
2623 DenominatorPFPtBarrel,
2624 DenominatorPFPtEndcap,
2625 DenominatorPFPtForward,
2628 DenominatorPFEtaPhi,
2629 DenominatorPFEtaBarrel,
2630 DenominatorPFPhiBarrel,
2631 DenominatorPFEtaEndcap,
2632 DenominatorPFPhiEndcap,
2633 DenominatorPFEtaForward,
2634 DenominatorPFPhiForward,
2635 DenominatorPFEta_LowpTcut,
2636 DenominatorPFPhi_LowpTcut,
2637 DenominatorPFEtaPhi_LowpTcut,
2638 DenominatorPFEta_MedpTcut,
2639 DenominatorPFPhi_MedpTcut,
2640 DenominatorPFEtaPhi_MedpTcut,
2641 DenominatorPFEta_HighpTcut,
2642 DenominatorPFPhi_HighpTcut,
2643 DenominatorPFEtaPhi_HighpTcut,
2650 if((
v->getObjectType() ==
trigger::TriggerJet) && (
v->getTriggerType().compare(
"DiJet_Trigger") == 0)){
2652 histoname = labelname+
"_NumeratorAvrgPt";
2653 title = labelname+
"NumeratorAvrgPt;Calo Pt[GeV/c]";
2654 MonitorElement * NumeratorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2657 histoname = labelname+
"_NumeratorAvrgEta";
2658 title = labelname+
"NumeratorAvrgEta;Calo #eta";
2659 MonitorElement * NumeratorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2662 histoname = labelname+
"_DenominatorAvrgPt";
2663 title = labelname+
"DenominatorAvrgPt;Calo Pt[GeV/c] ";
2664 MonitorElement * DenominatorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2667 histoname = labelname+
"_DenominatorAvrgEta";
2668 title = labelname+
"DenominatorAvrgEta;Calo #eta";
2669 MonitorElement * DenominatorEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2670 DenominatorEta->
getTH1();
2672 histoname = labelname+
"_DeltaR";
2673 title = labelname+
"DeltaR;";
2677 histoname = labelname+
"_DeltaPhi";
2678 title = labelname+
"DeltaPhi;";
2683 histoname = labelname+
"_NumeratorAvrgPFPt";
2684 title = labelname+
"NumeratorAvrgPFPt;PF Pt[GeV/c]";
2685 MonitorElement * NumeratorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2688 histoname = labelname+
"_NumeratorAvrgPFEta";
2689 title = labelname+
"NumeratorAvrgPFEta;PF #eta";
2690 MonitorElement * NumeratorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2691 NumeratorPFEta->
getTH1();
2693 histoname = labelname+
"_DenominatorAvrgPFPt";
2694 title = labelname+
"DenominatorAvrgPFPt;PF Pt[GeV/c] ";
2695 MonitorElement * DenominatorPFPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2696 DenominatorPFPt->
getTH1();
2698 histoname = labelname+
"_DenominatorAvrgPFEta";
2699 title = labelname+
"DenominatorAvrgPFEta;PF #eta";
2700 MonitorElement * DenominatorPFEta = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2701 DenominatorPFEta->
getTH1();
2703 histoname = labelname+
"_PFDeltaR";
2704 title = labelname+
"PFDeltaR;";
2708 histoname = labelname+
"_PFDeltaPhi";
2709 title = labelname+
"PFDeltaPhi;";
2713 v->setEffHistos( dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2714 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2715 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2716 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2717 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2718 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2719 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2720 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2721 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2722 dummy, dummy, dummy, dummy
2728 histoname = labelname+
"_NumeratorPt";
2729 if(
v->getPath().find(
"HLT_PFMET")==std::string::npos)
2730 title = labelname+
"NumeratorPt; CaloMET[GeV/c]";
2732 title = labelname+
"NumeratorPt; PFMET[GeV/c]";
2733 MonitorElement * NumeratorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2736 histoname = labelname+
"_NumeratorPhi";
2737 title = labelname+
"NumeratorPhi; #Phi";
2738 MonitorElement * NumeratorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2741 histoname = labelname+
"_DenominatorPt";
2742 if(
v->getPath().find(
"HLT_PFMET")==std::string::npos)
2743 title = labelname+
"DenominatorPt; CaloMET[GeV/c]";
2745 title = labelname+
"DenominatorPt; PFMET[GeV/c]";
2746 MonitorElement * DenominatorPt = iBooker.
book1D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_);
2749 histoname = labelname+
"_DenominatorPhi";
2750 title = labelname+
"DenominatorPhi; #Phi";
2751 MonitorElement * DenominatorPhi = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2752 DenominatorPhi->
getTH1();
2754 v->setEffHistos( NumeratorPt, dummy, dummy, dummy, dummy, NumeratorPhi, dummy, dummy, dummy, dummy,
2755 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2756 dummy, dummy, DenominatorPt, dummy, dummy, dummy, dummy, DenominatorPhi, dummy, dummy,
2757 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2758 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2759 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2760 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2761 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2762 dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy, dummy,
2763 dummy, dummy, dummy, dummy
2778 double PtMax_ = 1000.;
2779 double EtaMin_ = -5.;
2780 double EtaMax_ = 5.;
2781 double PhiMin_ = -3.14159;
2782 double PhiMax_ = 3.14159;
2797 histoname = labelname+
"_TriggerSummary";
2798 title = labelname+
"Summary of trigger levels";
2801 std::vector<std::string> trigger;
2802 trigger.push_back(
"Nevt");
2803 trigger.push_back(
"L1 failed");
2804 trigger.push_back(
"L1 & HLT failed");
2805 trigger.push_back(
"L1 failed but not HLT");
2806 trigger.push_back(
"L1 passed");
2807 trigger.push_back(
"L1 & HLT passed");
2808 trigger.push_back(
"L1 passed but not HLT");
2810 for(
unsigned int i =0;
i < trigger.size();
i++)
2813 if((
v->getTriggerType().compare(
"SingleJet_Trigger") == 0)){
2814 histoname = labelname+
"_JetPt";
2815 title = labelname+
"Leading jet pT;Pt[GeV/c]";
2819 histoname = labelname+
"_JetEtaVsPt";
2820 title = labelname+
"Leading jet #eta vs pT;#eta;Pt[GeV/c]";
2821 MonitorElement * JetEtaVsPt = iBooker.
book2D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_,Ptbins_,PtMin_,PtMax_);
2824 histoname = labelname+
"_JetPhiVsPt";
2825 title = labelname+
"Leading jet #Phi vs pT;#Phi;Pt[GeV/c]";
2826 MonitorElement * JetPhiVsPt = iBooker.
book2D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_,Ptbins_,PtMin_,PtMax_);
2829 v->setDgnsHistos( TriggerSummary, dummy, JetPt, JetEtaVsPt, JetPhiVsPt, dummy, dummy, dummy, dummy, dummy, dummy);
2832 if((
v->getTriggerType().compare(
"DiJet_Trigger") == 0)){
2833 histoname = labelname+
"_JetSize";
2834 title = labelname+
"Jet Size;multiplicity";
2838 histoname = labelname+
"_AvergPt";
2839 title = labelname+
"Average Pt;Pt[GeV/c]";
2843 histoname = labelname+
"_AvergEta";
2844 title = labelname+
"Average Eta;#eta";
2845 MonitorElement * Eta12 = iBooker.
book1D(histoname.c_str(),title.c_str(),Etabins_,EtaMin_,EtaMax_);
2848 histoname = labelname+
"_PhiDifference";
2849 title = labelname+
"#Delta#Phi;#Delta#Phi";
2850 MonitorElement * Phi12 = iBooker.
book1D(histoname.c_str(),title.c_str(),Phibins_,PhiMin_,PhiMax_);
2853 histoname = labelname+
"_Pt3Jet";
2854 title = labelname+
"Pt of 3rd Jet;Pt[GeV/c]";
2858 histoname = labelname+
"_Pt12VsPt3Jet";
2859 title = labelname+
"Pt of 3rd Jet vs Average Pt of leading jets;Avergage Pt[GeV/c]; Pt of 3rd Jet [GeV/c]";
2860 MonitorElement * Pt12Pt3 = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2863 histoname = labelname+
"_Pt12VsPhi12";
2864 title = labelname+
"Average Pt of leading jets vs #Delta#Phi between leading jets;Avergage Pt[GeV/c]; #Delta#Phi";
2865 MonitorElement * Pt12Phi12 = iBooker.
book2D(histoname.c_str(),title.c_str(),Ptbins_,PtMin_,PtMax_,Phibins_,PhiMin_,PhiMax_);
2868 v->setDgnsHistos( TriggerSummary, JetSize, dummy, dummy, dummy, Pt12, Eta12, Phi12, Pt3, Pt12Pt3, Pt12Phi12);
2871 if((
v->getTriggerType().compare(
"MET_Trigger") == 0)){
2872 histoname = labelname+
"_MET";
2873 title = labelname+
"MET;Pt[GeV/c]";
2877 v->setDgnsHistos(TriggerSummary, dummy, MET, dummy, dummy, dummy, dummy, dummy,dummy,dummy,dummy);
2880 if((
v->getTriggerType().compare(
"TET_Trigger") == 0)){
2881 histoname = labelname+
"_TET";
2882 title = labelname+
"TET;Pt[GeV/c]";
2886 v->setDgnsHistos(TriggerSummary, dummy, TET, dummy, dummy, dummy, dummy, dummy,dummy,dummy,dummy);
2904 for(std::vector<std::string>::iterator numpathmodule = numpathmodules.begin();
2905 numpathmodule!= numpathmodules.end(); ++numpathmodule ) {
2908 l1pathname = *numpathmodule;
2918 if (fabs(eta)<=1.3) output=
true;
2925 if (fabs(eta)<=3.0 && fabs(eta)>1.3) output=
true;
2932 if (fabs(eta)>3.0) output=
true;
2962 double binVal = -100;
2963 for(
int ibin=1; ibin<nbins+1; ibin++)
2965 const char * binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
2966 if(binLabel[0]==
'\0')
continue;
2969 if(trigName.compare(binLabel)!=0)
continue;
2971 if(trigName.compare(binLabel)==0){
2986 edm::LogInfo(
"JetMETHLTOfflineSource") <<
"no index "<< index <<
" of that name ";
2989 if (k.size()) 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
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) 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)
const std::string & triggerName(unsigned int triggerIndex) const
JetMETHLTOfflineSource(const edm::ParameterSet &)
virtual double et() const
transverse energy
edm::TriggerNames triggerNames_
edm::Handle< reco::PFJetCollection > pfjetColl_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual double TriggerPosition(std::string trigName)
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_
reco::PFJetCollection pfjet
Strings::size_type size() const
edm::Handle< reco::PFMETCollection > pfmetColl_
PathInfoCollection hltPathsAllTriggerSummary_
virtual bool validPathHLT(std::string path)
edm::InputTag triggerSummaryLabel_
virtual double pt() const
transverse momentum
static const std::string removeVersion(const std::string &trigger)
virtual 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()
unsigned int triggerIndex(std::string const &name) const
edm::EDGetTokenT< reco::JetCorrector > CaloJetCorToken_
std::vector< std::string > MBTrigPaths_
double dPhi(double phi1, double phi2)
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)
~JetMETHLTOfflineSource()
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)
virtual 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
HLTConfigProvider hltConfig_
MonitorElement * correlation_All
edm::Handle< reco::CaloMETCollection > calometColl_
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken
edm::EDGetTokenT< trigger::TriggerEvent > triggerSummaryToken
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual void fillMEforEffAllTrigger(const edm::Event &iEvent, const edm::EventSetup &)
MonitorElement * rate_AllWrtMB
MonitorElement * bookFloat(Args &&...args)
volatile std::atomic< bool > shutdown_flag false
virtual double phi() const
momentum azimuthal angle
MonitorElement * rate_AllWrtMu
reco::helper::JetIDHelper * jetID
edm::EDGetTokenT< reco::JetCorrector > PFJetCorToken_
void calculate(const edm::Event &event, const reco::CaloJet &jet, const int iDbg=0)
MonitorElement * rate_All
PathInfoCollection hltPathsEff_