CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
T getUntrackedParameter(std::string const &, T const &) const
PL
Definition: HistoWrapper.h:11
int cPlottedHistograms
Definition: HistoWrapper.h:39
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
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
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
HistoWrapper(const edm::ParameterSet &)
Definition: HistoWrapper.cc:3
int cAllHistograms
Definition: HistoWrapper.h:38
tuple cout
Definition: gather_cfg.py:144
tuple level
Definition: testEve_cfg.py:47
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98