CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
EfficiencyPlotter Class Reference

#include <EfficiencyPlotter.h>

Inheritance diagram for EfficiencyPlotter:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 EfficiencyPlotter (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~EfficiencyPlotter ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Analyze. More...
 
void beginJob (void)
 BeginJob. More...
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
 
void beginRun (edm::Run const &run, edm::EventSetup const &eSetup)
 
void endJob ()
 Endjob. More...
 
void endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
 DQM Client Diagnostic. More...
 
void endRun (edm::Run const &run, edm::EventSetup const &eSetup)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Attributes

int etaBin
 
double etaMax
 
double etaMin
 
MonitorElementh_eff_eta_TightMu
 
MonitorElementh_eff_hp_eta_TightMu
 
MonitorElementh_eff_phi_TightMu
 
MonitorElementh_eff_pt_detIsoTightMu
 
MonitorElementh_eff_pt_EB_detIsoTightMu
 
MonitorElementh_eff_pt_EB_pfIsodBTightMu
 
MonitorElementh_eff_pt_EB_pfIsoTightMu
 
MonitorElementh_eff_pt_EB_TightMu
 
MonitorElementh_eff_pt_EE_detIsoTightMu
 
MonitorElementh_eff_pt_EE_pfIsodBTightMu
 
MonitorElementh_eff_pt_EE_pfIsoTightMu
 
MonitorElementh_eff_pt_EE_TightMu
 
MonitorElementh_eff_pt_pfIsodBTightMu
 
MonitorElementh_eff_pt_pfIsoTightMu
 
MonitorElementh_eff_pt_TightMu
 
MonitorElementh_eff_vtx_detIsoTightMu
 
MonitorElementh_eff_vtx_EB_detIsoTightMu
 
MonitorElementh_eff_vtx_EB_pfIsodBTightMu
 
MonitorElementh_eff_vtx_EB_pfIsoTightMu
 
MonitorElementh_eff_vtx_EE_detIsoTightMu
 
MonitorElementh_eff_vtx_EE_pfIsodBTightMu
 
MonitorElementh_eff_vtx_EE_pfIsoTightMu
 
MonitorElementh_eff_vtx_pfIsodBTightMu
 
MonitorElementh_eff_vtx_pfIsoTightMu
 
std::string metname
 
int nevents
 
unsigned int nLumiSegs
 
edm::ParameterSet parameters
 
int phiBin
 
double phiMax
 
double phiMin
 
int prescaleFactor
 
int ptBin
 
double ptMax
 
double ptMin
 
int run
 
DQMStoretheDbe
 
int vtxBin
 
double vtxMax
 
double vtxMin
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 26 of file EfficiencyPlotter.h.

Constructor & Destructor Documentation

EfficiencyPlotter::EfficiencyPlotter ( const edm::ParameterSet ps)

Constructor.

Definition at line 29 of file EfficiencyPlotter.cc.

References gather_cfg::cout, cppFunctionSkipper::operator, and Parameters::parameters.

29  {
30 #ifdef DEBUG
31  cout << "EfficiencyPlotter(): Constructor " << endl;
32 #endif
33  parameters = ps;
35 }
edm::ParameterSet parameters
tuple cout
Definition: gather_cfg.py:121
EfficiencyPlotter::~EfficiencyPlotter ( )
virtual

Destructor.

Definition at line 36 of file EfficiencyPlotter.cc.

36 {}

Member Function Documentation

void EfficiencyPlotter::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Analyze.

Implements edm::EDAnalyzer.

Definition at line 179 of file EfficiencyPlotter.cc.

References LogTrace, metname, and nevents.

179  {
180  nevents++;
181  LogTrace(metname)<< "[EfficiencyPlotter]: "<<nevents<<" events";
182 }
#define LogTrace(id)
void EfficiencyPlotter::beginJob ( void  )
protectedvirtual

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 38 of file EfficiencyPlotter.cc.

References gather_cfg::cout, jptDQMConfig_cff::etaMax, jptDQMConfig_cff::etaMin, LogTrace, metname, Parameters::parameters, jptDQMConfig_cff::phiMax, jptDQMConfig_cff::phiMin, jptDQMConfig_cff::ptMax, and PtMinSelector_cfg::ptMin.

38  {
39 #ifdef DEBUG
40  cout << "EfficiencyPlotter::beginJob " << endl;
41 #endif
42 
43  theDbe->setCurrentFolder("Muons/EfficiencyAnalyzer");
44 
45  metname = "EfficiencyAnalyzer";
46  LogTrace(metname)<<"[EfficiencyPlotter] beginJob: Parameters initialization";
47 
48  // efficiency plot
49  etaBin = parameters.getParameter<int>("etaBin");
50  etaMin = parameters.getParameter<double>("etaMin");
51  etaMax = parameters.getParameter<double>("etaMax");
52 
53  phiBin = parameters.getParameter<int>("phiBin");
54  phiMin = parameters.getParameter<double>("phiMin");
55  phiMax = parameters.getParameter<double>("phiMax");
56 
57  ptBin = parameters.getParameter<int>("ptBin");
58  ptMin = parameters.getParameter<double>("ptMin");
59  ptMax = parameters.getParameter<double>("ptMax");
60 
61  vtxBin = parameters.getParameter<int>("vtxBin");
62  vtxMin = parameters.getParameter<double>("vtxMin");
63  vtxMax = parameters.getParameter<double>("vtxMax");
64 
65  h_eff_eta_TightMu = theDbe->book1D("Eff_eta_TightMu", "TightMu Eff. vs #eta", etaBin, etaMin, etaMax);
66  h_eff_hp_eta_TightMu = theDbe->book1D("Eff_hp_eta_TightMu", "High Pt TightMu Eff. vs #eta", etaBin, etaMin, etaMax);
67  h_eff_phi_TightMu = theDbe->book1D("Eff_phi_TightMu", "TightMu Eff. vs #phi", phiBin, phiMin, phiMax);
68  h_eff_pt_TightMu = theDbe->book1D("Eff_pt_TightMu", "TightMu Eff. vs Pt", ptBin, ptMin, ptMax);
69  h_eff_pt_EB_TightMu = theDbe->book1D("Eff_pt_EB_TightMu", "Barrel: TightMu Eff. vs Pt", ptBin, ptMin, ptMax);
70  h_eff_pt_EE_TightMu = theDbe->book1D("Eff_pt_EE_TightMu", "Endcap: TightMu Eff. vs Pt", ptBin, ptMin, ptMax);
71  h_eff_pt_detIsoTightMu = theDbe->book1D("Eff_pt_detIsoTightMu", "detIsoTightMu Efficiency vs Pt", ptBin, ptMin, ptMax);
72  h_eff_pt_EB_detIsoTightMu = theDbe->book1D("Eff_pt_EB_detIsoTightMu", "Barrel: detIsoTightMu Eff. vs Pt", ptBin, ptMin, ptMax);
73  h_eff_pt_EE_detIsoTightMu = theDbe->book1D("Eff_pt_EE_detIsoTightMu", "Endcap: detIsoTightMu Eff. vs Pt", ptBin, ptMin, ptMax);
74  h_eff_pt_pfIsoTightMu = theDbe->book1D("Eff_pt_pfIsoTightMu", "pfIsoTightMu Eff. vs Pt", ptBin, ptMin, ptMax);
75  h_eff_pt_EB_pfIsoTightMu = theDbe->book1D("Eff_pt_EB_pfIsoTightMu", "Barrel: pfIsoTightMu Eff. vs Pt", ptBin, ptMin, ptMax);
76  h_eff_pt_EE_pfIsoTightMu = theDbe->book1D("Eff_pt_EE_pfIsoTightMu", "Endcap: pfIsoTightMu Eff. vs Pt", ptBin, ptMin, ptMax);
77  h_eff_vtx_detIsoTightMu = theDbe->book1D("Eff_vtx_detIsoTightMu", "detIsoTightMu Eff. vs nVtx", vtxBin, vtxMin, vtxMax);
78  h_eff_vtx_pfIsoTightMu = theDbe->book1D("Eff_vtx_pfIsoTightMu", "pfIsoTightMu Eff. vs nVtx", vtxBin, vtxMin, vtxMax);
79  h_eff_vtx_EB_detIsoTightMu = theDbe->book1D("Eff_vtx_EB_detIsoTightMu", "Barrel: detIsoTightMu Eff. vs nVtx", vtxBin, vtxMin, vtxMax);
80  h_eff_vtx_EB_pfIsoTightMu = theDbe->book1D("Eff_vtx_EB_pfIsoTightMu", "Barrel: pfIsoTightMu Eff. vs nVtx", vtxBin, vtxMin, vtxMax);
81  h_eff_vtx_EE_detIsoTightMu = theDbe->book1D("Eff_vtx_EE_detIsoTightMu", "Endcap: detIsoTightMu Eff. vs nVtx", vtxBin, vtxMin, vtxMax);
82  h_eff_vtx_EE_pfIsoTightMu = theDbe->book1D("Eff_vtx_EE_pfIsoTightMu", "Endcap: pfIsoTightMu Eff. vs nVtx", vtxBin, vtxMin, vtxMax);
83 
84  h_eff_pt_pfIsodBTightMu = theDbe->book1D("Eff_pt_pfIsodBTightMu", "pfIsoTightMu (deltaBeta) Eff. vs Pt", ptBin, ptMin, ptMax);
85  h_eff_pt_EB_pfIsodBTightMu = theDbe->book1D("Eff_pt_EB_pfIsodBTightMu", "Barrel: pfIsoTightMu (deltaBeta) Eff. vs Pt", ptBin, ptMin, ptMax);
86  h_eff_pt_EE_pfIsodBTightMu = theDbe->book1D("Eff_pt_EE_pfIsodBTightMu", "Endcap: pfIsoTightMu (deltaBeta) Eff. vs Pt", ptBin, ptMin, ptMax);
87  h_eff_vtx_pfIsodBTightMu = theDbe->book1D("Eff_vtx_pfIsodBTightMu", "pfIsoTightMu (deltaBeta) Eff. vs nVtx", vtxBin, vtxMin, vtxMax);
88  h_eff_vtx_EB_pfIsodBTightMu = theDbe->book1D("Eff_vtx_EB_pfIsodBTightMu", "Barrel: pfIsoTightMu (deltaBeta) Eff. vs nVtx", vtxBin, vtxMin, vtxMax);
89  h_eff_vtx_EE_pfIsodBTightMu = theDbe->book1D("Eff_vtx_EE_pfIsodBTightMu", "Endcap: pfIsoTightMu (deltaBeta) Eff. vs nVtx", vtxBin, vtxMin, vtxMax);
90 
91 
92 
93  // This prevents this ME to be normalized when drawn into the GUI
94  h_eff_eta_TightMu ->setEfficiencyFlag();
112 
119 
120 
121 
122  // AXIS TITLES....
123  h_eff_hp_eta_TightMu ->setAxisTitle("#eta", 1);
124  h_eff_eta_TightMu ->setAxisTitle("#eta", 1);
125  h_eff_phi_TightMu ->setAxisTitle("#phi", 1);
126  h_eff_pt_TightMu ->setAxisTitle("p_{T} (GeV)", 1);
127  h_eff_pt_EB_TightMu ->setAxisTitle("p_{T} (GeV)", 1);
128  h_eff_pt_EE_TightMu ->setAxisTitle("p_{T} (GeV)", 1);
129  h_eff_pt_detIsoTightMu ->setAxisTitle("p_{T} (GeV)", 1);
130  h_eff_pt_EB_detIsoTightMu ->setAxisTitle("p_{T} (GeV)", 1);
131  h_eff_pt_EE_detIsoTightMu ->setAxisTitle("p_{T} (GeV)", 1);
132  h_eff_pt_pfIsoTightMu ->setAxisTitle("p_{T} (GeV)", 1);
133  h_eff_pt_EB_pfIsoTightMu ->setAxisTitle("p_{T} (GeV)", 1);
134  h_eff_pt_EE_pfIsoTightMu ->setAxisTitle("p_{T} (GeV)", 1);
135  h_eff_vtx_detIsoTightMu ->setAxisTitle("Number of PV", 1);
136  h_eff_vtx_pfIsoTightMu ->setAxisTitle("Number of PV", 1);
137  h_eff_vtx_EB_detIsoTightMu->setAxisTitle("Number of PV", 1);
138  h_eff_vtx_EB_pfIsoTightMu ->setAxisTitle("Number of PV", 1);
139  h_eff_vtx_EE_detIsoTightMu->setAxisTitle("Number of PV", 1);
140  h_eff_vtx_EE_pfIsoTightMu ->setAxisTitle("Number of PV", 1);
141 
142  h_eff_pt_pfIsodBTightMu ->setAxisTitle("p_{T} (GeV)", 1);
143  h_eff_pt_EB_pfIsodBTightMu ->setAxisTitle("p_{T} (GeV)", 1);
144  h_eff_pt_EE_pfIsodBTightMu ->setAxisTitle("p_{T} (GeV)", 1);
145  h_eff_vtx_pfIsodBTightMu ->setAxisTitle("Number of PV", 1);
146  h_eff_vtx_EB_pfIsodBTightMu ->setAxisTitle("Number of PV", 1);
147  h_eff_vtx_EE_pfIsodBTightMu ->setAxisTitle("Number of PV", 1);
148 
149 
150 // h_eff_eta_TightMu ->setAxisTitle("Tight Mu Eff.", 2);
151 // h_eff_hp_eta_TightMu ->setAxisTitle("High p_{T} Mu Eff.", 2);
152 // h_eff_phi_TightMu ->setAxisTitle("Tight Mu Eff.", 2);
153 // h_eff_pt_TightMu ->setAxisTitle("Tight Mu Eff.", 2);
154 // h_eff_pt_EB_TightMu ->setAxisTitle("Tight Mu Eff.", 2);
155 // h_eff_pt_EE_TightMu ->setAxisTitle("Tight Mu Eff.", 2);
156 // h_eff_pt_detIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
157 // h_eff_pt_EB_detIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
158 // h_eff_pt_EE_detIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
159 // h_eff_pt_pfIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
160 // h_eff_pt_EB_pfIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
161 // h_eff_pt_EE_pfIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
162 // h_eff_vtx_detIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
163 // h_eff_vtx_pfIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
164 // h_eff_vtx_EB_detIsoTightMu->setAxisTitle("Tight Mu Eff.", 2);
165 // h_eff_vtx_EB_pfIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
166 // h_eff_vtx_EE_detIsoTightMu->setAxisTitle("Tight Mu Eff.", 2);
167 // h_eff_vtx_EE_pfIsoTightMu ->setAxisTitle("Tight Mu Eff.", 2);
168 }
T getParameter(std::string const &) const
MonitorElement * h_eff_eta_TightMu
MonitorElement * h_eff_pt_EE_detIsoTightMu
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:722
MonitorElement * h_eff_vtx_EB_pfIsoTightMu
MonitorElement * h_eff_pt_EB_pfIsodBTightMu
MonitorElement * h_eff_pt_pfIsoTightMu
MonitorElement * h_eff_pt_EB_detIsoTightMu
MonitorElement * h_eff_pt_EB_pfIsoTightMu
MonitorElement * h_eff_pt_EB_TightMu
MonitorElement * h_eff_pt_detIsoTightMu
MonitorElement * h_eff_vtx_EE_detIsoTightMu
MonitorElement * h_eff_pt_EE_pfIsodBTightMu
MonitorElement * h_eff_pt_EE_TightMu
MonitorElement * h_eff_vtx_EB_pfIsodBTightMu
MonitorElement * h_eff_pt_TightMu
MonitorElement * h_eff_pt_pfIsodBTightMu
#define LogTrace(id)
MonitorElement * h_eff_vtx_EE_pfIsodBTightMu
MonitorElement * h_eff_vtx_EB_detIsoTightMu
edm::ParameterSet parameters
MonitorElement * h_eff_hp_eta_TightMu
MonitorElement * h_eff_vtx_pfIsoTightMu
MonitorElement * h_eff_vtx_detIsoTightMu
MonitorElement * h_eff_phi_TightMu
tuple cout
Definition: gather_cfg.py:121
void setEfficiencyFlag(void)
MonitorElement * h_eff_vtx_EE_pfIsoTightMu
MonitorElement * h_eff_vtx_pfIsodBTightMu
MonitorElement * h_eff_pt_EE_pfIsoTightMu
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
void EfficiencyPlotter::beginLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  context 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 174 of file EfficiencyPlotter.cc.

References LogTrace, metname, edm::LuminosityBlockBase::run(), and DTTTrigCorrFirst::run.

174  {
175  LogTrace(metname)<<"[EfficiencyPlotter]: beginLuminosityBlock";
176  // Get the run number
177  run = lumiSeg.run();
178 }
#define LogTrace(id)
void EfficiencyPlotter::beginRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 171 of file EfficiencyPlotter.cc.

References LogTrace, and metname.

171  {
172  LogTrace(metname)<<"[EfficiencyPlotter]: beginRun";
173 }
#define LogTrace(id)
void EfficiencyPlotter::endJob ( void  )
protectedvirtual

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 678 of file EfficiencyPlotter.cc.

References LogTrace, and metname.

678  {
679  LogTrace(metname)<< "[EfficiencyPlotter] endJob called!";
680  theDbe->rmdir("Muons/EfficiencyAnalyzer");
681 }
void rmdir(const std::string &fullpath)
Definition: DQMStore.cc:2535
#define LogTrace(id)
void EfficiencyPlotter::endLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  c 
)
protectedvirtual

