1225 LogDebug(
"HLTJetMETDQMSource") <<
"HLTConfigProvider failed to initialize.";
1242 for (
unsigned int i=0;
i!=
n; ++
i) {
1243 bool denomFound =
false;
1244 bool numFound =
false;
1245 bool mbFound =
false;
1246 bool muFound =
false;
1250 std::string l1pathname =
"dummy";
1251 std::string denompathname =
"";
1252 unsigned int usedPrescale = 1;
1253 unsigned int objectType = 0;
1254 std::string triggerType =
"";
1255 std::string filtername(
"dummy");
1256 std::string Denomfiltername(
"denomdummy");
1258 if (pathname.find(
"Jet") != std::string::npos && !(pathname.find(
"DoubleJet") != std::string::npos) && !(pathname.find(
"DiJet") != std::string::npos) && !(pathname.find(
"BTag") != std::string::npos) && !(pathname.find(
"Mu") != std::string::npos) && !(pathname.find(
"Fwd") != std::string::npos)){
1259 triggerType =
"SingleJet_Trigger";
1262 if (pathname.find(
"DiJet") != std::string::npos || pathname.find(
"DoubleJet") != std::string::npos){
1263 triggerType =
"DiJet_Trigger";
1266 if (pathname.find(
"MET") != std::string::npos || pathname.find(
"HT") != std::string::npos){
1267 triggerType =
"MET_Trigger";
1272 if(objectType ==
trigger::TriggerJet && !(pathname.find(
"DiJet") != std::string::npos) && !(pathname.find(
"DoubleJet") != std::string::npos))
1295 for (
unsigned int i=0;
i!=
n; ++
i) {
1297 if(HLTname == pathname)numFound =
true;
1298 if(HLTname == dpathname)denomFound =
true;
1306 for(std::vector<std::string>::iterator numpathmodule = numpathmodules.begin(); numpathmodule!= numpathmodules.end(); ++numpathmodule ) {
1313 if(objectType != 0 && denomFound)
1316 for(std::vector<std::string>::iterator numpathmodule = numpathmodules.begin(); numpathmodule!= numpathmodules.end(); ++numpathmodule ) {
1322 if(objectType != 0 && numFound)
1324 if(
verbose_)
cout<<
"==pathname=="<<pathname<<
"==denompath=="<<dpathname<<
"==filtername=="<<filtername<<
"==denomfiltername=="<<Denomfiltername<<
"==l1pathname=="<<l1pathname<<
"==objectType=="<<objectType<<endl;
1325 if(!((pathname.find(
"HT") != std::string::npos) || (pathname.find(
"Quad") != std::string::npos)))
1327 hltPathsAll_.push_back(PathInfo(usedPrescale, dpathname, pathname, l1pathname, filtername, Denomfiltername,
processname_, objectType, triggerType));
1328 if(muFound)
hltPathsAllWrtMu_.push_back(PathInfo(usedPrescale, dpathname, pathname, l1pathname, filtername, Denomfiltername,
processname_, objectType, triggerType));
1329 if(muFound)
hltPathsEffWrtMu_.push_back(PathInfo(usedPrescale, dpathname, pathname, l1pathname, filtername, Denomfiltername,
processname_, objectType, triggerType));
1330 if(mbFound)
hltPathsEffWrtMB_.push_back(PathInfo(usedPrescale, dpathname, pathname, l1pathname, filtername, Denomfiltername,
processname_, objectType, triggerType));
1332 if(!
nameForEff_ && denomFound)
hltPathsEff_.push_back(PathInfo(usedPrescale, dpathname, pathname, l1pathname, filtername, Denomfiltername,
processname_, objectType, triggerType));
1343 std::string l1pathname =
"dummy";
1344 std::string denompathname =
"";
1345 unsigned int usedPrescale = 1;
1346 unsigned int objectType = 0;
1347 std::string triggerType =
"";
1348 std::string filtername(
"dummy");
1349 std::string Denomfiltername(
"denomdummy");
1352 std::string pathname = custompathnamepair->first;
1353 std::string dpathname = custompathnamepair->second;
1354 bool numFound =
false;
1355 bool denomFound =
false;
1357 for (
unsigned int i=0;
i!=
n; ++
i) {
1359 if(HLTname == pathname)numFound =
true;
1360 if(HLTname == dpathname)denomFound =
true;
1362 if(numFound && denomFound)
1364 if (pathname.find(
"Jet") != std::string::npos && !(pathname.find(
"DiJet") != std::string::npos) && !(pathname.find(
"DoubleJet") != std::string::npos) && !(pathname.find(
"BTag") != std::string::npos) && !(pathname.find(
"Mu") != std::string::npos) && !(pathname.find(
"Fwd") != std::string::npos)){
1365 triggerType =
"SingleJet_Trigger";
1368 if (pathname.find(
"DiJet") != std::string::npos || pathname.find(
"DoubleJet") != std::string::npos ){
1369 triggerType =
"DiJet_Trigger";
1372 if (pathname.find(
"MET") != std::string::npos ){
1373 triggerType =
"MET_Trigger";
1378 for(std::vector<std::string>::iterator numpathmodule = numpathmodules.begin(); numpathmodule!= numpathmodules.end(); ++numpathmodule ) {
1387 for(std::vector<std::string>::iterator numpathmodule = numpathmodules.begin(); numpathmodule!= numpathmodules.end(); ++numpathmodule ) {
1392 if(
verbose_)
cout<<
"==pathname=="<<pathname<<
"==denompath=="<<dpathname<<
"==filtername=="<<filtername<<
"==denomfiltername=="<<Denomfiltername<<
"==l1pathname=="<<l1pathname<<
"==objectType=="<<objectType<<endl;
1393 hltPathsEff_.push_back(PathInfo(usedPrescale, dpathname, pathname, l1pathname, filtername, Denomfiltername,
processname_, objectType, triggerType));
1403 std::string foldernm =
"/TriggerSummary/";
1408 double TrigMin_ = -0.5;
1410 std::string histonm=
"JetMET_TriggerRate";
1411 std::string histot=
"JetMET TriggerRate Summary";
1413 rate_All =
dbe->
book1D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_);
1416 histonm=
"JetMET_TriggerRate_Correlation";
1417 histot=
"JetMET TriggerRate Correlation Summary;y&&!x;x&&y";
1419 correlation_All =
dbe->
book2D(histonm.c_str(),histot.c_str(),TrigBins_,TrigMin_,TrigMax_,TrigBins_,TrigMin_,TrigMax_);
1422 histonm=
"JetMET_TriggerRate_WrtMuTrigger";
1423 histot=
"JetMET TriggerRate Summary Wrt Muon Trigger ";
1428 histonm=
"JetMET_TriggerRate_Correlation_WrtMuTrigger";
1429 histot=
"JetMET TriggerRate Correlation Summary Wrt Muon Trigger;y&&!x;x&&y";
1433 histonm=
"JetMET_TriggerRate_WrtMBTrigger";
1434 histot=
"JetMET TriggerRate Summary Wrt MB Trigger";
1439 histonm=
"JetMET_TriggerRate_Correlation_WrtMBTrigger";
1440 histot=
"JetMET TriggerRate Correlation Wrt MB Trigger;y&&!x;x&&y";
1449 std::string labelnm(
"dummy");
1450 labelnm =
v->getPath();
1452 for(
int ibin=1; ibin<nbins+1; ibin++)
1454 const char * binLabel =
rate_All->
getTH1()->GetXaxis()->GetBinLabel(ibin);
1455 std::string binLabel_str = string(binLabel);
1456 if(binLabel_str.compare(labelnm)==0)
break;
1457 if(binLabel[0]==
'\0')
1485 double PtMax_ = 200.;
1486 double EtaMin_ = -5.;
1487 double EtaMax_ = 5.;
1488 double PhiMin_ = -3.14159;
1489 double PhiMax_ = 3.14159;
1490 double ResMin_ = -1.5;
1491 double ResMax_ = 1.5;
1495 std::string subdirName = dirName +
v->getPath();
1496 std::string trigPath =
"("+
v->getPath()+
")";
1500 *N_L1, *Pt_L1, *PtBarrel_L1, *PtEndcap_L1, *PtForward_L1, *Eta_L1, *Phi_L1, *EtaPhi_L1,
1501 *N_HLT, *Pt_HLT, *PtBarrel_HLT, *PtEndcap_HLT, *PtForward_HLT, *Eta_HLT, *Phi_HLT, *EtaPhi_HLT,
1502 *PtResolution_L1HLT, *EtaResolution_L1HLT,*PhiResolution_L1HLT,
1503 *PtResolution_HLTRecObj, *EtaResolution_HLTRecObj,*PhiResolution_HLTRecObj,
1504 *PtCorrelation_L1HLT,*EtaCorrelation_L1HLT,*PhiCorrelation_L1HLT,
1505 *PtCorrelation_HLTRecObj,*EtaCorrelation_HLTRecObj,*PhiCorrelation_HLTRecObj,
1506 *jetAveragePt, *jetAverageEta, *jetPhiDifference, *hltAveragePt, *hltAverageEta, *hltPhiDifference;
1535 PtResolution_L1HLT =
dbe->
bookFloat(
"PtResolution_L1HLT");
1536 EtaResolution_L1HLT =
dbe->
bookFloat(
"EtaResolution_L1HLT");
1537 PhiResolution_L1HLT =
dbe->
bookFloat(
"PhiResolution_L1HLT");
1538 PtResolution_HLTRecObj =
dbe->
bookFloat(
"PtResolution_HLTRecObj");
1539 EtaResolution_HLTRecObj =
dbe->
bookFloat(
"EtaResolution_HLTRecObj");
1540 PhiResolution_HLTRecObj =
dbe->
bookFloat(
"PhiResolution_HLTRecObj");
1541 PtCorrelation_L1HLT =
dbe->
bookFloat(
"PtCorrelation_L1HLT");
1542 EtaCorrelation_L1HLT =
dbe->
bookFloat(
"EtaCorrelation_L1HLT");
1543 PhiCorrelation_L1HLT =
dbe->
bookFloat(
"PhiCorrelation_L1HLT");
1544 PtCorrelation_HLTRecObj =
dbe->
bookFloat(
"PtCorrelation_HLTRecObj");
1545 EtaCorrelation_HLTRecObj =
dbe->
bookFloat(
"EtaCorrelation_HLTRecObj");
1546 PhiCorrelation_HLTRecObj =
dbe->
bookFloat(
"PhiCorrelation_HLTRecObj");
1555 std::string labelname(
"ME");
1556 std::string histoname(labelname+
"");
1557 std::string
title(labelname+
"");
1561 histoname = labelname+
"_recObjN";
1562 title = labelname+
"_recObjN;Reco multiplicity()"+trigPath;
1563 N =
dbe->
book1D(histoname.c_str(),
title.c_str(),Nbins_,Nmin_,Nmax_);
1567 histoname = labelname+
"_recObjPt";
1568 title = labelname+
"_recObjPt; Reco Pt[GeV/c]"+trigPath;
1569 Pt =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1573 histoname = labelname+
"_recObjPtBarrel";
1574 title = labelname+
"_recObjPtBarrel;Reco Pt[GeV/c]"+trigPath;
1575 PtBarrel =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1579 histoname = labelname+
"_recObjPtEndcap";
1580 title = labelname+
"_recObjPtEndcap;Reco Pt[GeV/c]"+trigPath;
1581 PtEndcap =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1585 histoname = labelname+
"_recObjPtForward";
1586 title = labelname+
"_recObjPtForward;Reco Pt[GeV/c]"+trigPath;
1587 PtForward =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1591 histoname = labelname+
"_recObjEta";
1592 title = labelname+
"_recObjEta;Reco #eta"+trigPath;
1593 Eta =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
1597 histoname = labelname+
"_recObjPhi";
1598 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
1599 Phi =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
1603 histoname = labelname+
"_recObjEtaPhi";
1604 title = labelname+
"_recObjEtaPhi;Reco #eta;Reco #Phi"+trigPath;
1605 EtaPhi =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1610 histoname = labelname+
"_l1ObjN";
1611 title = labelname+
"_l1ObjN;L1 multiplicity"+trigPath;
1612 N_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Nbins_,Nmin_,Nmax_);
1616 histoname = labelname+
"_l1ObjPt";
1617 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
1618 Pt_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1622 histoname = labelname+
"_l1ObjPtBarrel";
1623 title = labelname+
"_l1ObjPtBarrel;L1 Pt[GeV/c]"+trigPath;
1624 PtBarrel_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1625 h = PtBarrel_L1->
getTH1();
1628 histoname = labelname+
"_l1ObjPtEndcap";
1629 title = labelname+
"_l1ObjPtEndcap;L1 Pt[GeV/c]"+trigPath;
1630 PtEndcap_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1631 h = PtEndcap_L1->
getTH1();
1634 histoname = labelname+
"_l1ObjPtForward";
1635 title = labelname+
"_l1ObjPtForward;L1 Pt[GeV/c]"+trigPath;
1636 PtForward_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1637 h = PtForward_L1->
getTH1();
1640 histoname = labelname+
"_l1ObjEta";
1641 title = labelname+
"_l1ObjEta;L1 #eta"+trigPath;
1642 Eta_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
1646 histoname = labelname+
"_l1ObjPhi";
1647 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
1648 Phi_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
1652 histoname = labelname+
"_l1ObjEtaPhi";
1653 title = labelname+
"_l1ObjEtaPhi;L1 #eta;L1 #Phi"+trigPath;
1654 EtaPhi_L1 =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1658 histoname = labelname+
"_hltObjN";
1659 title = labelname+
"_hltObjN;HLT multiplicity"+trigPath;
1660 N_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Nbins_,Nmin_,Nmax_);
1664 histoname = labelname+
"_hltObjPt";
1665 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
1666 Pt_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1670 histoname = labelname+
"_hltObjPtBarrel";
1671 title = labelname+
"_hltObjPtBarrel;HLT Pt[GeV/c]"+trigPath;
1672 PtBarrel_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1673 h = PtBarrel_HLT->
getTH1();
1676 histoname = labelname+
"_hltObjPtEndcap";
1677 title = labelname+
"_hltObjPtEndcap;HLT Pt[GeV/c]"+trigPath;
1678 PtEndcap_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1679 h = PtEndcap_HLT->
getTH1();
1682 histoname = labelname+
"_hltObjPtForward";
1683 title = labelname+
"_hltObjPtForward;HLT Pt[GeV/c]"+trigPath;
1684 PtForward_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1685 h = PtForward_HLT->
getTH1();
1688 histoname = labelname+
"_hltObjEta";
1689 title = labelname+
"_hltObjEta;HLT #eta"+trigPath;
1690 Eta_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
1694 histoname = labelname+
"_hltObjPhi";
1695 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
1696 Phi_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
1700 histoname = labelname+
"_hltObjEtaPhi";
1701 title = labelname+
"_hltObjEtaPhi;HLT #eta;HLT #Phi"+trigPath;
1702 EtaPhi_HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
1703 h = EtaPhi_HLT->
getTH1();
1706 histoname = labelname+
"_l1HLTPtResolution";
1707 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
1708 PtResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1709 h = PtResolution_L1HLT->
getTH1();
1712 histoname = labelname+
"_l1HLTEtaResolution";
1713 title = labelname+
"_l1HLTEtaResolution;(#eta(L1)-#eta(HLT))/#eta(L1)"+trigPath;
1714 EtaResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1715 h = EtaResolution_L1HLT->
getTH1();
1718 histoname = labelname+
"_l1HLTPhiResolution";
1719 title = labelname+
"_l1HLTPhiResolution;(#Phi(L1)-#Phi(HLT))/#Phi(L1)"+trigPath;
1720 PhiResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1721 h = PhiResolution_L1HLT->
getTH1();
1724 histoname = labelname+
"_l1HLTPtCorrelation";
1725 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
1726 PtCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1727 h = PtCorrelation_L1HLT->
getTH1();
1730 histoname = labelname+
"_l1HLTEtaCorrelation";
1731 title = labelname+
"_l1HLTEtaCorrelation;#eta(L1);#eta(HLT)"+trigPath;
1732 EtaCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
1733 h = EtaCorrelation_L1HLT->
getTH1();
1736 histoname = labelname+
"_l1HLTPhiCorrelation";
1737 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
1738 PhiCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1739 h = PhiCorrelation_L1HLT->
getTH1();
1743 histoname = labelname+
"_hltRecObjPtResolution";
1744 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
1745 PtResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1746 h = PtResolution_HLTRecObj->
getTH1();
1749 histoname = labelname+
"_hltRecObjEtaResolution";
1750 title = labelname+
"_hltRecObjEtaResolution;(#eta(HLT)-#eta(Reco))/#eta(HLT)"+trigPath;
1751 EtaResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1752 h = EtaResolution_HLTRecObj->
getTH1();
1755 histoname = labelname+
"_hltRecObjPhiResolution";
1756 title = labelname+
"_hltRecObjPhiResolution;(#Phi(HLT)-#Phi(Reco))/#Phi(HLT)"+trigPath;
1757 PhiResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1758 h = PhiResolution_HLTRecObj->
getTH1();
1762 histoname = labelname+
"_hltRecObjPtCorrelation";
1763 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
1764 PtCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1765 h = PtCorrelation_HLTRecObj->
getTH1();
1768 histoname = labelname+
"_hltRecObjEtaCorrelation";
1769 title = labelname+
"_hltRecObjEtaCorrelation;#eta(HLT);#eta(Reco)"+trigPath;
1770 EtaCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
1771 h = EtaCorrelation_HLTRecObj->
getTH1();
1774 histoname = labelname+
"_hltRecObjPhiCorrelation";
1775 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
1776 PhiCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1777 h = PhiCorrelation_HLTRecObj->
getTH1();
1780 if((
v->getTriggerType().compare(
"DiJet_Trigger") == 0))
1782 histoname = labelname+
"_RecObjAveragePt";
1783 title = labelname+
"_RecObjAveragePt;Reco Average Pt[GeV/c]"+trigPath;
1784 jetAveragePt =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1785 h = jetAveragePt->
getTH1();
1788 histoname = labelname+
"_RecObjAverageEta";
1789 title = labelname+
"_RecObjAverageEta;Reco Average #eta"+trigPath;
1790 jetAverageEta =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
1791 h = jetAverageEta->
getTH1();
1794 histoname = labelname+
"_RecObjPhiDifference";
1795 title = labelname+
"_RecObjPhiDifference;Reco #Delta#Phi"+trigPath;
1796 jetPhiDifference =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
1797 h = jetPhiDifference->
getTH1();
1800 histoname = labelname+
"_hltObjAveragePt";
1801 title = labelname+
"_hltObjAveragePt;HLT Average Pt[GeV/c]"+trigPath;
1802 hltAveragePt =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1803 h = hltAveragePt->
getTH1();
1806 histoname = labelname+
"_hltObjAverageEta";
1807 title = labelname+
"_hltObjAverageEta;HLT Average #eta"+trigPath;
1808 hltAverageEta =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
1809 h = hltAverageEta->
getTH1();
1812 histoname = labelname+
"_hltObjPhiDifference";
1813 title = labelname+
"_hltObjPhiDifference;Reco #Delta#Phi"+trigPath;
1814 hltPhiDifference =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
1815 h = hltPhiDifference->
getTH1();
1825 histoname = labelname+
"_recObjPt";
1826 title = labelname+
"_recObjPt;Reco Pt[GeV/c]"+trigPath;
1827 Pt =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1832 histoname = labelname+
"_recObjPhi";
1833 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
1834 Phi =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
1838 histoname = labelname+
"_l1ObjPt";
1839 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
1840 Pt_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1845 histoname = labelname+
"_l1ObjPhi";
1846 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
1847 Phi_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
1852 histoname = labelname+
"_hltObjPt";
1853 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
1854 Pt_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
1859 histoname = labelname+
"_hltObjPhi";
1860 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
1861 Phi_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
1866 histoname = labelname+
"_l1HLTPtResolution";
1867 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
1868 PtResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1869 h = PtResolution_L1HLT->
getTH1();
1873 histoname = labelname+
"_l1HLTPhiResolution";
1874 title = labelname+
"_l1HLTPhiResolution;(#Phi(L1)-#Phi(HLT))/#Phi(L1)"+trigPath;
1875 PhiResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1876 h = PhiResolution_L1HLT->
getTH1();
1881 histoname = labelname+
"_l1HLTPtCorrelation";
1882 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
1883 PtCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1884 h = PtCorrelation_L1HLT->
getTH1();
1888 histoname = labelname+
"_l1HLTPhiCorrelation";
1889 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
1890 PhiCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1891 h = PhiCorrelation_L1HLT->
getTH1();
1895 histoname = labelname+
"_hltRecObjPtResolution";
1896 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
1897 PtResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1898 h = PtResolution_HLTRecObj->
getTH1();
1902 histoname = labelname+
"_hltRecObjPhiResolution";
1903 title = labelname+
"_hltRecObjPhiResolution;(#Phi(HLT)-#Phi(Reco))/#Phi(HLT)"+trigPath;
1904 PhiResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
1905 h = PhiResolution_HLTRecObj->
getTH1();
1910 histoname = labelname+
"_hltRecObjPtCorrelation";
1911 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
1912 PtCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
1913 h = PtCorrelation_HLTRecObj->
getTH1();
1917 histoname = labelname+
"_hltRecObjPhiCorrelation";
1918 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
1919 PhiCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
1920 h = PhiCorrelation_HLTRecObj->
getTH1();
1926 v->setHistos( N, Pt, PtBarrel, PtEndcap, PtForward, Eta, Phi, EtaPhi,
1927 N_L1, Pt_L1, PtBarrel_L1, PtEndcap_L1, PtForward_L1, Eta_L1, Phi_L1, EtaPhi_L1,
1928 N_HLT, Pt_HLT, PtBarrel_HLT, PtEndcap_HLT, PtForward_HLT, Eta_HLT, Phi_HLT, EtaPhi_HLT,
1929 PtResolution_L1HLT, EtaResolution_L1HLT,PhiResolution_L1HLT,
1930 PtResolution_HLTRecObj,EtaResolution_HLTRecObj,PhiResolution_HLTRecObj,
1931 PtCorrelation_L1HLT,EtaCorrelation_L1HLT,PhiCorrelation_L1HLT,
1932 PtCorrelation_HLTRecObj,EtaCorrelation_HLTRecObj,PhiCorrelation_HLTRecObj,
1933 jetAveragePt, jetAverageEta, jetPhiDifference, hltAveragePt, hltAverageEta, hltPhiDifference,
1934 dummy, dummy, dummy);
1949 double PtMax_ = 200.;
1950 double EtaMin_ = -5.;
1951 double EtaMax_ = 5.;
1952 double PhiMin_ = -3.14159;
1953 double PhiMax_ = 3.14159;
1954 double ResMin_ = -1.5;
1955 double ResMax_ = 1.5;
1957 std::string dirName =
dirname_ +
"/MonitorAllTriggersWrtMuonTrigger/";
1960 std::string subdirName = dirName +
v->getPath();
1961 std::string trigPath =
"("+
v->getPath()+
")";
1966 *N_L1, *Pt_L1, *PtBarrel_L1, *PtEndcap_L1, *PtForward_L1, *Eta_L1, *Phi_L1, *EtaPhi_L1,
1967 *N_HLT, *Pt_HLT, *PtBarrel_HLT, *PtEndcap_HLT, *PtForward_HLT, *Eta_HLT, *Phi_HLT, *EtaPhi_HLT,
1968 *PtResolution_L1HLT, *EtaResolution_L1HLT,*PhiResolution_L1HLT,
1969 *PtResolution_HLTRecObj, *EtaResolution_HLTRecObj,*PhiResolution_HLTRecObj,
1970 *PtCorrelation_L1HLT,*EtaCorrelation_L1HLT,*PhiCorrelation_L1HLT,
1971 *PtCorrelation_HLTRecObj,*EtaCorrelation_HLTRecObj,*PhiCorrelation_HLTRecObj,
1972 *jetAveragePt, *jetAverageEta, *jetPhiDifference, *hltAveragePt, *hltAverageEta, *hltPhiDifference;
2001 PtResolution_L1HLT =
dbe->
bookFloat(
"PtResolution_L1HLT");
2002 EtaResolution_L1HLT =
dbe->
bookFloat(
"EtaResolution_L1HLT");
2003 PhiResolution_L1HLT =
dbe->
bookFloat(
"PhiResolution_L1HLT");
2004 PtResolution_HLTRecObj =
dbe->
bookFloat(
"PtResolution_HLTRecObj");
2005 EtaResolution_HLTRecObj =
dbe->
bookFloat(
"EtaResolution_HLTRecObj");
2006 PhiResolution_HLTRecObj =
dbe->
bookFloat(
"PhiResolution_HLTRecObj");
2007 PtCorrelation_L1HLT =
dbe->
bookFloat(
"PtCorrelation_L1HLT");
2008 EtaCorrelation_L1HLT =
dbe->
bookFloat(
"EtaCorrelation_L1HLT");
2009 PhiCorrelation_L1HLT =
dbe->
bookFloat(
"PhiCorrelation_L1HLT");
2010 PtCorrelation_HLTRecObj =
dbe->
bookFloat(
"PtCorrelation_HLTRecObj");
2011 EtaCorrelation_HLTRecObj =
dbe->
bookFloat(
"EtaCorrelation_HLTRecObj");
2012 PhiCorrelation_HLTRecObj =
dbe->
bookFloat(
"PhiCorrelation_HLTRecObj");
2020 std::string labelname(
"ME");
2021 std::string histoname(labelname+
"");
2022 std::string
title(labelname+
"");
2026 histoname = labelname+
"_recObjN";
2027 title = labelname+
"_recObjN;Reco multiplicity()"+trigPath;
2028 N =
dbe->
book1D(histoname.c_str(),
title.c_str(),Nbins_,Nmin_,Nmax_);
2032 histoname = labelname+
"_recObjPt";
2033 title = labelname+
"_recObjPt; Reco Pt[GeV/c]"+trigPath;
2034 Pt =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2038 histoname = labelname+
"_recObjPtBarrel";
2039 title = labelname+
"_recObjPtBarrel;Reco Pt[GeV/c]"+trigPath;
2040 PtBarrel =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2044 histoname = labelname+
"_recObjPtEndcap";
2045 title = labelname+
"_recObjPtEndcap;Reco Pt[GeV/c]"+trigPath;
2046 PtEndcap =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2050 histoname = labelname+
"_recObjPtForward";
2051 title = labelname+
"_recObjPtForward;Reco Pt[GeV/c]"+trigPath;
2052 PtForward =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2056 histoname = labelname+
"_recObjEta";
2057 title = labelname+
"_recObjEta;Reco #eta"+trigPath;
2058 Eta =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
2062 histoname = labelname+
"_recObjPhi";
2063 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
2064 Phi =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
2068 histoname = labelname+
"_recObjEtaPhi";
2069 title = labelname+
"_recObjEtaPhi;Reco #eta;Reco #Phi"+trigPath;
2070 EtaPhi =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2075 histoname = labelname+
"_l1ObjN";
2076 title = labelname+
"_l1ObjN;L1 multiplicity"+trigPath;
2077 N_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Nbins_,Nmin_,Nmax_);
2081 histoname = labelname+
"_l1ObjPt";
2082 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
2083 Pt_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2087 histoname = labelname+
"_l1ObjPtBarrel";
2088 title = labelname+
"_l1ObjPtBarrel;L1 Pt[GeV/c]"+trigPath;
2089 PtBarrel_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2090 h = PtBarrel_L1->
getTH1();
2093 histoname = labelname+
"_l1ObjPtEndcap";
2094 title = labelname+
"_l1ObjPtEndcap;L1 Pt[GeV/c]"+trigPath;
2095 PtEndcap_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2096 h = PtEndcap_L1->
getTH1();
2099 histoname = labelname+
"_l1ObjPtForward";
2100 title = labelname+
"_l1ObjPtForward;L1 Pt[GeV/c]"+trigPath;
2101 PtForward_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2102 h = PtForward_L1->
getTH1();
2105 histoname = labelname+
"_l1ObjEta";
2106 title = labelname+
"_l1ObjEta;L1 #eta"+trigPath;
2107 Eta_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
2111 histoname = labelname+
"_l1ObjPhi";
2112 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
2113 Phi_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
2117 histoname = labelname+
"_l1ObjEtaPhi";
2118 title = labelname+
"_l1ObjEtaPhi;L1 #eta;L1 #Phi"+trigPath;
2119 EtaPhi_L1 =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2123 histoname = labelname+
"_hltObjN";
2124 title = labelname+
"_hltObjN;HLT multiplicity"+trigPath;
2125 N_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Nbins_,Nmin_,Nmax_);
2129 histoname = labelname+
"_hltObjPt";
2130 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
2131 Pt_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2135 histoname = labelname+
"_hltObjPtBarrel";
2136 title = labelname+
"_hltObjPtBarrel;HLT Pt[GeV/c]"+trigPath;
2137 PtBarrel_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2138 h = PtBarrel_HLT->
getTH1();
2141 histoname = labelname+
"_hltObjPtEndcap";
2142 title = labelname+
"_hltObjPtEndcap;HLT Pt[GeV/c]"+trigPath;
2143 PtEndcap_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2144 h = PtEndcap_HLT->
getTH1();
2147 histoname = labelname+
"_hltObjPtForward";
2148 title = labelname+
"_hltObjPtForward;HLT Pt[GeV/c]"+trigPath;
2149 PtForward_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2150 h = PtForward_HLT->
getTH1();
2153 histoname = labelname+
"_hltObjEta";
2154 title = labelname+
"_hltObjEta;HLT #eta"+trigPath;
2155 Eta_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
2159 histoname = labelname+
"_hltObjPhi";
2160 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
2161 Phi_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
2165 histoname = labelname+
"_hltObjEtaPhi";
2166 title = labelname+
"_hltObjEtaPhi;HLT #eta;HLT #Phi"+trigPath;
2167 EtaPhi_HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Phibins_,PhiMin_,PhiMax_);
2168 h = EtaPhi_HLT->
getTH1();
2171 histoname = labelname+
"_l1HLTPtResolution";
2172 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
2173 PtResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2174 h = PtResolution_L1HLT->
getTH1();
2177 histoname = labelname+
"_l1HLTEtaResolution";
2178 title = labelname+
"_l1HLTEtaResolution;(#eta(L1)-#eta(HLT))/#eta(L1)"+trigPath;
2179 EtaResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2180 h = EtaResolution_L1HLT->
getTH1();
2183 histoname = labelname+
"_l1HLTPhiResolution";
2184 title = labelname+
"_l1HLTPhiResolution;(#Phi(L1)-#Phi(HLT))/#Phi(L1)"+trigPath;
2185 PhiResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2186 h = PhiResolution_L1HLT->
getTH1();
2189 histoname = labelname+
"_l1HLTPtCorrelation";
2190 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
2191 PtCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2192 h = PtCorrelation_L1HLT->
getTH1();
2195 histoname = labelname+
"_l1HLTEtaCorrelation";
2196 title = labelname+
"_l1HLTEtaCorrelation;#eta(L1);#eta(HLT)"+trigPath;
2197 EtaCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
2198 h = EtaCorrelation_L1HLT->
getTH1();
2201 histoname = labelname+
"_l1HLTPhiCorrelation";
2202 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
2203 PhiCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
2204 h = PhiCorrelation_L1HLT->
getTH1();
2208 histoname = labelname+
"_hltRecObjPtResolution";
2209 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
2210 PtResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2211 h = PtResolution_HLTRecObj->
getTH1();
2214 histoname = labelname+
"_hltRecObjEtaResolution";
2215 title = labelname+
"_hltRecObjEtaResolution;(#eta(HLT)-#eta(Reco))/#eta(HLT)"+trigPath;
2216 EtaResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2217 h = EtaResolution_HLTRecObj->
getTH1();
2220 histoname = labelname+
"_hltRecObjPhiResolution";
2221 title = labelname+
"_hltRecObjPhiResolution;(#Phi(HLT)-#Phi(Reco))/#Phi(HLT)"+trigPath;
2222 PhiResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2223 h = PhiResolution_HLTRecObj->
getTH1();
2227 histoname = labelname+
"_hltRecObjPtCorrelation";
2228 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
2229 PtCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2230 h = PtCorrelation_HLTRecObj->
getTH1();
2233 histoname = labelname+
"_hltRecObjEtaCorrelation";
2234 title = labelname+
"_hltRecObjEtaCorrelation;#eta(HLT);#eta(Reco)"+trigPath;
2235 EtaCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_,Etabins_,EtaMin_,EtaMax_);
2236 h = EtaCorrelation_HLTRecObj->
getTH1();
2239 histoname = labelname+
"_hltRecObjPhiCorrelation";
2240 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
2241 PhiCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
2242 h = PhiCorrelation_HLTRecObj->
getTH1();
2245 if((
v->getTriggerType().compare(
"DiJet_Trigger") == 0))
2247 histoname = labelname+
"_RecObjAveragePt";
2248 title = labelname+
"_RecObjAveragePt;Reco Average Pt[GeV/c]"+trigPath;
2249 jetAveragePt =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2250 h = jetAveragePt->
getTH1();
2253 histoname = labelname+
"_RecObjAverageEta";
2254 title = labelname+
"_RecObjAverageEta;Reco Average #eta"+trigPath;
2255 jetAverageEta =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
2256 h = jetAverageEta->
getTH1();
2259 histoname = labelname+
"_RecObjPhiDifference";
2260 title = labelname+
"_RecObjPhiDifference;Reco #Delta#Phi"+trigPath;
2261 jetPhiDifference =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
2262 h = jetPhiDifference->
getTH1();
2265 histoname = labelname+
"_hltObjAveragePt";
2266 title = labelname+
"_hltObjAveragePt;HLT Average Pt[GeV/c]"+trigPath;
2267 hltAveragePt =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2268 h = hltAveragePt->
getTH1();
2271 histoname = labelname+
"_hltObjAverageEta";
2272 title = labelname+
"_hltObjAverageEta;HLT Average #eta"+trigPath;
2273 hltAverageEta =
dbe->
book1D(histoname.c_str(),
title.c_str(),Etabins_,EtaMin_,EtaMax_);
2274 h = hltAverageEta->
getTH1();
2277 histoname = labelname+
"_hltObjPhiDifference";
2278 title = labelname+
"_hltObjPhiDifference;Reco #Delta#Phi"+trigPath;
2279 hltPhiDifference =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
2280 h = hltPhiDifference->
getTH1();
2290 histoname = labelname+
"_recObjPt";
2291 title = labelname+
"_recObjPt;Reco Pt[GeV/c]"+trigPath;
2292 Pt =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2297 histoname = labelname+
"_recObjPhi";
2298 title = labelname+
"_recObjPhi;Reco #Phi"+trigPath;
2299 Phi =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
2303 histoname = labelname+
"_l1ObjPt";
2304 title = labelname+
"_l1ObjPt;L1 Pt[GeV/c]"+trigPath;
2305 Pt_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2310 histoname = labelname+
"_l1ObjPhi";
2311 title = labelname+
"_l1ObjPhi;L1 #Phi"+trigPath;
2312 Phi_L1 =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
2317 histoname = labelname+
"_hltObjPt";
2318 title = labelname+
"_hltObjPt;HLT Pt[GeV/c]"+trigPath;
2319 Pt_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_);
2324 histoname = labelname+
"_hltObjPhi";
2325 title = labelname+
"_hltObjPhi;HLT #Phi"+trigPath;
2326 Phi_HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_);
2331 histoname = labelname+
"_l1HLTPtResolution";
2332 title = labelname+
"_l1HLTPtResolution;(Pt(L1)-Pt(HLT))/Pt(L1)"+trigPath;
2333 PtResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2334 h = PtResolution_L1HLT->
getTH1();
2338 histoname = labelname+
"_l1HLTPhiResolution";
2339 title = labelname+
"_l1HLTPhiResolution;(#Phi(L1)-#Phi(HLT))/#Phi(L1)"+trigPath;
2340 PhiResolution_L1HLT =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2341 h = PhiResolution_L1HLT->
getTH1();
2346 histoname = labelname+
"_l1HLTPtCorrelation";
2347 title = labelname+
"_l1HLTPtCorrelation;Pt(L1)[GeV/c];Pt(HLT)[GeV/c]"+trigPath;
2348 PtCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2349 h = PtCorrelation_L1HLT->
getTH1();
2353 histoname = labelname+
"_l1HLTPhiCorrelation";
2354 title = labelname+
"_l1HLTPhiCorrelation;#Phi(L1);#Phi(HLT)"+trigPath;
2355 PhiCorrelation_L1HLT =
dbe->
book2D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
2356 h = PhiCorrelation_L1HLT->
getTH1();
2360 histoname = labelname+
"_hltRecObjPtResolution";
2361 title = labelname+
"_hltRecObjPtResolution;(Pt(HLT)-Pt(Reco))/Pt(HLT)"+trigPath;
2362 PtResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2363 h = PtResolution_HLTRecObj->
getTH1();
2367 histoname = labelname+
"_hltRecObjPhiResolution";
2368 title = labelname+
"_hltRecObjPhiResolution;(#Phi(HLT)-#Phi(Reco))/#Phi(HLT)"+trigPath;
2369 PhiResolution_HLTRecObj =
dbe->
book1D(histoname.c_str(),
title.c_str(),Resbins_,ResMin_,ResMax_);
2370 h = PhiResolution_HLTRecObj->
getTH1();
2375 histoname = labelname+
"_hltRecObjPtCorrelation";
2376 title = labelname+
"_hltRecObjPtCorrelation;Pt(HLT)[GeV/c];Pt(Reco)[GeV/c]"+trigPath;
2377 PtCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Ptbins_,PtMin_,PtMax_,Ptbins_,PtMin_,PtMax_);
2378 h = PtCorrelation_HLTRecObj->
getTH1();
2382 histoname = labelname+
"_hltRecObjPhiCorrelation";
2383 title = labelname+
"_hltRecObjPhiCorrelation;#Phi(HLT);#Phi(Reco)"+trigPath;
2384 PhiCorrelation_HLTRecObj =
dbe->
book2D(histoname.c_str(),
title.c_str(),Phibins_,PhiMin_,PhiMax_,Phibins_,PhiMin_,PhiMax_);
2385 h = PhiCorrelation_HLTRecObj->
getTH1();
2390 v->setHistos( N, Pt, PtBarrel, PtEndcap, PtForward, Eta, Phi, EtaPhi,
2391 N_L1, Pt_L1, PtBarrel_L1, PtEndcap_L1, PtForward_L1, Eta_L1, Phi_L1, EtaPhi_L1,
2392 N_HLT, Pt_HLT, PtBarrel_HLT, PtEndcap_HLT, PtForward_HLT, Eta_HLT, Phi_HLT, EtaPhi_HLT,
2393 PtResolution_L1HLT, EtaResolution_L1HLT,PhiResolution_L1HLT,
2394 PtResolution_HLTRecObj,EtaResolution_HLTRecObj,PhiResolution_HLTRecObj,
2395 PtCorrelation_L1HLT,EtaCorrelation_L1HLT,PhiCorrelation_L1HLT,
2396 PtCorrelation_HLTRecObj,EtaCorrelation_HLTRecObj,PhiCorrelation_HLTRecObj,
2397 jetAveragePt, jetAverageEta, jetPhiDifference, hltAveragePt, hltAverageEta, hltPhiDifference,
2398 dummy, dummy, dummy);
2410 double PtMax_ = 200.;
2411 double EtaMin_ = -5.;
2412 double EtaMax_ = 5.;
2413 double PhiMin_ = -3.14159;
2414 double PhiMax_ = 3.14159;
2416 std::string dirName1 =
dirname_ +
"/RelativeTriggerEff/";
2418 std::string labelname(
"ME") ;
2419 std::string subdirName = dirName1 +
v->getPath() +
"_wrt_" +
v->getDenomPath();
2421 std::string histoname(labelname+
"");
2422 std::string
title(labelname+
"");
2427 if((
v->getObjectType() ==
trigger::TriggerJet) && (
v->getTriggerType().compare(
"SingleJet_Trigger") == 0))
2429 histoname = labelname+
"_NumeratorPt";
2430 title = labelname+
"NumeratorPt;Calo Pt[GeV/c]";
2432 TH1 * h = NumeratorPt->
getTH1();
2435 histoname = labelname+
"_NumeratorPtBarrel";
2436 title = labelname+
"NumeratorPtBarrel;Calo Pt[GeV/c] ";
2438 h = NumeratorPtBarrel->
getTH1();
2441 histoname = labelname+
"_NumeratorPtEndcap";
2442 title = labelname+
"NumeratorPtEndcap;Calo Pt[GeV/c]";
2444 h = NumeratorPtEndcap->
getTH1();
2447 histoname = labelname+
"_NumeratorPtForward";
2448 title = labelname+
"NumeratorPtForward;Calo Pt[GeV/c]";
2450 h = NumeratorPtForward->
getTH1();
2453 histoname = labelname+
"_NumeratorEta";
2454 title = labelname+
"NumeratorEta;Calo #eta ";
2456 h = NumeratorEta->
getTH1();
2459 histoname = labelname+
"_NumeratorPhi";
2460 title = labelname+
"NumeratorPhi;Calo #Phi";
2462 h = NumeratorPhi->
getTH1();
2465 histoname = labelname+
"_NumeratorEtaPhi";
2466 title = labelname+
"NumeratorEtaPhi;Calo #eta;Calo #Phi";
2468 h = NumeratorEtaPhi->
getTH1();
2471 histoname = labelname+
"_DenominatorPt";
2472 title = labelname+
"DenominatorPt;Calo Pt[GeV/c]";
2474 h = DenominatorPt->
getTH1();
2477 histoname = labelname+
"_DenominatorPtBarrel";
2478 title = labelname+
"DenominatorPtBarrel;Calo Pt[GeV/c]";
2480 h = DenominatorPtBarrel->
getTH1();
2483 histoname = labelname+
"_DenominatorPtEndcap";
2484 title = labelname+
"DenominatorPtEndcap;Calo Pt[GeV/c]";
2486 h = DenominatorPtEndcap->
getTH1();
2489 histoname = labelname+
"_DenominatorPtForward";
2490 title = labelname+
"DenominatorPtForward;Calo Pt[GeV/c] ";
2492 h = DenominatorPtForward->
getTH1();
2495 histoname = labelname+
"_DenominatorEta";
2496 title = labelname+
"DenominatorEta;Calo #eta ";
2498 h = DenominatorEta->
getTH1();
2501 histoname = labelname+
"_DenominatorPhi";
2502 title = labelname+
"DenominatorPhi;Calo #Phi";
2504 h = DenominatorPhi->
getTH1();
2507 histoname = labelname+
"_DenominatorEtaPhi";
2508 title = labelname+
"DenominatorEtaPhi;Calo #eta; Calo #Phi";
2510 h = DenominatorEtaPhi->
getTH1();
2514 v->setEffHistos( NumeratorPt, NumeratorPtBarrel, NumeratorPtEndcap, NumeratorPtForward, NumeratorEta, NumeratorPhi, NumeratorEtaPhi,
2515 DenominatorPt, DenominatorPtBarrel, DenominatorPtEndcap, DenominatorPtForward, DenominatorEta, DenominatorPhi, DenominatorEtaPhi);
2518 if((
v->getObjectType() ==
trigger::TriggerJet) && (
v->getTriggerType().compare(
"DiJet_Trigger") == 0))
2521 histoname = labelname+
"_NumeratorAvrgPt";
2522 title = labelname+
"NumeratorAvrgPt;Calo Pt[GeV/c]";
2524 TH1 * h = NumeratorPt->
getTH1();
2527 histoname = labelname+
"_NumeratorAvrgEta";
2528 title = labelname+
"NumeratorAvrgEta;Calo #eta";
2530 h = NumeratorEta->
getTH1();
2533 histoname = labelname+
"_DenominatorAvrgPt";
2534 title = labelname+
"DenominatorAvrgPt;Calo Pt[GeV/c] ";
2536 h = DenominatorPt->
getTH1();
2539 histoname = labelname+
"_DenominatorAvrgEta";
2540 title = labelname+
"DenominatorAvrgEta;Calo #eta";
2542 h = DenominatorEta->
getTH1();
2545 v->setEffHistos( NumeratorPt, dummy, dummy, dummy, NumeratorEta, dummy, dummy,
2546 DenominatorPt, dummy, dummy, dummy, DenominatorEta, dummy, dummy);
2553 histoname = labelname+
"_NumeratorPt";
2554 title = labelname+
"NumeratorPt;Calo Pt[GeV/c]";
2556 TH1 * h = NumeratorPt->
getTH1();
2560 histoname = labelname+
"_NumeratorPhi";
2561 title = labelname+
"NumeratorPhi;Calo #Phi";
2563 h = NumeratorPhi->
getTH1();
2567 histoname = labelname+
"_DenominatorPt";
2568 title = labelname+
"DenominatorPt;Calo Pt[GeV/c]";
2570 h = DenominatorPt->
getTH1();
2574 histoname = labelname+
"_DenominatorPhi";
2575 title = labelname+
"DenominatorPhi;Calo #Phi";
2577 h = DenominatorPhi->
getTH1();
2581 v->setEffHistos( NumeratorPt, dummy, dummy, dummy, dummy, NumeratorPhi, dummy,
2582 DenominatorPt, dummy, dummy, dummy, dummy, DenominatorPhi, dummy);
2589 std::string dirName2 =
dirname_ +
"/EffWrtMuonTrigger/";
2591 std::string labelname(
"ME") ;
2592 std::string subdirName = dirName2 +
v->getPath();
2593 std::string histoname(labelname+
"");
2594 std::string
title(labelname+
"");
2599 if((
v->getObjectType() ==
trigger::TriggerJet) && (
v->getTriggerType().compare(
"SingleJet_Trigger") == 0))
2601 histoname = labelname+
"_NumeratorPt";
2602 title = labelname+
"NumeratorPt;Pt[GeV/c]";
2604 TH1 * h = NumeratorPt->
getTH1();
2607 histoname = labelname+
"_NumeratorPtBarrel";
2608 title = labelname+
"NumeratorPtBarrel;Calo Pt[GeV/c]";
2610 h = NumeratorPtBarrel->
getTH1();
2613 histoname = labelname+
"_NumeratorPtEndcap";
2614 title = labelname+
"NumeratorPtEndcap;Calo Pt[GeV/c]";
2616 h = NumeratorPtEndcap->
getTH1();
2619 histoname = labelname+
"_NumeratorPtForward";
2620 title = labelname+
"NumeratorPtForward;Calo Pt[GeV/c]";
2622 h = NumeratorPtForward->
getTH1();
2625 histoname = labelname+
"_NumeratorEta";
2626 title = labelname+
"NumeratorEta;Calo #eta ";
2628 h = NumeratorEta->
getTH1();
2631 histoname = labelname+
"_NumeratorPhi";
2632 title = labelname+
"NumeratorPhi;Calo #Phi";
2634 h = NumeratorPhi->
getTH1();
2637 histoname = labelname+
"_NumeratorEtaPhi";
2638 title = labelname+
"NumeratorEtaPhi;Calo #eta;Calo #Phi";
2640 h = NumeratorEtaPhi->
getTH1();
2643 histoname = labelname+
"_DenominatorPt";
2644 title = labelname+
"DenominatorPt;Calo Pt[GeV/c]";
2646 h = DenominatorPt->
getTH1();
2649 histoname = labelname+
"_DenominatorPtBarrel";
2650 title = labelname+
"DenominatorPtBarrel;Calo Pt[GeV/c]";
2652 h = DenominatorPtBarrel->
getTH1();
2655 histoname = labelname+
"_DenominatorPtEndcap";
2656 title = labelname+
"DenominatorPtEndcap;Calo Pt[GeV/c]";
2658 h = DenominatorPtEndcap->
getTH1();
2661 histoname = labelname+
"_DenominatorPtForward";
2662 title = labelname+
"DenominatorPtForward;Calo Pt[GeV/c] ";
2664 h = DenominatorPtForward->
getTH1();
2667 histoname = labelname+
"_DenominatorEta";
2668 title = labelname+
"DenominatorEta;Calo #eta";
2670 h = DenominatorEta->
getTH1();
2673 histoname = labelname+
"_DenominatorPhi";
2674 title = labelname+
"DenominatorPhi;Calo #Phi";
2676 h = DenominatorPhi->
getTH1();
2679 histoname = labelname+
"_DenominatorEtaPhi";
2680 title = labelname+
"DenominatorEtaPhi;Calo #eta (IC5);Calo #Phi ";
2682 h = DenominatorEtaPhi->
getTH1();
2686 v->setEffHistos( NumeratorPt, NumeratorPtBarrel, NumeratorPtEndcap, NumeratorPtForward, NumeratorEta, NumeratorPhi, NumeratorEtaPhi,
2687 DenominatorPt, DenominatorPtBarrel, DenominatorPtEndcap, DenominatorPtForward, DenominatorEta, DenominatorPhi, DenominatorEtaPhi);
2690 if((
v->getObjectType() ==
trigger::TriggerJet) && (
v->getTriggerType().compare(
"DiJet_Trigger") == 0))
2692 histoname = labelname+
"_NumeratorAvrgPt";
2693 title = labelname+
"NumeratorAvrgPt;Calo Pt[GeV/c] ";
2695 TH1 * h = NumeratorPt->
getTH1();
2698 histoname = labelname+
"_NumeratorAvrgEta";
2699 title = labelname+
"NumeratorAvrgEta;Calo #eta";
2701 h = NumeratorEta->
getTH1();
2704 histoname = labelname+
"_DenominatorAvrgPt";
2705 title = labelname+
"DenominatorAvrgPt;Calo Pt[GeV/c]";
2707 h = DenominatorPt->
getTH1();
2710 histoname = labelname+
"_DenominatorAvrgEta";
2711 title = labelname+
"DenominatorAvrgEta;Calo #eta ";
2713 h = DenominatorEta->
getTH1();
2716 v->setEffHistos( NumeratorPt, dummy, dummy, dummy, NumeratorEta, dummy, dummy,
2717 DenominatorPt, dummy, dummy, dummy, DenominatorEta, dummy, dummy);
2723 histoname = labelname+
"_NumeratorPt";
2724 title = labelname+
"NumeratorPt;Calo Pt[GeV/c]";
2726 TH1 * h = NumeratorPt->
getTH1();
2730 histoname = labelname+
"_NumeratorPhi";
2731 title = labelname+
"NumeratorPhi;Calo #Phi";
2733 h = NumeratorPhi->
getTH1();
2737 histoname = labelname+
"_DenominatorPt";
2738 title = labelname+
"DenominatorPt;Calo Pt[GeV/c]";
2740 h = DenominatorPt->
getTH1();
2744 histoname = labelname+
"_DenominatorPhi";
2745 title = labelname+
"DenominatorPhi;Calo #Phi";
2747 h = DenominatorPhi->
getTH1();
2751 v->setEffHistos( NumeratorPt, dummy, dummy, dummy, dummy, NumeratorPhi, dummy,
2752 DenominatorPt, dummy, dummy, dummy, dummy, DenominatorPhi, dummy);
2758 std::string dirName3 =
dirname_ +
"/EffWrtMBTrigger/";
2760 std::string labelname(
"ME") ;
2761 std::string subdirName = dirName3 +
v->getPath() ;
2762 std::string histoname(labelname+
"");
2763 std::string
title(labelname+
"");
2767 if((
v->getObjectType() ==
trigger::TriggerJet) && (
v->getTriggerType().compare(
"SingleJet_Trigger") == 0))
2769 histoname = labelname+
"_NumeratorPt";
2770 title = labelname+
"NumeratorPt;Calo Pt[GeV/c] ";
2772 TH1 * h = NumeratorPt->
getTH1();
2775 histoname = labelname+
"_NumeratorPtBarrel";
2776 title = labelname+
"NumeratorPtBarrel;Calo Pt[GeV/c]";
2778 h = NumeratorPtBarrel->
getTH1();
2781 histoname = labelname+
"_NumeratorPtEndcap";
2782 title = labelname+
"NumeratorPtEndcap; Calo Pt[GeV/c] ";
2784 h = NumeratorPtEndcap->
getTH1();
2787 histoname = labelname+
"_NumeratorPtForward";
2788 title = labelname+
"NumeratorPtForward;Calo Pt[GeV/c]";
2790 h = NumeratorPtForward->
getTH1();
2793 histoname = labelname+
"_NumeratorEta";
2794 title = labelname+
"NumeratorEta;Calo #eta ";
2796 h = NumeratorEta->
getTH1();
2799 histoname = labelname+
"_NumeratorPhi";
2800 title = labelname+
"NumeratorPhi;Calo #Phi";
2802 h = NumeratorPhi->
getTH1();
2805 histoname = labelname+
"_NumeratorEtaPhi";
2806 title = labelname+
"NumeratorEtaPhi;Calo #eta;Calo #Phi ";
2808 h = NumeratorEtaPhi->
getTH1();
2811 histoname = labelname+
"_DenominatorPt";
2812 title = labelname+
"DenominatorPt;Calo Pt[GeV/c]";
2814 h = DenominatorPt->
getTH1();
2817 histoname = labelname+
"_DenominatorPtBarrel";
2818 title = labelname+
"DenominatorPtBarrel;Calo Pt[GeV/c]";
2820 h = DenominatorPtBarrel->
getTH1();
2823 histoname = labelname+
"_DenominatorPtEndcap";
2824 title = labelname+
"DenominatorPtEndcap;Calo Pt[GeV/c]";
2826 h = DenominatorPtEndcap->
getTH1();
2829 histoname = labelname+
"_DenominatorPtForward";
2830 title = labelname+
"DenominatorPtForward;Calo Pt[GeV/c]";
2832 h = DenominatorPtForward->
getTH1();
2835 histoname = labelname+
"_DenominatorEta";
2836 title = labelname+
"DenominatorEta;Calo #eta ";
2838 h = DenominatorEta->
getTH1();
2841 histoname = labelname+
"_DenominatorPhi";
2842 title = labelname+
"DenominatorPhi;Calo #Phi";
2844 h = DenominatorPhi->
getTH1();
2847 histoname = labelname+
"_DenominatorEtaPhi";
2848 title = labelname+
"DenominatorEtaPhi;Calo #eta ;Calo #Phi ";
2850 h = DenominatorEtaPhi->
getTH1();
2854 v->setEffHistos( NumeratorPt, NumeratorPtBarrel, NumeratorPtEndcap, NumeratorPtForward, NumeratorEta, NumeratorPhi, NumeratorEtaPhi,
2855 DenominatorPt, DenominatorPtBarrel, DenominatorPtEndcap, DenominatorPtForward, DenominatorEta, DenominatorPhi, DenominatorEtaPhi);
2859 if((
v->getObjectType() ==
trigger::TriggerJet) && (
v->getTriggerType().compare(
"DiJet_Trigger") == 0))
2862 histoname = labelname+
"_NumeratorAvrgPt";
2863 title = labelname+
"NumeratorAvrgPt;Calo Pt[GeV/c] ";
2865 TH1 * h = NumeratorPt->
getTH1();
2868 histoname = labelname+
"_NumeratorAvrgEta";
2869 title = labelname+
"NumeratorAvrgEta;Calo #eta ";
2871 h = NumeratorEta->
getTH1();
2874 histoname = labelname+
"_DenominatorAvrgPt";
2875 title = labelname+
"DenominatorAvrgPt;Calo Pt[GeV/c] ";
2877 h = DenominatorPt->
getTH1();
2880 histoname = labelname+
"_DenominatorAvrgEta";
2881 title = labelname+
"DenominatorAvrgEta;Calo #eta ";
2883 h = DenominatorEta->
getTH1();
2886 v->setEffHistos( NumeratorPt, dummy, dummy, dummy, NumeratorEta, dummy, dummy,
2887 DenominatorPt, dummy, dummy, dummy, DenominatorEta, dummy, dummy);
2894 histoname = labelname+
"_NumeratorPt";
2895 title = labelname+
"NumeratorPt;Calo Pt[GeV/c]";
2897 TH1 * h = NumeratorPt->
getTH1();
2901 histoname = labelname+
"_NumeratorPhi";
2902 title = labelname+
"NumeratorPhi;Calo #Phi";
2904 h = NumeratorPhi->
getTH1();
2908 histoname = labelname+
"_DenominatorPt";
2909 title = labelname+
"DenominatorPt;Calo Pt[GeV/c]";
2911 h = DenominatorPt->
getTH1();
2915 histoname = labelname+
"_DenominatorPhi";
2916 title = labelname+
"DenominatorPhi;Calo #Phi";
2918 h = DenominatorPhi->
getTH1();
2924 v->setEffHistos( NumeratorPt, dummy, dummy, dummy, dummy, NumeratorPhi, dummy,
2925 DenominatorPt, dummy, dummy, dummy, dummy, DenominatorPhi, dummy);
2941 double PtMax_ = 200.;
2942 double EtaMin_ = -5.;
2943 double EtaMax_ = 5.;
2944 double PhiMin_ = -3.14159;
2945 double PhiMax_ = 3.14159;
2947 std::string dirName4_ =
dirname_ +
"/TriggerNotFired/";
2954 std::string labelname(
"ME") ;
2955 std::string histoname(labelname+
"");
2956 std::string
title(labelname+
"");
2959 histoname = labelname+
"_TriggerSummary";
2960 title = labelname+
"Summary of trigger levels";
2963 std::vector<std::string> trigger;
2964 trigger.push_back(
"Nevt");
2965 trigger.push_back(
"L1 failed");
2966 trigger.push_back(
"L1 & HLT failed");
2967 trigger.push_back(
"L1 failed but not HLT");
2968 trigger.push_back(
"L1 passed");
2969 trigger.push_back(
"L1 & HLT passed");
2970 trigger.push_back(
"L1 passed but not HLT");
2971 for(
unsigned int i =0;
i < trigger.size();
i++)TriggerSummary->
setBinLabel(
i+1, trigger[
i]);
2973 if((
v->getTriggerType().compare(
"SingleJet_Trigger") == 0))
2975 histoname = labelname+
"_JetPt";
2976 title = labelname+
"Leading jet pT;Pt[GeV/c]";
2978 TH1 * h = JetPt->
getTH1();
2981 histoname = labelname+
"_JetEtaVsPt";
2982 title = labelname+
"Leading jet #eta vs pT;#eta;Pt[GeV/c]";
2984 h = JetEtaVsPt->
getTH1();
2987 histoname = labelname+
"_JetPhiVsPt";
2988 title = labelname+
"Leading jet #Phi vs pT;#Phi;Pt[GeV/c]";
2990 h = JetPhiVsPt->
getTH1();
2995 v->setDgnsHistos( TriggerSummary, dummy, JetPt, JetEtaVsPt, JetPhiVsPt, dummy, dummy, dummy, dummy, dummy, dummy);
2998 if((
v->getTriggerType().compare(
"DiJet_Trigger") == 0))
3000 histoname = labelname+
"_JetSize";
3001 title = labelname+
"Jet Size;multiplicity";
3003 TH1 * h = JetSize->
getTH1();
3007 histoname = labelname+
"_AvergPt";
3008 title = labelname+
"Average Pt;Pt[GeV/c]";
3013 histoname = labelname+
"_AvergEta";
3014 title = labelname+
"Average Eta;#eta";
3019 histoname = labelname+
"_PhiDifference";
3020 title = labelname+
"#Delta#Phi;#Delta#Phi";
3025 histoname = labelname+
"_Pt3Jet";
3026 title = labelname+
"Pt of 3rd Jet;Pt[GeV/c]";
3031 histoname = labelname+
"_Pt12VsPt3Jet";
3032 title = labelname+
"Pt of 3rd Jet vs Average Pt of leading jets;Avergage Pt[GeV/c]; Pt of 3rd Jet [GeV/c]";
3037 histoname = labelname+
"_Pt12VsPhi12";
3038 title = labelname+
"Average Pt of leading jets vs #Delta#Phi between leading jets;Avergage Pt[GeV/c]; #Delta#Phi";
3043 v->setDgnsHistos( TriggerSummary, JetSize, dummy, dummy, dummy, Pt12, Eta12, Phi12, Pt3, Pt12Pt3, Pt12Phi12);
3047 if((
v->getTriggerType().compare(
"MET_Trigger") == 0))
3049 histoname = labelname+
"_MET";
3050 title = labelname+
"MET;Pt[GeV/c]";
3054 v->setDgnsHistos(TriggerSummary, dummy, MET, dummy, dummy, dummy, dummy, dummy,dummy,dummy,dummy);
unsigned int size() const
number of trigger paths in trigger table
PathInfoCollection hltPathsAllWrtMu_
const std::string moduleType(const std::string &module) const
C++ class name of module.
const std::string & triggerName(unsigned int triggerIndex) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
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)
PathInfoCollection hltPathsAllTriggerSummary_
MonitorElement * bookFloat(const char *name)
Book float.
std::vector< std::string > MBTrigPaths_
MonitorElement * correlation_AllWrtMu
PathInfoCollection hltPathsEffWrtMB_
std::vector< std::string > MuonTrigPaths_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
std::vector< std::pair< std::string, std::string > > custompathnamepairs_
PathInfoCollection hltPathsAll_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
MonitorElement * correlation_AllWrtMB
PathInfoCollection hltPathsEffWrtMu_
HLTConfigProvider hltConfig_
MonitorElement * correlation_All
MonitorElement * rate_AllWrtMB
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
MonitorElement * rate_AllWrtMu
void setCurrentFolder(const std::string &fullpath)
MonitorElement * rate_All
PathInfoCollection hltPathsEff_