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

Private Attributes

DQMStoredqmStore_
 
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 
)

Definition at line 8 of file HistoProviderDQM.cc.

References dqmStore_, diffTwoXMLs::label, label_, cppFunctionSkipper::operator, and setDir().

8  {
9  // get the store
11  label_ =prefix+"/"+label;
12  setDir(label_);
13 }
DQMStore * dqmStore_
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 dqmStore_, DQMStore::get(), and label_.

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

62  {
63 return dqmStore_->get(label_+"/"+name);
64 }
DQMStore * dqmStore_
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1623
std::string label_
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::book1D(), and dqmStore_.

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

26  {
27  return (dqmStore_->book1D (name, title, nchX,lowX,highX));
28 
29 }
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:872
DQMStore * dqmStore_
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::book1D(), and dqmStore_.

34  {
35  return (dqmStore_->book1D (name, title,nchX, xbinsize));
36 }
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:872
DQMStore * dqmStore_
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::book2D(), and dqmStore_.

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

41  {
42  return (dqmStore_->book2D (name, title, nchX,lowX,highX, nchY, lowY, highY));
43 
44 }
DQMStore * dqmStore_
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:1000
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::book2D(), and dqmStore_.

50  {
51  return (dqmStore_->book2D (name, title,nchX, xbinsize, nchY, ybinsize));
52 }
DQMStore * dqmStore_
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:1000
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::bookProfile(), and dqmStore_.

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

57  {
58  return (dqmStore_->bookProfile (name,title, nchX,lowX,highX, nchY, lowY, highY));
59 
60 }
DQMStore * dqmStore_
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1186
void HistoProviderDQM::setDir ( const std::string &  name)

Definition at line 20 of file HistoProviderDQM.cc.

References dqmStore_, and DQMStore::setCurrentFolder().

Referenced by HistoProviderDQM().

20  {
22 }
DQMStore * dqmStore_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:584
void HistoProviderDQM::show ( )

Member Data Documentation

DQMStore* HistoProviderDQM::dqmStore_
private

Definition at line 44 of file HistoProviderDQM.h.

Referenced by access(), book1D(), book2D(), bookProfile(), HistoProviderDQM(), setDir(), and show().

std::string HistoProviderDQM::label_
private