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 
)

Definition at line 12 of file DQMHelper.cc.

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

Referenced by BasicHepMCHeavyIonValidation::bookHistograms(), DrellYanValidation::bookHistograms(), BasicHepMCValidation::bookHistograms(), WValidation::bookHistograms(), HiggsValidation::bookHistograms(), BPhysicsSpectrum::bookHistograms(), BPhysicsValidation::bookHistograms(), BasicGenParticleValidation::bookHistograms(), MBUEandQCDValidation::bookHistograms(), DuplicationChecker::bookHistograms(), TTbar_GenLepAnalyzer::bookHistograms(), TauValidation::bookHistograms(), TTbarSpinCorrHepMCAnalyzer::bookHistograms(), TTbar_GenJetAnalyzer::bookHistograms(), TTbar_Kinematics::bookHistograms(), and BasicHepMCValidation::ParticleMonitor::ParticleMonitor().

13  {
15  dqm->getTH1()->Sumw2();
16  dqm->setAxisTitle(xaxis,1);
17  dqm->setAxisTitle(yaxis,2);
18  return dqm;
19 }
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:113
TH1 * getTH1(void) const
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::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:113
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().

Referenced by TTbar_Kinematics::bookHistograms().

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:131
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().