CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
phase2tkharvestutil Namespace Reference

Typedefs

typedef dqm::harvesting::DQMStore DQMStore
 
typedef
dqm::harvesting::MonitorElement 
MonitorElement
 

Functions

MonitorElementbook1DFromPSet (const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
 
MonitorElementbook2DFromPSet (const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
 
MonitorElementbookProfile1DFromPSet (const edm::ParameterSet &hpars, DQMStore::IBooker &ibooker)
 

Typedef Documentation

Definition at line 12 of file TrackerPhase2HarvestingUtil.h.

Definition at line 11 of file TrackerPhase2HarvestingUtil.h.

Function Documentation

MonitorElement * phase2tkharvestutil::book1DFromPSet ( const edm::ParameterSet hpars,
DQMStore::IBooker ibooker 
)

Definition at line 4 of file TrackerPhase2HarvestingUtil.cc.

References dqm::implementation::IBooker::book1D(), edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.

Referenced by Phase2ITRecHitHarvester::dofitsForLayer().

4  {
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 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 * phase2tkharvestutil::book2DFromPSet ( const edm::ParameterSet hpars,
DQMStore::IBooker ibooker 
)

Definition at line 16 of file TrackerPhase2HarvestingUtil.cc.

References dqm::implementation::IBooker::book2D(), edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.

16  {
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 }
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
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MonitorElement * phase2tkharvestutil::bookProfile1DFromPSet ( const edm::ParameterSet hpars,
DQMStore::IBooker ibooker 
)

Definition at line 31 of file TrackerPhase2HarvestingUtil.cc.

References dqm::implementation::IBooker::bookProfile(), edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.

31  {
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 }
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:322
T getParameter(std::string const &) const
Definition: ParameterSet.h:303