CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EfficiencyPlotter.h
Go to the documentation of this file.
1 #ifndef EfficiencyPlotter_H
2 #define EfficiencyPlotter_H
3 
4 
13 
18 
19 #include <memory>
20 #include <iostream>
21 #include <string>
22 #include <vector>
23 #include <map>
24 #include "TH1F.h"
25 
27 
28 public:
29 
32 
34  virtual ~EfficiencyPlotter();
35 
36 protected:
37 
39  void beginJob(void);
40 
42  void analyze(const edm::Event& e, const edm::EventSetup& c);
43 
45  void endJob();
46 
47  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup);
48  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
49 
51  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
52  void endRun(edm::Run const& run, edm::EventSetup const& eSetup);
53 
54 
55 private:
56 
57  // counters
58  int nevents;
59  unsigned int nLumiSegs;
61  int run;
62  // Switch for verbosity
64 
67 
68  //histo binning parameters
69  int etaBin;
70  double etaMin;
71  double etaMax;
72 
73  int ptBin;
74  double ptMin;
75  double ptMax;
76 
77  int phiBin;
78  double phiMin;
79  double phiMax;
80 
81  int vtxBin;
82  double vtxMin;
83  double vtxMax;
84 
85  // efficiency histograms
98 
105 
109 
113 
114 };
115 
116 #endif
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic.
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
EfficiencyPlotter(const edm::ParameterSet &ps)
Constructor.
void endJob()
Endjob.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
MonitorElement * h_eff_pt_EB_detIsoTightMu
MonitorElement * h_eff_pt_EB_pfIsoTightMu
MonitorElement * h_eff_pt_EB_TightMu
unsigned int nLumiSegs
MonitorElement * h_eff_pt_detIsoTightMu
MonitorElement * h_eff_vtx_EE_detIsoTightMu
MonitorElement * h_eff_pt_EE_pfIsodBTightMu
MonitorElement * h_eff_pt_EE_TightMu
virtual ~EfficiencyPlotter()
Destructor.
MonitorElement * h_eff_vtx_EB_pfIsodBTightMu
MonitorElement * h_eff_pt_TightMu
MonitorElement * h_eff_pt_pfIsodBTightMu
MonitorElement * h_eff_vtx_EE_pfIsodBTightMu
MonitorElement * h_eff_vtx_EB_detIsoTightMu
edm::ParameterSet parameters
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
MonitorElement * h_eff_hp_eta_TightMu
void beginJob(void)
BeginJob.
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup)
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
Definition: Run.h:36