DQM Client Diagnostic.

Reimplemented from edm::EDAnalyzer.

Definition at line 183 of file EfficiencyPlotter.cc.

References edm::LuminosityBlockBase::id(), and edm::LuminosityBlockID::luminosityBlock().

183  {
184  // LogTrace(metname)<<"[EfficiencyPlotter]: endLuminosityBlock, performing the DQM LS client operation";
185  // counts number of lumiSegs
186  nLumiSegs = lumiSeg.id().luminosityBlock();
187 }
unsigned int nLumiSegs
void EfficiencyPlotter::endRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
protectedvirtual

— Tight Muon efficiency vs muon Pt

— Tight Muon efficiency vs muon Pt [EB]

— Tight Muon efficiency vs muon Pt [EE]

— Tight Muon efficiency vs muon Eta

— Tight Muon efficiency vs muon Eta [ pt > 20 ]

— Tight Muon efficiency vs muon Phi

— Tight Muon + Detector Isolation efficiency vs muon Pt

— Tight Muon + Detector Isolation efficiency vs muon Pt [EB]

— Tight Muon + Detector Isolation efficiency vs muon Pt [EE]

— Tight Muon + PF Isolation efficiency vs muon Pt

— Tight Muon + PF Isolation efficiency vs muon Pt [EB]

