CMS 3D CMS Logo

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 }
TH1 * getTH1() const
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
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 
)
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() const
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136
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().