CMS 3D CMS Logo

DQMHelper.cc
Go to the documentation of this file.
2 
4 
6 
9  MonitorElement* dqm = ibooker->book1D(name, title, n, xmin, xmax);
10  dqm->getTH1()->Sumw2();
11  dqm->setAxisTitle(xaxis, 1);
12  dqm->setAxisTitle(yaxis, 2);
13  return dqm;
14 }
15 
17  const std::string& name, const std::string& title, int n, double xmin, double xmax) {
18  MonitorElement* dqm = ibooker->book1D(name, title, n, xmin, xmax);
19  dqm->getTH1()->Sumw2();
20  return dqm;
21 }
22 
25  int nx,
26  double xmin,
27  double xmax,
28  int ny,
29  double ymin,
30  double ymax,
33  MonitorElement* dqm = ibooker->book2D(name, title, nx, xmin, xmax, ny, ymin, ymax);
34  dqm->getTH1()->Sumw2();
35  dqm->setAxisTitle(xaxis, 1);
36  dqm->setAxisTitle(yaxis, 2);
37  return dqm;
38 }
39 
41  const std::string& title,
42  int nx,
43  double xmin,
44  double xmax,
45  int ny,
46  double ymin,
47  double ymax) {
48  MonitorElement* dqm = ibooker->book2D(name, title, nx, xmin, xmax, ny, ymin, ymax);
49  dqm->getTH1()->Sumw2();
50  return dqm;
51 }
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
Definition: DQMStore.cc:239
MonitorElement * book2dHisto(std::string name, std::string title, int nx, double xmin, double xmax, int ny, double ymin, double ymax, std::string xaxis, std::string yaxis)
Definition: DQMHelper.cc:23
DQMHelper(DQMStore::IBooker *i)
Definition: DQMHelper.cc:3
MonitorElement * book1dHisto(std::string name, std::string title, int n, double xmin, double xmax, std::string xaxis, std::string yaxis)
Definition: DQMHelper.cc:7
virtual ~DQMHelper()
Definition: DQMHelper.cc:5
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:47
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Definition: DQMStore.cc:266
virtual TH1 * getTH1() const
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)