CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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="")
 
 ~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

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:96
DQMStore::IBooker * ibooker_
Definition: GEMDQMBase.h:95
const TString title_suffix_
Definition: GEMDQMBase.h:97
GEMDQMBase::BookingHelper::~BookingHelper ( )
inline

Definition at line 37 of file GEMDQMBase.h.

37 {}

Member Function Documentation

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

Member Data Documentation

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

Definition at line 95 of file GEMDQMBase.h.

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

const TString GEMDQMBase::BookingHelper::name_suffix_
private

Definition at line 96 of file GEMDQMBase.h.

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

const TString GEMDQMBase::BookingHelper::title_suffix_
private

Definition at line 97 of file GEMDQMBase.h.

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