CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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

◆ DQMStore

Definition at line 12 of file TrackerPhase2HarvestingUtil.h.

◆ MonitorElement

Definition at line 11 of file TrackerPhase2HarvestingUtil.h.

Function Documentation

◆ book1DFromPSet()

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

Definition at line 4 of file TrackerPhase2HarvestingUtil.cc.

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 }

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

Referenced by Phase2ITRecHitHarvester::dofitsForLayer().

◆ book2DFromPSet()

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

Definition at line 16 of file TrackerPhase2HarvestingUtil.cc.

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 }

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

◆ bookProfile1DFromPSet()

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

Definition at line 31 of file TrackerPhase2HarvestingUtil.cc.

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 }

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

dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
dqm::implementation::IBooker::bookProfile
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
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
dqm::implementation::IBooker::book2D
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
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98