CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/DQMOffline/RecoB/src/HistoProviderDQM.cc

Go to the documentation of this file.
00001 #include "DQMOffline/RecoB/interface/HistoProviderDQM.h"
00002 
00003 #include "DQMServices/Core/interface/DQMStore.h"
00004 #include "DQMServices/Core/interface/MonitorElement.h"
00005 #include "FWCore/ServiceRegistry/interface/Service.h"
00006 
00007 
00008 HistoProviderDQM::HistoProviderDQM(const std::string& prefix, const std::string& label){
00009   //  get the store
00010   dqmStore_ = edm::Service<DQMStore>().operator->();
00011   label_ =prefix+"/"+label;
00012   setDir(label_);
00013 }
00014 
00015 void HistoProviderDQM::show(){
00016   dqmStore_->showDirStructure();
00017 }
00018 
00019 
00020 void HistoProviderDQM::setDir(const std::string& name){
00021   dqmStore_->setCurrentFolder(name);
00022 }
00023 
00024 MonitorElement* HistoProviderDQM::book1D(const std::string &name,
00025                                 const std::string &title,
00026                                 const int& nchX, const double& lowX, const double& highX) {
00027   return (dqmStore_->book1D (name, title, nchX,lowX,highX));
00028 
00029 }
00030 
00031 
00032 MonitorElement* HistoProviderDQM::book1D (const std::string &name,
00033                                  const std::string &title,
00034                                  const int& nchX, float *xbinsize){
00035   return (dqmStore_->book1D (name, title,nchX, xbinsize));
00036 }        
00037 
00038 MonitorElement* HistoProviderDQM::book2D(const std::string &name,
00039                                 const std::string &title,
00040                                 const int& nchX, const double& lowX, const double& highX,
00041                                 const int& nchY, const double& lowY, const double& highY) {
00042   return (dqmStore_->book2D (name, title, nchX,lowX,highX, nchY, lowY, highY));
00043 
00044 }
00045 
00046 
00047 MonitorElement* HistoProviderDQM::book2D (const std::string &name,
00048                                  const std::string &title,
00049                                  const int& nchX, float *xbinsize,
00050                                  const int& nchY, float *ybinsize){
00051   return (dqmStore_->book2D (name, title,nchX, xbinsize, nchY, ybinsize));
00052 }
00053         
00054 MonitorElement* HistoProviderDQM::bookProfile(const std::string &name,
00055                                 const std::string &title,
00056                                 int nchX, double lowX, double highX,
00057                                 int nchY, double lowY, double highY) {
00058   return (dqmStore_->bookProfile (name,title, nchX,lowX,highX, nchY, lowY, highY));
00059 
00060 }
00061 
00062 MonitorElement * HistoProviderDQM::access(const std::string &name){
00063 return   dqmStore_->get(label_+"/"+name);   
00064 }
00065