test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HistoProviderDQM Class Reference

#include <HistoProviderDQM.h>

Public Member Functions

virtual MonitorElementaccess (const std::string &name)
 
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 &)
 
void show ()
 
virtual ~HistoProviderDQM ()
 

Private Attributes

DQMStore::IBookeribook_
 
std::string label_
 

Detailed Description

Definition at line 10 of file HistoProviderDQM.h.

Constructor & Destructor Documentation

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

Definition at line 8 of file HistoProviderDQM.cc.

References diffTwoXMLs::label, label_, and setDir().

8  : ibook_(ibook){
9  // get the store
10  label_ =prefix+"/"+label;
11  setDir(label_);
12 }
DQMStore::IBooker & ibook_
void setDir(const std::string &)
std::string label_
virtual HistoProviderDQM::~HistoProviderDQM ( )
inlinevirtual

Definition at line 13 of file HistoProviderDQM.h.

13 {}

Member Function Documentation

MonitorElement * HistoProviderDQM::access ( const std::string &  name)
virtual

Definition at line 62 of file HistoProviderDQM.cc.

References gather_cfg::cout.

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

62  {
63  //return ibook_.get(label_+"/"+name);
64  std::cout<<"'get' forbidden with DQMStore::IBooker: obsolete method!"<<std::endl;
65  return 0;
66 }
tuple cout
Definition: gather_cfg.py:121
MonitorElement * HistoProviderDQM::book1D ( const std::string &  name,
const std::string &  title,
const int &  nchX,
const double &  lowX,
const double &  highX 
)
virtual

Definition at line 24 of file HistoProviderDQM.cc.

References DQMStore::IBooker::book1D(), and ibook_.

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

26  {
27  return (ibook_.book1D (name, title, nchX,lowX,highX));
28 
29 }
DQMStore::IBooker & ibook_
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:113
MonitorElement * HistoProviderDQM::book1D ( const std::string &  name,
const std::string &  title,
const int &  nchX,
float *  xbinsize 
)
virtual

Definition at line 32 of file HistoProviderDQM.cc.

References DQMStore::IBooker::book1D(), and ibook_.

34  {
35  return (ibook_.book1D (name, title,nchX, xbinsize));
36 }
DQMStore::IBooker & ibook_
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:113
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 38 of file HistoProviderDQM.cc.

References DQMStore::IBooker::book2D(), and ibook_.

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

41  {
42  return (ibook_.book2D (name, title, nchX,lowX,highX, nchY, lowY, highY));
43 
44 }
DQMStore::IBooker & ibook_
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:131
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 47 of file HistoProviderDQM.cc.

References DQMStore::IBooker::book2D(), and ibook_.

50  {
51  return (ibook_.book2D (name, title,nchX, xbinsize, nchY, ybinsize));
52 }
DQMStore::IBooker & ibook_
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:131
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 54 of file HistoProviderDQM.cc.

References DQMStore::IBooker::bookProfile(), and ibook_.

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

57  {
58  return (ibook_.bookProfile (name,title, nchX,lowX,highX, nchY, lowY, highY));
59 
60 }
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:155
DQMStore::IBooker & ibook_
void HistoProviderDQM::setDir ( const std::string &  name)

Definition at line 20 of file HistoProviderDQM.cc.

References ibook_, and DQMStore::IBooker::setCurrentFolder().

Referenced by HistoProviderDQM().

20  {
22 }
DQMStore::IBooker & ibook_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
void HistoProviderDQM::show ( )

Definition at line 14 of file HistoProviderDQM.cc.

References gather_cfg::cout.

Referenced by Vispa.Main.AboutDialog.AboutDialog::onScreen(), Vispa.Gui.BoxContentDialog.BoxContentDialog::onScreen(), and Vispa.Gui.FindDialog.FindDialog::onScreen().

14  {
15  //ibook_.showDirStructure();
16  std::cout<<"No showDirStructure() avaialble with DQMStore::IBooker: obsolete method!"<<std::endl;
17 }
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

DQMStore::IBooker& HistoProviderDQM::ibook_
private

Definition at line 46 of file HistoProviderDQM.h.

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

std::string HistoProviderDQM::label_
private