CMS 3D CMS Logo

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

#include <DQMHelper.h>

Public Types

typedef DQMEDAnalyzer::DQMStore DQMStore
 
typedef
DQMEDAnalyzer::MonitorElement 
MonitorElement
 

Public Member Functions

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

Member Typedef Documentation

Definition at line 17 of file DQMHelper.h.

Definition at line 18 of file DQMHelper.h.

Constructor & Destructor Documentation

DQMHelper::DQMHelper ( DQMStore::IBooker i)

Definition at line 3 of file DQMHelper.cc.

3 : ibooker(i) {}
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:52
DQMHelper::~DQMHelper ( )
virtual

Definition at line 5 of file DQMHelper.cc.

5 {}

Member Function Documentation

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

Definition at line 7 of file DQMHelper.cc.

References dqm::implementation::IBooker::book1D(), ibooker, and dqm::impl::MonitorElement::setAxisTitle().

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

13  {
14  MonitorElement* dqm = ibooker->book1D(name, title, n, xmin, xmax, [](TH1* th1) { th1->Sumw2(); });
15  dqm->setAxisTitle(xaxis, 1);
16  dqm->setAxisTitle(yaxis, 2);
17  return dqm;
18 }
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:52
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
DQMHelper::MonitorElement * DQMHelper::book1dHisto ( const std::string &  name,
const std::string &  title,
int  n,
double  xmin,
double  xmax 
)

Definition at line 20 of file DQMHelper.cc.

References dqm::implementation::IBooker::book1D(), and ibooker.

21  {
22  MonitorElement* dqm = ibooker->book1D(name, title, n, xmin, xmax, [](TH1* th1) { th1->Sumw2(); });
23  return dqm;
24 }
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:52
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
DQMHelper::MonitorElement * DQMHelper::book2dHisto ( const std::string &  name,
const std::string &  title,
int  nx,
double  xmin,
double  xmax,
int  ny,
double  ymin,
double  ymax,
const std::string &  xaxis,
const std::string &  yaxis 
)

Definition at line 26 of file DQMHelper.cc.

References dqm::implementation::IBooker::book2D(), ibooker, and dqm::impl::MonitorElement::setAxisTitle().

Referenced by TTbar_Kinematics::bookHistograms().

35  {
36  MonitorElement* dqm = ibooker->book2D(name, title, nx, xmin, xmax, ny, ymin, ymax, [](TH1* th1) { th1->Sumw2(); });
37  dqm->setAxisTitle(xaxis, 1);
38  dqm->setAxisTitle(yaxis, 2);
39  return dqm;
40 }
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:52
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
DQMHelper::MonitorElement * DQMHelper::book2dHisto ( const std::string &  name,
const std::string &  title,
int  nx,
double  xmin,
double  xmax,
int  ny,
double  ymin,
double  ymax 
)

Definition at line 42 of file DQMHelper.cc.

References dqm::implementation::IBooker::book2D(), and ibooker.

49  {
50  MonitorElement* dqm = ibooker->book2D(name, title, nx, xmin, xmax, ny, ymin, ymax, [](TH1* th1) { th1->Sumw2(); });
51  return dqm;
52 }
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:52

Member Data Documentation

DQMStore::IBooker* DQMHelper::ibooker
private

Definition at line 52 of file DQMHelper.h.

Referenced by book1dHisto(), and book2dHisto().