CMS 3D CMS Logo

DQMHelper.cc
Go to the documentation of this file.
2 
3 
5 
6 }
7 
9 
10 }
11 
13  std::string xaxis, std::string yaxis){
14  MonitorElement* dqm=ibooker->book1D(name,title,n,xmin,xmax);
15  dqm->getTH1()->Sumw2();
16  dqm->setAxisTitle(xaxis,1);
17  dqm->setAxisTitle(yaxis,2);
18  return dqm;
19 }
20 
22  MonitorElement* dqm=ibooker->book1D(name,title,n,xmin,xmax);
23  dqm->getTH1()->Sumw2();
24  return dqm;
25 }
26 
28  int ny,double ymin,double ymax,std::string xaxis, std::string yaxis){
29  MonitorElement* dqm=ibooker->book2D(name,title,nx,xmin,xmax,ny,ymin,ymax);
30  dqm->getTH1()->Sumw2();
31  dqm->setAxisTitle(xaxis,1);
32  dqm->setAxisTitle(yaxis,2);
33  return dqm;
34 }
35 
36 
37 MonitorElement* DQMHelper::book2dHisto(const std::string &name,const std::string &title,int nx,double xmin,double xmax,int ny,double ymin,double ymax){
38  MonitorElement* dqm=ibooker->book2D(name,title,nx,xmin,xmax,ny,ymin,ymax);
39  dqm->getTH1()->Sumw2();
40  return dqm;
41 }
42 
43 
44 
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:27
TH1 * getTH1() const
DQMHelper(DQMStore::IBooker *i)
Definition: DQMHelper.cc:4
MonitorElement * book1dHisto(std::string name, std::string title, int n, double xmin, double xmax, std::string xaxis, std::string yaxis)
Definition: DQMHelper.cc:12
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
virtual ~DQMHelper()
Definition: DQMHelper.cc:8
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:28
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)