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
63  std::string metname;
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  // efficiency histograms
88 
89 };
90 
91 #endif
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic.
MonitorElement * h_eff_eta_TightMu
EfficiencyPlotter(const edm::ParameterSet &ps)
Constructor.
void endJob()
Endjob.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
unsigned int nLumiSegs
virtual ~EfficiencyPlotter()
Destructor.
MonitorElement * h_eff_pt_TightMu
MonitorElement * h_eff_pt_endcap_TightMu
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_phi_TightMu
Definition: Run.h:33
MonitorElement * h_eff_pt_barrel_TightMu