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 (TString name, TString title, int n, double xmin, double xmax, TString xaxis, TString yaxis)
 
MonitorElementbook1dHisto (const std::string &name, const std::string &title, int n, double xmin, double xmax)
 
MonitorElementbook2dHisto (TString name, TString title, int nx, double xmin, double xmax, int ny, double ymin, double ymax, TString xaxis, TString 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 ( TString  name,
TString  title,
int  n,
double  xmin,
double  xmax,
TString  xaxis,
TString  yaxis 
)

Definition at line 12 of file DQMHelper.cc.

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

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

13  {
15  dqm->getTH1()->Sumw2();
16  dqm->setAxisTitle(std::string(xaxis.Data()),1);
17  dqm->setAxisTitle(std::string(yaxis.Data()),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 ( TString  name,
TString  title,
int  nx,
double  xmin,
double  xmax,
int  ny,
double  ymin,
double  ymax,
TString  xaxis,
TString  yaxis 
)

Definition at line 27 of file DQMHelper.cc.

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

Referenced by TTbar_Kinematics::bookHistograms().

28  {
30  dqm->getTH1()->Sumw2();
31  dqm->setAxisTitle(std::string(xaxis.Data()),1);
32  dqm->setAxisTitle(std::string(yaxis.Data()),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().