CMS 3D CMS Logo

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

◆ DQMStore

Definition at line 17 of file DQMHelper.h.

◆ MonitorElement

Definition at line 18 of file DQMHelper.h.

Constructor & Destructor Documentation

◆ DQMHelper()

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::~DQMHelper ( )
virtual

Definition at line 5 of file DQMHelper.cc.

5 {}

Member Function Documentation

◆ book1dHisto() [1/2]

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, dqmiodumpmetadata::n, Skims_PA_cff::name, runGCPTkAlMap::title, LaserClient_cfi::xaxis, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, and TimingClient_cfi::yaxis.

Referenced by GenWeightValidation::bookHistograms(), LheWeightValidation::bookHistograms(), GenWeightValidation::bookTemplates(), and LheWeightValidation::bookTemplates().

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
Definition: DQMStore.h:18

◆ book1dHisto() [2/2]

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(), ibooker, dqmiodumpmetadata::n, Skims_PA_cff::name, runGCPTkAlMap::title, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.

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
Definition: DQMStore.h:18

◆ book2dHisto() [1/2]

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, Skims_PA_cff::name, runGCPTkAlMap::title, LaserClient_cfi::xaxis, TrackerOfflineValidation_Dqm_cff::xmax, TrackerOfflineValidation_Dqm_cff::xmin, TimingClient_cfi::yaxis, L1TOccupancyClient_cfi::ymax, and L1TOccupancyClient_cfi::ymin.

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:212
DQMStore::IBooker * ibooker
Definition: DQMHelper.h:52
Definition: DQMStore.h:18

◆ book2dHisto() [2/2]

DQMHelper::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

◆ ibooker

DQMStore::IBooker* DQMHelper::ibooker
private

Definition at line 52 of file DQMHelper.h.

Referenced by book1dHisto(), and book2dHisto().