CMS 3D CMS Logo

HistoWrapper.cc
Go to the documentation of this file.
2 
4  plotlevel = (PL)pset.getUntrackedParameter<int>("PlotLevel", int(kEverything));
5  cAllHistograms = 0;
7 }
8 
10  std::string s_pl = "kEverything";
11  if (plotlevel == 1)
12  s_pl = "kVital";
13  std::cout << "Plot level " << plotlevel << " " << s_pl << std::endl;
14  std::cout << "Plotting " << cPlottedHistograms << " out of " << cAllHistograms << std::endl;
15 }
16 
18  TString const& name,
19  TString const& title,
20  int const nchX,
21  double const lowX,
22  double const highX,
23  int level) {
25  if (level >= plotlevel) {
27  MonitorElement* me = iBooker.book1D(name, title, nchX, lowX, highX);
28  return me;
29  }
30  return nullptr;
31 }
32 
34  TString const& name,
35  TString const& title,
36  int nchX,
37  double lowX,
38  double highX,
39  int nchY,
40  double lowY,
41  double highY,
42  int level) {
44  if (level >= plotlevel) {
46  MonitorElement* me = iBooker.book2D(name, title, nchX, lowX, highX, nchY, lowY, highY);
47  return me;
48  }
49  return nullptr;
50 }
personalPlayback.level
level
Definition: personalPlayback.py:22
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
HistoWrapper.h
gather_cfg.cout
cout
Definition: gather_cfg.py:144
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
kEverything
Definition: HistoWrapper.h:11
HistoWrapper::cPlottedHistograms
int cPlottedHistograms
Definition: HistoWrapper.h:39
HistoWrapper::cAllHistograms
int cAllHistograms
Definition: HistoWrapper.h:38
HistoWrapper::book1D
MonitorElement * book1D(DQMStore::IBooker &iBooker, TString const &name, TString const &title, int const nchX, double const lowX, double const highX, int level=kEverything)
Definition: HistoWrapper.cc:17
HistoWrapper::plotlevel
PL plotlevel
Definition: HistoWrapper.h:37
PL
PL
Definition: HistoWrapper.h:11
edm::ParameterSet
Definition: ParameterSet.h:47
HistoWrapper::HistoWrapper
HistoWrapper(const edm::ParameterSet &)
Definition: HistoWrapper.cc:3
HistoWrapper::~HistoWrapper
~HistoWrapper()
Definition: HistoWrapper.cc:9
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
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
dqm::implementation::IBooker
Definition: DQMStore.h:43
HistoWrapper::book2D
MonitorElement * book2D(DQMStore::IBooker &iBooker, TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int level=kEverything)
Definition: HistoWrapper.cc:33
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
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