— Tight Muon + PF Isolation efficiency vs muon Pt [EE]

— Tight Muon + PF Isolation efficiency vs muon number of reco Vertex

— Tight Muon + detector-Based Isolation efficiency vs muon number of reco Vertex

— Tight Muon + detector-Based Isolation efficiency vs muon number of reco Vertex [EB]

— Tight Muon + detector-Based Isolation efficiency vs muon number of reco Vertex [EE]

— Tight Muon + PF-Based Isolation efficiency vs muon number of reco Vertex [EB]

— Tight Muon + PF-Based Isolation efficiency vs muon number of reco Vertex [EE]

— Tight Muon + PF IsodBlation corrected by deltaBeta efficiency vs muon Pt

— Tight Muon + PF IsodBlation corrected by deltaBeta efficiency vs muon Pt [EB]

— Tight Muon + PF IsodBlation corrected by deltaBeta efficiency vs muon Pt [EE]

— Tight Muon + PF Isolation corrected by deltaBeta efficiency vs muon number of reco Vertex

— Tight Muon + PF-Based Isolation corrected by deltaBeta efficiency vs muon number of reco Vertex [EB]

— Tight Muon + PF-Based Isolation corrected by deltaBeta efficiency vs muon number of reco Vertex [EE]

Reimplemented from edm::EDAnalyzer.

Definition at line 188 of file EfficiencyPlotter.cc.

References MonitorElement::getTH1F(), LogTrace, and metname.

