CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DQMHelper Class Reference

#include <DQMHelper.h>

Public Member Functions

MonitorElementbook1dHisto (std::string name, std::string title, int n, double xmin, double xmax, std::string xaxis, std::string yaxis)
 
MonitorElementbook1dHisto (const std::string &name, const std::string &title, int n, double xmin, double xmax)
 
MonitorElementbook2dHisto (std::string name, std::string title, int nx, double xmin, double xmax, int ny, double ymin, double ymax, std::string xaxis, std::string yaxis)
 
MonitorElementbook2dHisto (const std::string &name, const std::string &title, int nx, double xmin, double xmax, int ny, double ymin, double ymax)
 
 DQMHelper (DQMStore::IBooker *i)
 
virtual ~DQMHelper ()
 

Private Attributes

DQMStore::IBookeribooker
 

Detailed Description

Definition at line 16 of file DQMHelper.h.

Constructor & Destructor Documentation

DQMHelper::DQMHelper ( DQMStore::IBooker i)

Definition at line 4 of file DQMHelper.cc.

4  :ibooker(i){
5 
6 }
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:28
DQMHelper::~DQMHelper ( )
virtual

Definition at line 8 of file DQMHelper.cc.

8  {
9 
10 }

Member Function Documentation

MonitorElement * DQMHelper::book1dHisto ( std::string  name,
std::string  title,
int  n,
double  xmin,
double  xmax,
std::string  xaxis,
std::string  yaxis 
)
MonitorElement * DQMHelper::book1dHisto ( const std::string &  name,
const std::string &  title,
int  n,
double  xmin,
double  xmax 
)

Definition at line 21 of file DQMHelper.cc.

References DQMStore::IBooker::book1D(), MonitorElement::getTH1(), and ibooker.

21  {
23  dqm->getTH1()->Sumw2();
24  return dqm;
25 }
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
TH1 * getTH1(void) const
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:28
MonitorElement * DQMHelper::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 at line 27 of file DQMHelper.cc.

References DQMStore::IBooker::book2D(), MonitorElement::getTH1(), ibooker, and MonitorElement::setAxisTitle().

28  {
30  dqm->getTH1()->Sumw2();
31  dqm->setAxisTitle(xaxis,1);
32  dqm->setAxisTitle(yaxis,2);
33  return dqm;
34 }
TH1 * getTH1(void) const
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
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)
MonitorElement * DQMHelper::book2dHisto ( const std::string &  name,
const std::string &  title,
int  nx,
double  xmin,
double  xmax,
int  ny,
double  ymin,
double  ymax 
)

Member Data Documentation

DQMStore::IBooker* DQMHelper::ibooker
private

Definition at line 28 of file DQMHelper.h.

Referenced by book1dHisto(), and book2dHisto().