CMS 3D CMS Logo

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

#include <GEMDQMBase.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 32 of file GEMDQMBase.h.

Constructor & Destructor Documentation

◆ BookingHelper()

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

Definition at line 34 of file GEMDQMBase.h.

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

◆ ~BookingHelper()

GEMDQMBase::BookingHelper::~BookingHelper ( )
inline

Definition at line 37 of file GEMDQMBase.h.

37 {}

Member Function Documentation

◆ book1D() [1/2]

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

Definition at line 39 of file GEMDQMBase.h.

45  {
46  name += name_suffix_;
47  title += title_suffix_ + ";" + x_title + ";" + y_title;
48  return ibooker_->book1D(name, title, nbinsx, xlow, xup);
49  }

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

Referenced by GEMDQMBase::MEMapInfT< M, K >::bookND().

◆ book1D() [2/2]

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

Definition at line 51 of file GEMDQMBase.h.

55  {
56  name += name_suffix_;
57  title += title_suffix_ + ";" + x_title + ";" + y_title;
58  TH1F *h_obj = new TH1F(name, title, x_binning.size() - 1, &x_binning[0]);
59  return ibooker_->book1D(name, h_obj);
60  }

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

◆ book2D()

MonitorElement* GEMDQMBase::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 62 of file GEMDQMBase.h.

71  {
72  name += name_suffix_;
73  title += title_suffix_ + ";" + x_title + ";" + y_title;
74  return ibooker_->book2D(name, title, nbinsx, xlow, xup, nbinsy, ylow, yup);
75  }

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

Referenced by GEMDQMBase::MEMapInfT< M, K >::bookND().

Member Data Documentation

◆ ibooker_

DQMStore::IBooker* GEMDQMBase::BookingHelper::ibooker_
private

Definition at line 78 of file GEMDQMBase.h.

Referenced by book1D(), and book2D().

◆ name_suffix_

const TString GEMDQMBase::BookingHelper::name_suffix_
private

Definition at line 79 of file GEMDQMBase.h.

Referenced by book1D(), and book2D().

◆ title_suffix_

const TString GEMDQMBase::BookingHelper::title_suffix_
private

Definition at line 80 of file GEMDQMBase.h.

Referenced by book1D(), and book2D().

runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
GEMDQMBase::BookingHelper::ibooker_
DQMStore::IBooker * ibooker_
Definition: GEMDQMBase.h:78
GEMDQMBase::BookingHelper::title_suffix_
const TString title_suffix_
Definition: GEMDQMBase.h:80
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
GEMDQMBase::BookingHelper::name_suffix_
const TString name_suffix_
Definition: GEMDQMBase.h:79
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