188  {
189  LogTrace(metname)<<"[EfficiencyPlotter]: endRun, performing the DQM end of run client operation";
190 
191 
193  string numpath_pt = "Muons/EfficiencyAnalyzer/passProbes_TightMu_pt";
194  string denpath_pt = "Muons/EfficiencyAnalyzer/allProbes_pt";
195 
196  MonitorElement *Numerator_pt = theDbe->get(numpath_pt);
197  MonitorElement *Denominator_pt = theDbe->get(denpath_pt);
198 
199  if (Numerator_pt && Denominator_pt){
200  TH1F *h_numerator_pt = Numerator_pt->getTH1F();
201  TH1F *h_denominator_pt = Denominator_pt->getTH1F();
202  TH1F *h_eff_pt = h_eff_pt_TightMu->getTH1F();
203 
204  if (h_eff_pt->GetSumw2N() == 0) h_eff_pt->Sumw2();
205  h_eff_pt->Divide(h_numerator_pt, h_denominator_pt, 1., 1., "B");
206  }
207 
209  string numpath_EB_pt = "Muons/EfficiencyAnalyzer/passProbes_TightMu_EB_pt";
210  string denpath_EB_pt = "Muons/EfficiencyAnalyzer/allProbes_EB_pt";
211 
212  MonitorElement *Numerator_EB_pt = theDbe->get(numpath_EB_pt);
213  MonitorElement *Denominator_EB_pt = theDbe->get(denpath_EB_pt);
214 
215  if (Numerator_EB_pt && Denominator_EB_pt){
216  TH1F *h_numerator_EB_pt = Numerator_EB_pt->getTH1F();
217  TH1F *h_denominator_EB_pt = Denominator_EB_pt->getTH1F();
218  TH1F *h_eff_EB_pt = h_eff_pt_EB_TightMu->getTH1F();
219 
220  if (h_eff_EB_pt->GetSumw2N() == 0) h_eff_EB_pt->Sumw2();
221  h_eff_EB_pt->Divide(h_numerator_EB_pt, h_denominator_EB_pt, 1., 1., "B");
222  }
223 
225  string numpath_EE_pt = "Muons/EfficiencyAnalyzer/passProbes_TightMu_EE_pt";
226  string denpath_EE_pt = "Muons/EfficiencyAnalyzer/allProbes_EE_pt";
227 
228  MonitorElement *Numerator_EE_pt = theDbe->get(numpath_EE_pt);
229  MonitorElement *Denominator_EE_pt = theDbe->get(denpath_EE_pt);
230 
231  if (Numerator_EE_pt && Denominator_EE_pt){
232  TH1F *h_numerator_EE_pt = Numerator_EE_pt->getTH1F();
233  TH1F *h_denominator_EE_pt = Denominator_EE_pt->getTH1F();
234  TH1F *h_eff_EE_pt = h_eff_pt_EE_TightMu->getTH1F();
235 
236  if (h_eff_EE_pt->GetSumw2N() == 0) h_eff_EE_pt->Sumw2();
237  h_eff_EE_pt->Divide(h_numerator_EE_pt, h_denominator_EE_pt, 1., 1., "B");
238  }
239 
241  string numpath_eta = "Muons/EfficiencyAnalyzer/passProbes_TightMu_eta";
242  string denpath_eta = "Muons/EfficiencyAnalyzer/allProbes_eta";
243 
244  MonitorElement *Numerator_eta = theDbe->get(numpath_eta);
245  MonitorElement *Denominator_eta = theDbe->get(denpath_eta);
246 
247  if (Numerator_eta && Denominator_eta){
248 
249  TH1F *h_numerator_eta = Numerator_eta->getTH1F();
250  TH1F *h_denominator_eta = Denominator_eta->getTH1F();
251 
252  TH1F *h_eff_eta = h_eff_eta_TightMu->getTH1F();
253 
254  if (h_eff_eta->GetSumw2N() == 0) h_eff_eta->Sumw2();
255 
256  h_eff_eta->Divide(h_numerator_eta, h_denominator_eta, 1., 1., "B");
257 
258  }
259 
261 
262  string numpath_hp_eta = "Muons/EfficiencyAnalyzer/passProbes_TightMu_hp_eta";
263  string denpath_hp_eta = "Muons/EfficiencyAnalyzer/allProbes_hp_eta";
264 
265  MonitorElement *Numerator_hp_eta = theDbe->get(numpath_hp_eta);
266  MonitorElement *Denominator_hp_eta = theDbe->get(denpath_hp_eta);
267 
268  if (Numerator_hp_eta && Denominator_hp_eta){
269 
270  TH1F *h_numerator_hp_eta = Numerator_hp_eta->getTH1F();
271  TH1F *h_denominator_hp_eta = Denominator_hp_eta->getTH1F();
272 
273  TH1F *h_eff_hp_eta = h_eff_hp_eta_TightMu->getTH1F();
274 
275  if (h_eff_hp_eta->GetSumw2N() == 0) h_eff_hp_eta->Sumw2();
276 
277  h_eff_hp_eta->Divide(h_numerator_hp_eta, h_denominator_hp_eta, 1., 1., "B");
278 
279  }
280 
282 
283  string numpath_phi = "Muons/EfficiencyAnalyzer/passProbes_TightMu_phi";
284  string denpath_phi = "Muons/EfficiencyAnalyzer/allProbes_phi";
285 
286  MonitorElement *Numerator_phi = theDbe->get(numpath_phi);
287  MonitorElement *Denominator_phi = theDbe->get(denpath_phi);
288 
289  if (Numerator_phi && Denominator_phi){
290 
291  TH1F *h_numerator_phi = Numerator_phi->getTH1F();
292  TH1F *h_denominator_phi = Denominator_phi->getTH1F();
293 
294  TH1F *h_eff_phi = h_eff_phi_TightMu->getTH1F();
295 
296  if (h_eff_phi->GetSumw2N() == 0) h_eff_phi->Sumw2();
297 
298  h_eff_phi->Divide(h_numerator_phi, h_denominator_phi, 1., 1., "B");
299 
300  }
301 
302 
304  string numpath_detIso_pt = "Muons/EfficiencyAnalyzer/passProbes_detIsoTightMu_pt";
305  string denpath_detIso_pt = "Muons/EfficiencyAnalyzer/allProbes_TightMu_pt";
306 
307  MonitorElement *Numerator_detIso_pt = theDbe->get(numpath_detIso_pt);
308  MonitorElement *Denominator_detIso_pt = theDbe->get(denpath_detIso_pt);
309 
310  if (Numerator_detIso_pt && Denominator_detIso_pt){
311 
312  TH1F *h_numerator_detIso_pt = Numerator_detIso_pt->getTH1F();
313  TH1F *h_denominator_detIso_pt = Denominator_detIso_pt->getTH1F();
314 
315  TH1F *h_eff_detIso_pt = h_eff_pt_detIsoTightMu->getTH1F();
316 
317  if (h_eff_detIso_pt->GetSumw2N() == 0) h_eff_detIso_pt->Sumw2();
318  h_eff_detIso_pt->Divide(h_numerator_detIso_pt, h_denominator_detIso_pt, 1., 1., "B");
319 
320  }
321 
322 
324  string numpath_detIso_EB_pt = "Muons/EfficiencyAnalyzer/passProbes_EB_detIsoTightMu_pt";
325  string denpath_detIso_EB_pt = "Muons/EfficiencyAnalyzer/allProbes_EB_TightMu_pt";
326 
327  MonitorElement *Numerator_detIso_EB_pt = theDbe->get(numpath_detIso_EB_pt);
328  MonitorElement *Denominator_detIso_EB_pt = theDbe->get(denpath_detIso_EB_pt);
329 
330  if (Numerator_detIso_EB_pt && Denominator_detIso_EB_pt){
331 
332  TH1F *h_numerator_detIso_EB_pt = Numerator_detIso_EB_pt->getTH1F();
333  TH1F *h_denominator_detIso_EB_pt = Denominator_detIso_EB_pt->getTH1F();
334 
335  TH1F *h_eff_detIso_EB_pt = h_eff_pt_EB_detIsoTightMu->getTH1F();
336 
337  if (h_eff_detIso_EB_pt->GetSumw2N() == 0) h_eff_detIso_EB_pt->Sumw2();
338 
339  h_eff_detIso_EB_pt->Divide(h_numerator_detIso_EB_pt, h_denominator_detIso_EB_pt, 1., 1., "B");
340 
341  }
342 
343 
345  string numpath_detIso_EE_pt = "Muons/EfficiencyAnalyzer/passProbes_EE_detIsoTightMu_pt";
346  string denpath_detIso_EE_pt = "Muons/EfficiencyAnalyzer/allProbes_EE_TightMu_pt";
347 
348  MonitorElement *Numerator_detIso_EE_pt = theDbe->get(numpath_detIso_EE_pt);
349  MonitorElement *Denominator_detIso_EE_pt = theDbe->get(denpath_detIso_EE_pt);
350 
351  if (Numerator_detIso_EE_pt && Denominator_detIso_EE_pt){
352 
353  TH1F *h_numerator_detIso_EE_pt = Numerator_detIso_EE_pt->getTH1F();
354  TH1F *h_denominator_detIso_EE_pt = Denominator_detIso_EE_pt->getTH1F();
355 
356  TH1F *h_eff_detIso_EE_pt = h_eff_pt_EE_detIsoTightMu->getTH1F();
357 
358  if (h_eff_detIso_EE_pt->GetSumw2N() == 0) h_eff_detIso_EE_pt->Sumw2();
359 
360  h_eff_detIso_EE_pt->Divide(h_numerator_detIso_EE_pt, h_denominator_detIso_EE_pt, 1., 1., "B");
361 
362  }
363 
364 
366  string numpath_pfIso_pt = "Muons/EfficiencyAnalyzer/passProbes_pfIsoTightMu_pt";
367  string denpath_pfIso_pt = "Muons/EfficiencyAnalyzer/allProbes_TightMu_pt";
368 
369  MonitorElement *Numerator_pfIso_pt = theDbe->get(numpath_pfIso_pt);
370  MonitorElement *Denominator_pfIso_pt = theDbe->get(denpath_pfIso_pt);
371 
372  if (Numerator_pfIso_pt && Denominator_pfIso_pt){
373 
374  TH1F *h_numerator_pfIso_pt = Numerator_pfIso_pt->getTH1F();
375  TH1F *h_denominator_pfIso_pt = Denominator_pfIso_pt->getTH1F();
376 
377  TH1F *h_eff_pfIso_pt = h_eff_pt_pfIsoTightMu->getTH1F();
378 
379  if (h_eff_pfIso_pt->GetSumw2N() == 0) h_eff_pfIso_pt->Sumw2();
380 
381  h_eff_pfIso_pt->Divide(h_numerator_pfIso_pt, h_denominator_pfIso_pt, 1., 1., "B");
382  }
383 
384 
386 
387  string numpath_pfIso_EB_pt = "Muons/EfficiencyAnalyzer/passProbes_EB_pfIsoTightMu_pt";
388  string denpath_pfIso_EB_pt = "Muons/EfficiencyAnalyzer/allProbes_EB_TightMu_pt";
389 
390  MonitorElement *Numerator_pfIso_EB_pt = theDbe->get(numpath_pfIso_EB_pt);
391  MonitorElement *Denominator_pfIso_EB_pt = theDbe->get(denpath_pfIso_EB_pt);
392 
393  if (Numerator_pfIso_EB_pt && Denominator_pfIso_EB_pt){
394 
395  TH1F *h_numerator_pfIso_EB_pt = Numerator_pfIso_EB_pt->getTH1F();
396  TH1F *h_denominator_pfIso_EB_pt = Denominator_pfIso_EB_pt->getTH1F();
397 
398  TH1F *h_eff_pfIso_EB_pt = h_eff_pt_EB_pfIsoTightMu->getTH1F();
399 
400  if (h_eff_pfIso_EB_pt->GetSumw2N() == 0) h_eff_pfIso_EB_pt->Sumw2();
401  h_eff_pfIso_EB_pt->Divide(h_numerator_pfIso_EB_pt, h_denominator_pfIso_EB_pt, 1., 1., "B");
402 
403  }
404 
405 
407  string numpath_pfIso_EE_pt = "Muons/EfficiencyAnalyzer/passProbes_EE_pfIsoTightMu_pt";
408  string denpath_pfIso_EE_pt = "Muons/EfficiencyAnalyzer/allProbes_EE_TightMu_pt";
409 
410  MonitorElement *Numerator_pfIso_EE_pt = theDbe->get(numpath_pfIso_EE_pt);
411  MonitorElement *Denominator_pfIso_EE_pt = theDbe->get(denpath_pfIso_EE_pt);
412 
413  if (Numerator_pfIso_EE_pt && Denominator_pfIso_EE_pt){
414 
415  TH1F *h_numerator_pfIso_EE_pt = Numerator_pfIso_EE_pt->getTH1F();
416  TH1F *h_denominator_pfIso_EE_pt = Denominator_pfIso_EE_pt->getTH1F();
417 
418  TH1F *h_eff_pfIso_EE_pt = h_eff_pt_EE_pfIsoTightMu->getTH1F();
419 
420  if (h_eff_pfIso_EE_pt->GetSumw2N() == 0) h_eff_pfIso_EE_pt->Sumw2();
421 
422  h_eff_pfIso_EE_pt->Divide(h_numerator_pfIso_EE_pt, h_denominator_pfIso_EE_pt, 1., 1., "B");
423 
424  }
425 
426 
428 
429  string numpath_pfIso_nvtx = "Muons/EfficiencyAnalyzer/passProbes_pfIsoTightMu_nVtx";
430  string denpath_pfIso_nvtx = "Muons/EfficiencyAnalyzer/allProbes_TightMu_nVtx";
431 
432  MonitorElement *Numerator_pfIso_nvtx = theDbe->get(numpath_pfIso_nvtx);
433  MonitorElement *Denominator_pfIso_nvtx = theDbe->get(denpath_pfIso_nvtx);
434 
435  if (Numerator_pfIso_nvtx && Denominator_pfIso_nvtx){
436 
437  TH1F *h_numerator_pfIso_nvtx = Numerator_pfIso_nvtx->getTH1F();
438  TH1F *h_denominator_pfIso_nvtx = Denominator_pfIso_nvtx->getTH1F();
439 
440  TH1F *h_eff_pfIso_nvtx = h_eff_vtx_pfIsoTightMu->getTH1F();
441 
442  if (h_eff_pfIso_nvtx->GetSumw2N() == 0) h_eff_pfIso_nvtx->Sumw2();
443 
444  h_eff_pfIso_nvtx->Divide(h_numerator_pfIso_nvtx, h_denominator_pfIso_nvtx, 1., 1., "B");
445 
446  }
447 
448 
449 
451  string numpath_detIso_nvtx = "Muons/EfficiencyAnalyzer/passProbes_detIsoTightMu_nVtx";
452  string denpath_detIso_nvtx = "Muons/EfficiencyAnalyzer/allProbes_TightMu_nVtx";
453 
454  MonitorElement *Numerator_detIso_nvtx = theDbe->get(numpath_detIso_nvtx);
455  MonitorElement *Denominator_detIso_nvtx = theDbe->get(denpath_detIso_nvtx);
456 
457  if (Numerator_detIso_nvtx && Denominator_detIso_nvtx){
458 
459  TH1F *h_numerator_detIso_nvtx = Numerator_detIso_nvtx->getTH1F();
460  TH1F *h_denominator_detIso_nvtx = Denominator_detIso_nvtx->getTH1F();
461 
462  TH1F *h_eff_detIso_nvtx = h_eff_vtx_detIsoTightMu->getTH1F();
463 
464  if (h_eff_detIso_nvtx->GetSumw2N() == 0) h_eff_detIso_nvtx->Sumw2();
465 
466  h_eff_detIso_nvtx->Divide(h_numerator_detIso_nvtx, h_denominator_detIso_nvtx, 1., 1., "B");
467 
468  }
469 
470 
472  numpath_detIso_nvtx = "Muons/EfficiencyAnalyzer/passProbes_EB_detIsoTightMu_nVtx";
473  denpath_detIso_nvtx = "Muons/EfficiencyAnalyzer/allProbes_EB_TightMu_nVtx";
474 
475  Numerator_detIso_nvtx = theDbe->get(numpath_detIso_nvtx);
476  Denominator_detIso_nvtx = theDbe->get(denpath_detIso_nvtx);
477 
478  if (Numerator_detIso_nvtx && Denominator_detIso_nvtx){
479  TH1F *h_numerator_detIso_nvtx = Numerator_detIso_nvtx->getTH1F();
480  TH1F *h_denominator_detIso_nvtx = Denominator_detIso_nvtx->getTH1F();
481 
482  TH1F *h_eff_detIso_nvtx = h_eff_vtx_EB_detIsoTightMu->getTH1F();
483 
484  if (h_eff_detIso_nvtx->GetSumw2N() == 0) h_eff_detIso_nvtx->Sumw2();
485  h_eff_detIso_nvtx->Divide(h_numerator_detIso_nvtx, h_denominator_detIso_nvtx, 1., 1., "B");
486  }
487 
489  numpath_detIso_nvtx = "Muons/EfficiencyAnalyzer/passProbes_EE_detIsoTightMu_nVtx";
490  denpath_detIso_nvtx = "Muons/EfficiencyAnalyzer/allProbes_EE_TightMu_nVtx";
491 
492  Numerator_detIso_nvtx = theDbe->get(numpath_detIso_nvtx);
493  Denominator_detIso_nvtx = theDbe->get(denpath_detIso_nvtx);
494 
495  if (Numerator_detIso_nvtx && Denominator_detIso_nvtx){
496 
497  TH1F *h_numerator_detIso_nvtx = Numerator_detIso_nvtx->getTH1F();
498  TH1F *h_denominator_detIso_nvtx = Denominator_detIso_nvtx->getTH1F();
499 
500  TH1F *h_eff_detIso_nvtx = h_eff_vtx_EE_detIsoTightMu->getTH1F();
501 
502  if (h_eff_detIso_nvtx->GetSumw2N() == 0) h_eff_detIso_nvtx->Sumw2();
503 
504  h_eff_detIso_nvtx->Divide(h_numerator_detIso_nvtx, h_denominator_detIso_nvtx, 1., 1., "B");
505 
506  }
507 
508 
510  numpath_pfIso_nvtx = "Muons/EfficiencyAnalyzer/passProbes_EB_pfIsoTightMu_nVtx";
511  denpath_pfIso_nvtx = "Muons/EfficiencyAnalyzer/allProbes_EB_TightMu_nVtx";
512 
513  Numerator_pfIso_nvtx = theDbe->get(numpath_pfIso_nvtx);
514  Denominator_pfIso_nvtx = theDbe->get(denpath_pfIso_nvtx);
515 
516  if (Numerator_pfIso_nvtx && Denominator_pfIso_nvtx){
517 
518  TH1F *h_numerator_pfIso_nvtx = Numerator_pfIso_nvtx->getTH1F();
519  TH1F *h_denominator_pfIso_nvtx = Denominator_pfIso_nvtx->getTH1F();
520 
521  TH1F *h_eff_pfIso_nvtx = h_eff_vtx_EB_pfIsoTightMu->getTH1F();
522 
523  if (h_eff_pfIso_nvtx->GetSumw2N() == 0) h_eff_pfIso_nvtx->Sumw2();
524 
525  h_eff_pfIso_nvtx->Divide(h_numerator_pfIso_nvtx, h_denominator_pfIso_nvtx, 1., 1., "B");
526  }
527 
529  numpath_pfIso_nvtx = "Muons/EfficiencyAnalyzer/passProbes_EE_pfIsoTightMu_nVtx";
530  denpath_pfIso_nvtx = "Muons/EfficiencyAnalyzer/allProbes_EE_TightMu_nVtx";
531 
532  Numerator_pfIso_nvtx = theDbe->get(numpath_pfIso_nvtx);
533  Denominator_pfIso_nvtx = theDbe->get(denpath_pfIso_nvtx);
534 
535  if (Numerator_pfIso_nvtx && Denominator_pfIso_nvtx){
536 
537  TH1F *h_numerator_pfIso_nvtx = Numerator_pfIso_nvtx->getTH1F();
538  TH1F *h_denominator_pfIso_nvtx = Denominator_pfIso_nvtx->getTH1F();
539 
540  TH1F *h_eff_pfIso_nvtx = h_eff_vtx_EE_pfIsoTightMu->getTH1F();
541 
542  if (h_eff_pfIso_nvtx->GetSumw2N() == 0) h_eff_pfIso_nvtx->Sumw2();
543 
544  h_eff_pfIso_nvtx->Divide(h_numerator_pfIso_nvtx, h_denominator_pfIso_nvtx, 1., 1., "B");
545 
546  }
547 
548 
549 
551  string numpath_pfIsodB_pt = "Muons/EfficiencyAnalyzer/passProbes_pfIsodBTightMu_pt";
552  string denpath_pfIsodB_pt = "Muons/EfficiencyAnalyzer/allProbes_TightMu_pt";
553 
554  MonitorElement *Numerator_pfIsodB_pt = theDbe->get(numpath_pfIsodB_pt);
555  MonitorElement *Denominator_pfIsodB_pt = theDbe->get(denpath_pfIsodB_pt);
556 
557  if (Numerator_pfIsodB_pt && Denominator_pfIsodB_pt){
558 
559  TH1F *h_numerator_pfIsodB_pt = Numerator_pfIsodB_pt->getTH1F();
560  TH1F *h_denominator_pfIsodB_pt = Denominator_pfIsodB_pt->getTH1F();
561 
562  TH1F *h_eff_pfIsodB_pt = h_eff_pt_pfIsodBTightMu->getTH1F();
563 
564  if (h_eff_pfIsodB_pt->GetSumw2N() == 0) h_eff_pfIsodB_pt->Sumw2();
565 
566  h_eff_pfIsodB_pt->Divide(h_numerator_pfIsodB_pt, h_denominator_pfIsodB_pt, 1., 1., "B");
567  }
568 
569 
571 
572  string numpath_pfIsodB_EB_pt = "Muons/EfficiencyAnalyzer/passProbes_EB_pfIsodBTightMu_pt";
573  string denpath_pfIsodB_EB_pt = "Muons/EfficiencyAnalyzer/allProbes_EB_TightMu_pt";
574 
575  MonitorElement *Numerator_pfIsodB_EB_pt = theDbe->get(numpath_pfIsodB_EB_pt);
576  MonitorElement *Denominator_pfIsodB_EB_pt = theDbe->get(denpath_pfIsodB_EB_pt);
577 
578  if (Numerator_pfIsodB_EB_pt && Denominator_pfIsodB_EB_pt){
579 
580  TH1F *h_numerator_pfIsodB_EB_pt = Numerator_pfIsodB_EB_pt->getTH1F();
581  TH1F *h_denominator_pfIsodB_EB_pt = Denominator_pfIsodB_EB_pt->getTH1F();
582 
583  TH1F *h_eff_pfIsodB_EB_pt = h_eff_pt_EB_pfIsodBTightMu->getTH1F();
584 
585  if (h_eff_pfIsodB_EB_pt->GetSumw2N() == 0) h_eff_pfIsodB_EB_pt->Sumw2();
586  h_eff_pfIsodB_EB_pt->Divide(h_numerator_pfIsodB_EB_pt, h_denominator_pfIsodB_EB_pt, 1., 1., "B");
587 
588  }
589 
590 
592  string numpath_pfIsodB_EE_pt = "Muons/EfficiencyAnalyzer/passProbes_EE_pfIsodBTightMu_pt";
593  string denpath_pfIsodB_EE_pt = "Muons/EfficiencyAnalyzer/allProbes_EE_TightMu_pt";
594 
595  MonitorElement *Numerator_pfIsodB_EE_pt = theDbe->get(numpath_pfIsodB_EE_pt);
596  MonitorElement *Denominator_pfIsodB_EE_pt = theDbe->get(denpath_pfIsodB_EE_pt);
597 
598  if (Numerator_pfIsodB_EE_pt && Denominator_pfIsodB_EE_pt){
599 
600  TH1F *h_numerator_pfIsodB_EE_pt = Numerator_pfIsodB_EE_pt->getTH1F();
601  TH1F *h_denominator_pfIsodB_EE_pt = Denominator_pfIsodB_EE_pt->getTH1F();
602 
603  TH1F *h_eff_pfIsodB_EE_pt = h_eff_pt_EE_pfIsodBTightMu->getTH1F();
604 
605  if (h_eff_pfIsodB_EE_pt->GetSumw2N() == 0) h_eff_pfIsodB_EE_pt->Sumw2();
606 
607  h_eff_pfIsodB_EE_pt->Divide(h_numerator_pfIsodB_EE_pt, h_denominator_pfIsodB_EE_pt, 1., 1., "B");
608 
609  }
610 
611 
613 
614  string numpath_pfIsodB_nvtx = "Muons/EfficiencyAnalyzer/passProbes_pfIsodBTightMu_nVtx";
615  string denpath_pfIsodB_nvtx = "Muons/EfficiencyAnalyzer/allProbes_TightMu_nVtx";
616 
617  MonitorElement *Numerator_pfIsodB_nvtx = theDbe->get(numpath_pfIsodB_nvtx);
618  MonitorElement *Denominator_pfIsodB_nvtx = theDbe->get(denpath_pfIsodB_nvtx);
619 
620  if (Numerator_pfIsodB_nvtx && Denominator_pfIsodB_nvtx){
621 
622  TH1F *h_numerator_pfIsodB_nvtx = Numerator_pfIsodB_nvtx->getTH1F();
623  TH1F *h_denominator_pfIsodB_nvtx = Denominator_pfIsodB_nvtx->getTH1F();
624 
625  TH1F *h_eff_pfIsodB_nvtx = h_eff_vtx_pfIsodBTightMu->getTH1F();
626 
627  if (h_eff_pfIsodB_nvtx->GetSumw2N() == 0) h_eff_pfIsodB_nvtx->Sumw2();
628 
629  h_eff_pfIsodB_nvtx->Divide(h_numerator_pfIsodB_nvtx, h_denominator_pfIsodB_nvtx, 1., 1., "B");
630 
631  }
632 
633 
635  numpath_pfIsodB_nvtx = "Muons/EfficiencyAnalyzer/passProbes_EB_pfIsodBTightMu_nVtx";
636  denpath_pfIsodB_nvtx = "Muons/EfficiencyAnalyzer/allProbes_EB_TightMu_nVtx";
637 
638  Numerator_pfIsodB_nvtx = theDbe->get(numpath_pfIsodB_nvtx);
639  Denominator_pfIsodB_nvtx = theDbe->get(denpath_pfIsodB_nvtx);
640 
641  if (Numerator_pfIsodB_nvtx && Denominator_pfIsodB_nvtx){
642 
643  TH1F *h_numerator_pfIsodB_nvtx = Numerator_pfIsodB_nvtx->getTH1F();
644  TH1F *h_denominator_pfIsodB_nvtx = Denominator_pfIsodB_nvtx->getTH1F();
645 
646  TH1F *h_eff_pfIsodB_nvtx = h_eff_vtx_EB_pfIsodBTightMu->getTH1F();
647 
648  if (h_eff_pfIsodB_nvtx->GetSumw2N() == 0) h_eff_pfIsodB_nvtx->Sumw2();
649 
650  h_eff_pfIsodB_nvtx->Divide(h_numerator_pfIsodB_nvtx, h_denominator_pfIsodB_nvtx, 1., 1., "B");
651  }
652 
653 
655  numpath_pfIsodB_nvtx = "Muons/EfficiencyAnalyzer/passProbes_EE_pfIsodBTightMu_nVtx";
656  denpath_pfIsodB_nvtx = "Muons/EfficiencyAnalyzer/allProbes_EE_TightMu_nVtx";
657 
658  Numerator_pfIsodB_nvtx = theDbe->get(numpath_pfIsodB_nvtx);
659  Denominator_pfIsodB_nvtx = theDbe->get(denpath_pfIsodB_nvtx);
660 
661  if (Numerator_pfIsodB_nvtx && Denominator_pfIsodB_nvtx){
662 
663  TH1F *h_numerator_pfIsodB_nvtx = Numerator_pfIsodB_nvtx->getTH1F();
664  TH1F *h_denominator_pfIsodB_nvtx = Denominator_pfIsodB_nvtx->getTH1F();
665 
666  TH1F *h_eff_pfIsodB_nvtx = h_eff_vtx_EE_pfIsodBTightMu->getTH1F();
667 
668  if (h_eff_pfIsodB_nvtx->GetSumw2N() == 0) h_eff_pfIsodB_nvtx->Sumw2();
669 
670  h_eff_pfIsodB_nvtx->Divide(h_numerator_pfIsodB_nvtx, h_denominator_pfIsodB_nvtx, 1., 1., "B");
671 
672  }
673 
674 
675 }
MonitorElement * h_eff_eta_TightMu
MonitorElement * h_eff_pt_EE_detIsoTightMu
MonitorElement * h_eff_vtx_EB_pfIsoTightMu
MonitorElement * h_eff_pt_EB_pfIsodBTightMu
MonitorElement * h_eff_pt_pfIsoTightMu
MonitorElement * h_eff_pt_EB_detIsoTightMu
MonitorElement * h_eff_pt_EB_pfIsoTightMu
MonitorElement * h_eff_pt_EB_TightMu
MonitorElement * h_eff_pt_detIsoTightMu
MonitorElement * h_eff_vtx_EE_detIsoTightMu
MonitorElement * h_eff_pt_EE_pfIsodBTightMu
MonitorElement * h_eff_pt_EE_TightMu
MonitorElement * h_eff_vtx_EB_pfIsodBTightMu
MonitorElement * h_eff_pt_TightMu
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1473
MonitorElement * h_eff_pt_pfIsodBTightMu
#define LogTrace(id)
MonitorElement * h_eff_vtx_EE_pfIsodBTightMu
MonitorElement * h_eff_vtx_EB_detIsoTightMu
MonitorElement * h_eff_hp_eta_TightMu
TH1F * getTH1F(void) const
MonitorElement * h_eff_vtx_pfIsoTightMu
MonitorElement * h_eff_vtx_detIsoTightMu
MonitorElement * h_eff_phi_TightMu
MonitorElement * h_eff_vtx_EE_pfIsoTightMu
MonitorElement * h_eff_vtx_pfIsodBTightMu
MonitorElement * h_eff_pt_EE_pfIsoTightMu

