CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GEMOfflineDQMBase::BookingHelper Class Reference

#include <GEMOfflineDQMBase.h>

Public Member Functions

MonitorElementbook1D (TString name, TString title, int nbinsx, double xlow, double xup, TString x_title="", TString y_title="Entries")
 
MonitorElementbook1D (TString name, TString title, std::vector< double > &x_binning, TString x_title="", TString y_title="Entries")
 
MonitorElementbook2D (TString name, TString title, int nbinsx, double xlow, double xup, int nbinsy, double ylow, double yup, TString x_title="", TString y_title="")
 
 BookingHelper (DQMStore::IBooker &ibooker, const TString &name_suffix, const TString &title_suffix)
 
 ~BookingHelper ()
 

Private Attributes

DQMStore::IBookeribooker_
 
const TString name_suffix_
 
const TString title_suffix_
 

Detailed Description

Definition at line 47 of file GEMOfflineDQMBase.h.

Constructor & Destructor Documentation

◆ BookingHelper()

GEMOfflineDQMBase::BookingHelper::BookingHelper ( DQMStore::IBooker ibooker,
const TString &  name_suffix,
const TString &  title_suffix 
)
inline

Definition at line 49 of file GEMOfflineDQMBase.h.

50  : ibooker_(&ibooker), name_suffix_(name_suffix), title_suffix_(title_suffix) {}

◆ ~BookingHelper()

GEMOfflineDQMBase::BookingHelper::~BookingHelper ( )
inline

Definition at line 52 of file GEMOfflineDQMBase.h.

52 {}

Member Function Documentation

◆ book1D() [1/2]

MonitorElement* GEMOfflineDQMBase::BookingHelper::book1D ( TString  name,
TString  title,
int  nbinsx,
double  xlow,
double  xup,
TString  x_title = "",
TString  y_title = "Entries" 
)
inline

Definition at line 54 of file GEMOfflineDQMBase.h.

60  {
61  name += name_suffix_;
62  title += title_suffix_ + ";" + x_title + ";" + y_title;
63  return ibooker_->book1D(name, title, nbinsx, xlow, xup);
64  }

References dqm::implementation::IBooker::book1D(), ibooker_, Skims_PA_cff::name, name_suffix_, overlapproblemtsosanalyzer_cfi::title, and title_suffix_.

◆ book1D() [2/2]

MonitorElement* GEMOfflineDQMBase::BookingHelper::book1D ( TString  name,
TString  title,
std::vector< double > &  x_binning,
TString  x_title = "",
TString  y_title = "Entries" 
)
inline

Definition at line 66 of file GEMOfflineDQMBase.h.

70  {
71  name += name_suffix_;
72  title += title_suffix_ + ";" + x_title + ";" + y_title;
73  TH1F* h_obj = new TH1F(name, title, x_binning.size() - 1, &x_binning[0]);
74  return ibooker_->book1D(name, h_obj);
75  }

References dqm::implementation::IBooker::book1D(), ibooker_, Skims_PA_cff::name, name_suffix_, overlapproblemtsosanalyzer_cfi::title, and title_suffix_.

◆ book2D()

MonitorElement* GEMOfflineDQMBase::BookingHelper::book2D ( TString  name,
TString  title,
int  nbinsx,
double  xlow,
double  xup,
int  nbinsy,
double  ylow,
double  yup,
TString  x_title = "",
TString  y_title = "" 
)
inline

Definition at line 77 of file GEMOfflineDQMBase.h.

86  {
87  name += name_suffix_;
88  title += title_suffix_ + ";" + x_title + ";" + y_title;
89  return ibooker_->book2D(name, title, nbinsx, xlow, xup, nbinsy, ylow, yup);
90  }

References dqm::implementation::IBooker::book2D(), ibooker_, Skims_PA_cff::name, name_suffix_, overlapproblemtsosanalyzer_cfi::title, and title_suffix_.

Member Data Documentation

◆ ibooker_

DQMStore::IBooker* GEMOfflineDQMBase::BookingHelper::ibooker_
private

Definition at line 93 of file GEMOfflineDQMBase.h.

Referenced by book1D(), and book2D().

◆ name_suffix_

const TString GEMOfflineDQMBase::BookingHelper::name_suffix_
private

Definition at line 94 of file GEMOfflineDQMBase.h.

Referenced by book1D(), and book2D().

◆ title_suffix_

const TString GEMOfflineDQMBase::BookingHelper::title_suffix_
private

Definition at line 95 of file GEMOfflineDQMBase.h.

Referenced by book1D(), and book2D().

GEMOfflineDQMBase::BookingHelper::ibooker_
DQMStore::IBooker * ibooker_
Definition: GEMOfflineDQMBase.h:93
GEMOfflineDQMBase::BookingHelper::title_suffix_
const TString title_suffix_
Definition: GEMOfflineDQMBase.h:95
GEMOfflineDQMBase::BookingHelper::name_suffix_
const TString name_suffix_
Definition: GEMOfflineDQMBase.h:94
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
dqm::implementation::IBooker::book2D
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
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98