CMS 3D CMS Logo

TrackerPhase2HarvestingUtil.cc
Go to the documentation of this file.
5  MonitorElement* temp = nullptr;
6  if (hpars.getParameter<bool>("switch")) {
7  temp = ibooker.book1D(hpars.getParameter<std::string>("name"),
8  hpars.getParameter<std::string>("title"),
9  hpars.getParameter<int32_t>("NxBins"),
10  hpars.getParameter<double>("xmin"),
11  hpars.getParameter<double>("xmax"));
12  }
13  return temp;
14 }
15 
17  MonitorElement* temp = nullptr;
18  if (hpars.getParameter<bool>("switch")) {
19  temp = ibooker.book2D(hpars.getParameter<std::string>("name"),
20  hpars.getParameter<std::string>("title"),
21  hpars.getParameter<int32_t>("NxBins"),
22  hpars.getParameter<double>("xmin"),
23  hpars.getParameter<double>("xmax"),
24  hpars.getParameter<int32_t>("NyBins"),
25  hpars.getParameter<double>("ymin"),
26  hpars.getParameter<double>("ymax"));
27  }
28  return temp;
29 }
30 
32  MonitorElement* temp = nullptr;
33  if (hpars.getParameter<bool>("switch")) {
34  temp = ibooker.bookProfile(hpars.getParameter<std::string>("name"),
35  hpars.getParameter<std::string>("title"),
36  hpars.getParameter<int32_t>("NxBins"),
37  hpars.getParameter<double>("xmin"),
38  hpars.getParameter<double>("xmax"),
39  hpars.getParameter<double>("ymin"),
40  hpars.getParameter<double>("ymax"));
41  }
42  return temp;
43 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
dqm::harvesting::DQMStore DQMStore
MonitorElement * book1DFromPSet(const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
MonitorElement * book2DFromPSet(const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
Definition: DQMStore.h:399
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
dqm::harvesting::MonitorElement MonitorElement
MonitorElement * bookProfile1DFromPSet(const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98