Member Data Documentation

int EfficiencyPlotter::etaBin
private

Definition at line 69 of file EfficiencyPlotter.h.

double EfficiencyPlotter::etaMax
private

Definition at line 71 of file EfficiencyPlotter.h.

double EfficiencyPlotter::etaMin
private

Definition at line 70 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_eta_TightMu
private

Definition at line 89 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_hp_eta_TightMu
private

Definition at line 90 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_phi_TightMu
private

Definition at line 91 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_detIsoTightMu
private

Definition at line 92 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_EB_detIsoTightMu
private

Definition at line 93 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_EB_pfIsodBTightMu
private

Definition at line 107 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_EB_pfIsoTightMu
private

Definition at line 96 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_EB_TightMu
private

Definition at line 87 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_EE_detIsoTightMu
private

Definition at line 94 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_EE_pfIsodBTightMu
private

Definition at line 108 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_EE_pfIsoTightMu
private

Definition at line 97 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_EE_TightMu
private

Definition at line 88 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_pfIsodBTightMu
private

Definition at line 106 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_pfIsoTightMu
private

Definition at line 95 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_pt_TightMu
private

Definition at line 86 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_vtx_detIsoTightMu
private

Definition at line 99 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_vtx_EB_detIsoTightMu
private

Definition at line 101 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_vtx_EB_pfIsodBTightMu
private

