CMS 3D CMS Logo

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

#include <HistoProviderDQM.h>

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Public Member Functions

virtual MonitorElementbook1D (const std::string &name, const std::string &title, const int &nchX, const double &lowX, const double &highX)
 
virtual MonitorElementbook1D (const std::string &name, const std::string &title, const int &nchX, float *xbinsize)
 
virtual MonitorElementbook2D (const std::string &name, const std::string &title, const int &nchX, const double &lowX, const double &highX, const int &nchY, const double &lowY, const double &highY)
 
virtual MonitorElementbook2D (const std::string &name, const std::string &title, const int &nchX, float *xbinsize, const int &nchY, float *ybinsize)
 
virtual MonitorElementbookProfile (const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
 
 HistoProviderDQM (const std::string &prefix, const std::string &label, DQMStore::IBooker &ibook)
 
void setDir (const std::string &)
 
virtual ~HistoProviderDQM ()
 

Private Attributes

DQMStore::IBookeribook_
 
std::string label_
 

Detailed Description

Definition at line 8 of file HistoProviderDQM.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 10 of file HistoProviderDQM.h.

◆ MonitorElement

Definition at line 11 of file HistoProviderDQM.h.

Constructor & Destructor Documentation

◆ HistoProviderDQM()

HistoProviderDQM::HistoProviderDQM ( const std::string &  prefix,
const std::string &  label,
DQMStore::IBooker ibook 
)

Definition at line 6 of file HistoProviderDQM.cc.

References label, label_, hcallasereventfilter2012_cfi::prefix, and setDir().

7  : ibook_(ibook) {
8  // get the store
9  label_ = prefix + "/" + label;
10  setDir(label_);
11 }
char const * label
DQMStore::IBooker & ibook_
void setDir(const std::string &)
std::string label_

◆ ~HistoProviderDQM()

virtual HistoProviderDQM::~HistoProviderDQM ( )
inlinevirtual

Definition at line 14 of file HistoProviderDQM.h.

14 {}

Member Function Documentation

◆ book1D() [1/2]

HistoProviderDQM::MonitorElement * HistoProviderDQM::book1D ( const std::string &  name,
const std::string &  title,
const int &  nchX,
const double &  lowX,
const double &  highX 
)
virtual

Definition at line 15 of file HistoProviderDQM.cc.

References dqm::implementation::IBooker::book1D(), ibook_, Skims_PA_cff::name, and runGCPTkAlMap::title.

Referenced by BTagDifferentialPlot::bookHisto(), EffPurFromHistos2D::compute(), EffPurFromHistos::compute(), FlavourHistograms< T >::FlavourHistograms(), and TrackIPHistograms< T >::TrackIPHistograms().

16  {
17  return ibook_.book1D(name, title, nchX, lowX, highX);
18 }
DQMStore::IBooker & ibook_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

◆ book1D() [2/2]

HistoProviderDQM::MonitorElement * HistoProviderDQM::book1D ( const std::string &  name,
const std::string &  title,
const int &  nchX,
float *  xbinsize 
)
virtual

Definition at line 20 of file HistoProviderDQM.cc.

References dqm::implementation::IBooker::book1D(), ibook_, Skims_PA_cff::name, and runGCPTkAlMap::title.

23  {
24  return ibook_.book1D(name, title, nchX, xbinsize);
25 }
DQMStore::IBooker & ibook_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

◆ book2D() [1/2]

HistoProviderDQM::MonitorElement * HistoProviderDQM::book2D ( const std::string &  name,
const std::string &  title,
const int &  nchX,
const double &  lowX,
const double &  highX,
const int &  nchY,
const double &  lowY,
const double &  highY 
)
virtual

Definition at line 27 of file HistoProviderDQM.cc.

References dqm::implementation::IBooker::book2D(), ibook_, Skims_PA_cff::name, and runGCPTkAlMap::title.

Referenced by FlavourHistograms2D< T, G >::FlavourHistograms2D().

34  {
35  return ibook_.book2D(name, title, nchX, lowX, highX, nchY, lowY, highY);
36 }
DQMStore::IBooker & ibook_
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:212

◆ book2D() [2/2]

HistoProviderDQM::MonitorElement * HistoProviderDQM::book2D ( const std::string &  name,
const std::string &  title,
const int &  nchX,
float *  xbinsize,
const int &  nchY,
float *  ybinsize 
)
virtual

Definition at line 38 of file HistoProviderDQM.cc.

References dqm::implementation::IBooker::book2D(), ibook_, Skims_PA_cff::name, and runGCPTkAlMap::title.

43  {
44  return ibook_.book2D(name, title, nchX, xbinsize, nchY, ybinsize);
45 }
DQMStore::IBooker & ibook_
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:212

◆ bookProfile()

HistoProviderDQM::MonitorElement * HistoProviderDQM::bookProfile ( const std::string &  name,
const std::string &  title,
int  nchX,
double  lowX,
double  highX,
int  nchY,
double  lowY,
double  highY 
)
virtual

Definition at line 47 of file HistoProviderDQM.cc.

References dqm::implementation::IBooker::bookProfile(), ibook_, Skims_PA_cff::name, and runGCPTkAlMap::title.

Referenced by FlavourHistograms2D< T, G >::FlavourHistograms2D().

54  {
55  return ibook_.bookProfile(name, title, nchX, lowX, highX, nchY, lowY, highY);
56 }
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:399
DQMStore::IBooker & ibook_

◆ setDir()

void HistoProviderDQM::setDir ( const std::string &  name)

Definition at line 13 of file HistoProviderDQM.cc.

References ibook_, Skims_PA_cff::name, and dqm::implementation::NavigatorBase::setCurrentFolder().

Referenced by HistoProviderDQM().

virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
DQMStore::IBooker & ibook_

Member Data Documentation

◆ ibook_

DQMStore::IBooker& HistoProviderDQM::ibook_
private

Definition at line 50 of file HistoProviderDQM.h.

Referenced by book1D(), book2D(), bookProfile(), and setDir().

◆ label_

std::string HistoProviderDQM::label_
private