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) s_pl = "kVital";
12  std::cout << "Plot level " << plotlevel << " " << s_pl << std::endl;
13  std::cout << "Plotting " << cPlottedHistograms << " out of " << cAllHistograms << std::endl;
14 }
15 
16 MonitorElement* HistoWrapper::book1D(DQMStore::IBooker& iBooker, TString const &name, TString const &title, int const nchX, double const lowX, double const highX, int level){
18  if(level >= plotlevel){
20  MonitorElement* me = iBooker.book1D(name, title, nchX, lowX, highX);
21  return me;
22  }
23  return 0;
24 }
25 
26 MonitorElement* HistoWrapper::book2D(DQMStore::IBooker& iBooker, TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int level){
28  if(level >= plotlevel){
30  MonitorElement* me = iBooker.book2D(name, title, nchX, lowX, highX, nchY, lowY, highY);
31  return me;
32  }
33  return 0;
34 }
35 
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:461
kEverything
Definition: HistoWrapper.h:11
HistoWrapper::cPlottedHistograms
int cPlottedHistograms
Definition: HistoWrapper.h:24
HistoWrapper::cAllHistograms
int cAllHistograms
Definition: HistoWrapper.h:23
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:16
HistoWrapper::plotlevel
PL plotlevel
Definition: HistoWrapper.h:22
PL
PL
Definition: HistoWrapper.h:11
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
HistoWrapper::HistoWrapper
HistoWrapper(const edm::ParameterSet &)
Definition: HistoWrapper.cc:3
HistoWrapper::~HistoWrapper
~HistoWrapper()
Definition: HistoWrapper.cc:9
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:26
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