Definition at line 111 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_vtx_EB_pfIsoTightMu
private

Definition at line 103 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_vtx_EE_detIsoTightMu
private

Definition at line 102 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_vtx_EE_pfIsodBTightMu
private

Definition at line 112 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_vtx_EE_pfIsoTightMu
private

Definition at line 104 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_vtx_pfIsodBTightMu
private

Definition at line 110 of file EfficiencyPlotter.h.

MonitorElement* EfficiencyPlotter::h_eff_vtx_pfIsoTightMu
private

Definition at line 100 of file EfficiencyPlotter.h.

std::string EfficiencyPlotter::metname
private

Definition at line 63 of file EfficiencyPlotter.h.

int EfficiencyPlotter::nevents
private

Definition at line 58 of file EfficiencyPlotter.h.

unsigned int EfficiencyPlotter::nLumiSegs
private

Definition at line 59 of file EfficiencyPlotter.h.

edm::ParameterSet EfficiencyPlotter::parameters
private
int EfficiencyPlotter::phiBin
private

Definition at line 77 of file EfficiencyPlotter.h.

double EfficiencyPlotter::phiMax
private

Definition at line 79 of file EfficiencyPlotter.h.

double EfficiencyPlotter::phiMin
private

Definition at line 78 of file EfficiencyPlotter.h.

int EfficiencyPlotter::prescaleFactor
private

Definition at line 60 of file EfficiencyPlotter.h.

int EfficiencyPlotter::ptBin
private

Definition at line 73 of file EfficiencyPlotter.h.

double EfficiencyPlotter::ptMax
private

Definition at line 75 of file EfficiencyPlotter.h.

double EfficiencyPlotter::ptMin
private

Definition at line 74 of file EfficiencyPlotter.h.

int EfficiencyPlotter::run
private
DQMStore* EfficiencyPlotter::theDbe
private

Definition at line 65 of file EfficiencyPlotter.h.

int EfficiencyPlotter::vtxBin
private

Definition at line 81 of file EfficiencyPlotter.h.

double EfficiencyPlotter::vtxMax
private

Definition at line 83 of file EfficiencyPlotter.h.

double EfficiencyPlotter::vtxMin
private

Definition at line 82 of file EfficiencyPlotter.h.