Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-20 10:42:32

0001 #ifndef Validation_EventGenerator_DQMHelper
0002 #define Validation_EventGenerator_DQMHelper
0003 
0004 /* class DQMHelper
0005  *
0006  * Simple  class to configure dqm histograms
0007  *
0008  */
0009 
0010 #include <iostream>
0011 #include "DQMServices/Core/interface/DQMStore.h"
0012 #include "FWCore/ServiceRegistry/interface/Service.h"
0013 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0014 
0015 class DQMHelper {
0016 public:
0017   typedef DQMEDAnalyzer::DQMStore DQMStore;
0018   typedef DQMEDAnalyzer::MonitorElement MonitorElement;
0019 
0020   DQMHelper(DQMStore::IBooker *i);
0021   virtual ~DQMHelper();
0022 
0023   MonitorElement *book1dHisto(const std::string &name,
0024                               const std::string &title,
0025                               int n,
0026                               double xmin,
0027                               double xmax,
0028                               const std::string &xaxis,
0029                               const std::string &yaxis);
0030   MonitorElement *book2dHisto(const std::string &name,
0031                               const std::string &title,
0032                               int nx,
0033                               double xmin,
0034                               double xmax,
0035                               int ny,
0036                               double ymin,
0037                               double ymax,
0038                               const std::string &xaxis,
0039                               const std::string &yaxis);
0040 
0041   MonitorElement *book1dHisto(const std::string &name, const std::string &title, int n, double xmin, double xmax);
0042   MonitorElement *book2dHisto(const std::string &name,
0043                               const std::string &title,
0044                               int nx,
0045                               double xmin,
0046                               double xmax,
0047                               int ny,
0048                               double ymin,
0049                               double ymax);
0050 
0051 private:
0052   DQMStore::IBooker *ibooker;
0053 };
0054 
0055 #endif