CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HistoWrapper Class Reference

#include <HistoWrapper.h>

Public Member Functions

MonitorElementbook1D (DQMStore::IBooker &iBooker, TString const &name, TString const &title, int const nchX, double const lowX, double const highX, int level=kEverything)
 
MonitorElementbook2D (DQMStore::IBooker &iBooker, TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int level=kEverything)
 
 HistoWrapper (const edm::ParameterSet &)
 
 ~HistoWrapper ()
 

Private Attributes

int cAllHistograms
 
int cPlottedHistograms
 
PL plotlevel
 

Detailed Description

Definition at line 13 of file HistoWrapper.h.

Constructor & Destructor Documentation

◆ HistoWrapper()

HistoWrapper::HistoWrapper ( const edm::ParameterSet pset)

Definition at line 3 of file HistoWrapper.cc.

3  {
4  plotlevel = (PL)pset.getUntrackedParameter<int>("PlotLevel", int(kEverything));
5  cAllHistograms = 0;
7 }

References cAllHistograms, cPlottedHistograms, kEverything, plotlevel, and muonDTDigis_cfi::pset.

◆ ~HistoWrapper()

HistoWrapper::~HistoWrapper ( )

Definition at line 9 of file HistoWrapper.cc.

9  {
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 }

References cAllHistograms, gather_cfg::cout, cPlottedHistograms, plotlevel, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Function Documentation

◆ book1D()

MonitorElement * HistoWrapper::book1D ( DQMStore::IBooker iBooker,
TString const &  name,
TString const &  title,
int const  nchX,
double const  lowX,
double const  highX,
int  level = kEverything 
)

◆ book2D()

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 = kEverything 
)

Definition at line 33 of file HistoWrapper.cc.

42  {
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 }

References dqm::implementation::IBooker::book2D(), cAllHistograms, cPlottedHistograms, personalPlayback::level, hlt_dqm_clientPB-live_cfg::me, Skims_PA_cff::name, plotlevel, and runGCPTkAlMap::title.

Referenced by HLTTauDQMTagAndProbePlotter::bookHistograms(), and HLTTauDQMPathPlotter::bookHistograms().

Member Data Documentation

◆ cAllHistograms

int HistoWrapper::cAllHistograms
private

Definition at line 38 of file HistoWrapper.h.

Referenced by book1D(), book2D(), HistoWrapper(), and ~HistoWrapper().

◆ cPlottedHistograms

int HistoWrapper::cPlottedHistograms
private

Definition at line 39 of file HistoWrapper.h.

Referenced by book1D(), book2D(), HistoWrapper(), and ~HistoWrapper().

◆ plotlevel

PL HistoWrapper::plotlevel
private

Definition at line 37 of file HistoWrapper.h.

Referenced by book1D(), book2D(), HistoWrapper(), and ~HistoWrapper().

personalPlayback.level
level
Definition: personalPlayback.py:22
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
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::plotlevel
PL plotlevel
Definition: HistoWrapper.h:37
PL
PL
Definition: HistoWrapper.h:11
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
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