14 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, min, max);
15 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, min, max);
19 unsigned nbins = binning.size()-1;
20 std::vector<float> fbinning(binning.begin(),binning.end());
21 float* arr = &fbinning[0];
22 me.
numerator = ibooker.
book1D(histname+
"_numerator", histtitle+
" (numerator)", nbins, arr);
23 me.
denominator = ibooker.
book1D(histname+
"_denominator", histtitle+
" (denominator)", nbins, arr);
27 me.
numerator = ibooker.
bookProfile(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, ymin, ymax);
28 me.
denominator = ibooker.
bookProfile(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, ymin, ymax);
32 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
33 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, xmin, xmax, nbinsY, ymin, ymax);
37 unsigned nbinsX = binningX.size()-1;
38 std::vector<float> fbinningX(binningX.begin(),binningX.end());
39 float* arrX = &fbinningX[0];
40 unsigned nbinsY = binningY.size()-1;
41 std::vector<float> fbinningY(binningY.begin(),binningY.end());
42 float* arrY = &fbinningY[0];
44 me.
numerator = ibooker.
book2D(histname+
"_numerator", histtitle+
" (numerator)", nbinsX, arrX, nbinsY, arrY);
45 me.
denominator = ibooker.
book2D(histname+
"_denominator", histtitle+
" (denominator)", nbinsX, arrX, nbinsY, arrY);
50 pset.
add<
unsigned> (
"nbins");
51 pset.
add<
double>(
"xmin" );
52 pset.
add<
double>(
"xmax" );
57 pset.
add<
unsigned int> (
"nbins", 2500 );
58 pset.
add<
double> (
"xmin", 0.);
59 pset.
add<
double> (
"xmax", 2500.);
T getParameter(std::string const &) const
MonitorElement * numerator
static void fillHistoLSPSetDescription(edm::ParameterSetDescription &pset)
MonitorElement * bookProfile(Args &&...args)
static MEbinning getHistoLSPSet(const edm::ParameterSet &pset)
static void fillHistoPSetDescription(edm::ParameterSetDescription &pset)
void setMETitle(ObjME &me, const std::string &titleX, const std::string &titleY)
static MEbinning getHistoPSet(const edm::ParameterSet &pset)
MonitorElement * denominator
MonitorElement * book1D(Args &&...args)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
MonitorElement * book2D(Args &&...args)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void bookME(DQMStore::IBooker &, ObjME &me, const std::string &histname, const std::string &histtitle, unsigned nbins, double xmin, double xmax)