Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:15

0001 #include "DQMOffline/RecoB/interface/HistoProviderDQM.h"
0002 
0003 #include "DQMServices/Core/interface/DQMStore.h"
0004 #include "FWCore/ServiceRegistry/interface/Service.h"
0005 
0006 HistoProviderDQM::HistoProviderDQM(const std::string& prefix, const std::string& label, DQMStore::IBooker& ibook)
0007     : ibook_(ibook) {
0008   // get the store
0009   label_ = prefix + "/" + label;
0010   setDir(label_);
0011 }
0012 
0013 void HistoProviderDQM::setDir(const std::string& name) { ibook_.setCurrentFolder(name); }
0014 
0015 HistoProviderDQM::MonitorElement* HistoProviderDQM::book1D(
0016     const std::string& name, const std::string& title, const int& nchX, const double& lowX, const double& highX) {
0017   return ibook_.book1D(name, title, nchX, lowX, highX);
0018 }
0019 
0020 HistoProviderDQM::MonitorElement* HistoProviderDQM::book1D(const std::string& name,
0021                                                            const std::string& title,
0022                                                            const int& nchX,
0023                                                            float* xbinsize) {
0024   return ibook_.book1D(name, title, nchX, xbinsize);
0025 }
0026 
0027 HistoProviderDQM::MonitorElement* HistoProviderDQM::book2D(const std::string& name,
0028                                                            const std::string& title,
0029                                                            const int& nchX,
0030                                                            const double& lowX,
0031                                                            const double& highX,
0032                                                            const int& nchY,
0033                                                            const double& lowY,
0034                                                            const double& highY) {
0035   return ibook_.book2D(name, title, nchX, lowX, highX, nchY, lowY, highY);
0036 }
0037 
0038 HistoProviderDQM::MonitorElement* HistoProviderDQM::book2D(const std::string& name,
0039                                                            const std::string& title,
0040                                                            const int& nchX,
0041                                                            float* xbinsize,
0042                                                            const int& nchY,
0043                                                            float* ybinsize) {
0044   return ibook_.book2D(name, title, nchX, xbinsize, nchY, ybinsize);
0045 }
0046 
0047 HistoProviderDQM::MonitorElement* HistoProviderDQM::bookProfile(const std::string& name,
0048                                                                 const std::string& title,
0049                                                                 int nchX,
0050                                                                 double lowX,
0051                                                                 double highX,
0052                                                                 int nchY,
0053                                                                 double lowY,
0054                                                                 double highY) {
0055   return ibook_.bookProfile(name, title, nchX, lowX, highX, nchY, lowY, highY);
0056 }