CMS 3D CMS Logo

ElectronDqmAnalyzerBase.h
Go to the documentation of this file.
1 
2 #ifndef ElectronDqmAnalyzerBase_h
3 #define ElectronDqmAnalyzerBase_h
4 
6 #include <Rtypes.h>
7 #include <string>
8 #include <vector>
9 
10 //DQM
14 
15 namespace edab {
16  struct Empty {};
17 } // namespace edab
19 protected:
20  explicit ElectronDqmAnalyzerBase(const edm::ParameterSet &conf);
21  ~ElectronDqmAnalyzerBase() override;
22 
23  // specific implementation of EDAnalyzer
24  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
25 
26  // interface to implement in derived classes
27  void analyze(const edm::Event &e, const edm::EventSetup &c) override {}
28 
29  // utility methods
30  int verbosity() { return verbosity_; }
31 
32  void setBookPrefix(const std::string &);
33  void setBookIndex(short);
34  void setBookEfficiencyFlag(const bool &);
35  void setBookStatOverflowFlag(const bool &);
36 
38  const std::string &name,
39  const std::string &title,
40  int nchX,
41  double lowX,
42  double highX,
43  const std::string &titleX = "",
44  const std::string &titleY = "Events",
45  Option_t *option = "E1 P");
46 
48  const std::string &name,
49  const std::string &title,
50  int nchX,
51  double lowX,
52  double highX,
53  const std::string &titleX = "",
54  const std::string &titleY = "Events",
55  Option_t *option = "E1 P");
56 
58  const std::string &name,
59  const std::string &title,
60  int nchX,
61  double lowX,
62  double highX,
63  int nchY,
64  double lowY,
65  double highY,
66  const std::string &titleX = "",
67  const std::string &titleY = "",
68  Option_t *option = "COLZ");
69 
71  const std::string &name,
72  const std::string &title,
73  int nchX,
74  double lowX,
75  double highX,
76  int nchY,
77  double lowY,
78  double highY,
79  const std::string &titleX = "",
80  const std::string &titleY = "",
81  Option_t *option = "COLZ");
82 
84  const std::string &name,
85  const std::string &title,
86  int nchX,
87  double lowX,
88  double highX,
89  double lowY,
90  double highY,
91  const std::string &titleX = "",
92  const std::string &titleY = "",
93  Option_t *option = "E1 P");
94 
96  const std::string &name,
98  const std::string &title = "");
99 
101  const std::string &name,
102  const std::string &original,
103  const std::string &title = "");
104 
105 private:
108  short bookIndex_;
109  bool bookEfficiencyFlag_ = false;
110  bool bookStatOverflowFlag_ = false;
112  std::vector<std::string> histoNames_;
118 
119  // utility methods
121 };
122 
123 #endif
MonitorElement * cloneH1(DQMStore::IBooker &iBooker, const std::string &name, MonitorElement *original, const std::string &title="")
MonitorElement * bookH1(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
MonitorElement * bookP1(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="E1 P")
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void setBookPrefix(const std::string &)
ElectronDqmAnalyzerBase(const edm::ParameterSet &conf)
void setBookEfficiencyFlag(const bool &)
std::vector< std::string > histoNames_
MonitorElement * bookH2withSumw2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
MonitorElement * bookH2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
MonitorElement * bookH1withSumw2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, const std::string &titleX="", const std::string &titleY="Events", Option_t *option="E1 P")
void setBookStatOverflowFlag(const bool &)
Definition: Run.h:45
std::string newName(const std::string &name)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override