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)
 
MonitorElementbookProfile2D (TString name, TString title, int nbinsx, double xlow, double xup, int nbinsy, double ylow, double yup, double zlow, double zup, TString x_title="", TString y_title="")
 
DQMStore::IBookergetBooker ()
 
 ~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) {}
const TString name_suffix_
Definition: GEMDQMBase.h:98
DQMStore::IBooker * ibooker_
Definition: GEMDQMBase.h:97
const TString title_suffix_
Definition: GEMDQMBase.h:99

◆ ~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.

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

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

45  {
46  name += name_suffix_;
47  title += title_suffix_ + ";" + x_title + ";" + y_title;
48  return ibooker_->book1D(name, title, nbinsx, xlow, xup);
49  }
const TString name_suffix_
Definition: GEMDQMBase.h:98
DQMStore::IBooker * ibooker_
Definition: GEMDQMBase.h:97
const TString title_suffix_
Definition: GEMDQMBase.h:99
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

◆ 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.

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

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  }
const TString name_suffix_
Definition: GEMDQMBase.h:98
DQMStore::IBooker * ibooker_
Definition: GEMDQMBase.h:97
const TString title_suffix_
Definition: GEMDQMBase.h:99
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

◆ 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.

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

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

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  }
const TString name_suffix_
Definition: GEMDQMBase.h:98
DQMStore::IBooker * ibooker_
Definition: GEMDQMBase.h:97
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
const TString title_suffix_
Definition: GEMDQMBase.h:99

◆ bookProfile2D()

MonitorElement* GEMDQMBase::BookingHelper::bookProfile2D ( TString  name,
TString  title,
int  nbinsx,
double  xlow,
double  xup,
int  nbinsy,
double  ylow,
double  yup,
double  zlow,
double  zup,
TString  x_title = "",
TString  y_title = "" 
)
inline

Definition at line 77 of file GEMDQMBase.h.

References dqm::implementation::IBooker::bookProfile2D(), ibooker_, Skims_PA_cff::name, name_suffix_, totemT2DQMSource_cfi::nbinsx, totemT2DQMSource_cfi::nbinsy, runGCPTkAlMap::title, and title_suffix_.

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

88  {
89  name += name_suffix_;
90  title += title_suffix_ + ";" + x_title + ";" + y_title;
91  return ibooker_->bookProfile2D(name, title, nbinsx, xlow, xup, nbinsy, ylow, yup, zlow, zup);
92  }
MonitorElement * bookProfile2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, char const *option="s", FUNC onbooking=NOOP())
Definition: DQMStore.h:476
const TString name_suffix_
Definition: GEMDQMBase.h:98
DQMStore::IBooker * ibooker_
Definition: GEMDQMBase.h:97
const TString title_suffix_
Definition: GEMDQMBase.h:99

◆ getBooker()

DQMStore::IBooker* GEMDQMBase::BookingHelper::getBooker ( )
inline

Member Data Documentation

◆ ibooker_

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

Definition at line 97 of file GEMDQMBase.h.

Referenced by book1D(), book2D(), bookProfile2D(), and getBooker().

◆ name_suffix_

const TString GEMDQMBase::BookingHelper::name_suffix_
private

Definition at line 98 of file GEMDQMBase.h.

Referenced by book1D(), book2D(), and bookProfile2D().

◆ title_suffix_

const TString GEMDQMBase::BookingHelper::title_suffix_
private

Definition at line 99 of file GEMDQMBase.h.

Referenced by book1D(), book2D(), and bookProfile2D().