Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-10 02:54:05

0001 #ifndef __HistoWrapper__
0002 #define __HistoWrapper__
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 
0006 #include "DQMServices/Core/interface/DQMStore.h"
0007 typedef dqm::legacy::DQMStore DQMStore;
0008 #include "DQMServices/Core/interface/MonitorElement.h"
0009 typedef dqm::legacy::MonitorElement MonitorElement;
0010 
0011 enum PL { kEverything, kVital };
0012 
0013 class HistoWrapper {
0014 public:
0015   HistoWrapper(const edm::ParameterSet&);
0016   ~HistoWrapper();
0017 
0018   MonitorElement* book1D(DQMStore::IBooker& iBooker,
0019                          TString const& name,
0020                          TString const& title,
0021                          int const nchX,
0022                          double const lowX,
0023                          double const highX,
0024                          int level = kEverything);
0025   MonitorElement* book2D(DQMStore::IBooker& iBooker,
0026                          TString const& name,
0027                          TString const& title,
0028                          int nchX,
0029                          double lowX,
0030                          double highX,
0031                          int nchY,
0032                          double lowY,
0033                          double highY,
0034                          int level = kEverything);
0035 
0036 private:
0037   PL plotlevel;
0038   int cAllHistograms;
0039   int cPlottedHistograms;
0040 };
0041 #endif