CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DQMHelper.cc
Go to the documentation of this file.
2 
4 
6 
8  const std::string& title,
9  int n,
10  double xmin,
11  double xmax,
12  const std::string& xaxis,
13  const std::string& yaxis) {
14  MonitorElement* dqm = ibooker->book1D(name, title, n, xmin, xmax, [](TH1* th1) { th1->Sumw2(); });
15  dqm->setAxisTitle(xaxis, 1);
16  dqm->setAxisTitle(yaxis, 2);
17  return dqm;
18 }
19 
21  const std::string& name, const std::string& title, int n, double xmin, double xmax) {
22  MonitorElement* dqm = ibooker->book1D(name, title, n, xmin, xmax, [](TH1* th1) { th1->Sumw2(); });
23  return dqm;
24 }
25 
27  const std::string& title,
28  int nx,
29  double xmin,
30  double xmax,
31  int ny,
32  double ymin,
33  double ymax,
34  const std::string& xaxis,
35  const std::string& yaxis) {
36  MonitorElement* dqm = ibooker->book2D(name, title, nx, xmin, xmax, ny, ymin, ymax, [](TH1* th1) { th1->Sumw2(); });
37  dqm->setAxisTitle(xaxis, 1);
38  dqm->setAxisTitle(yaxis, 2);
39  return dqm;
40 }
41 
43  const std::string& title,
44  int nx,
45  double xmin,
46  double xmax,
47  int ny,
48  double ymin,
49  double ymax) {
50  MonitorElement* dqm = ibooker->book2D(name, title, nx, xmin, xmax, ny, ymin, ymax, [](TH1* th1) { th1->Sumw2(); });
51  return dqm;
52 }
MonitorElement * book2dHisto(const std::string &name, const std::string &title, int nx, double xmin, double xmax, int ny, double ymin, double ymax, const std::string &xaxis, const std::string &yaxis)
Definition: DQMHelper.cc:26
DQMHelper(DQMStore::IBooker *i)
Definition: DQMHelper.cc:3
MonitorElement * book1dHisto(const std::string &name, const std::string &title, int n, double xmin, double xmax, const std::string &xaxis, const std::string &yaxis)
Definition: DQMHelper.cc:7
virtual ~DQMHelper()
Definition: DQMHelper.cc:5
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:52
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)