Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DQM_HLTMONITORCLIENT_DQM_H
0002 #define DQM_HLTMONITORCLIENT_DQM_H
0003 
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/Framework/interface/MakerMacros.h"
0007 #include <FWCore/Framework/interface/EDAnalyzer.h>
0008 #include "DQMServices/Core/interface/DQMStore.h"
0009 
0010 #include <memory>
0011 #include <iostream>
0012 #include <fstream>
0013 #include <string>
0014 #include <vector>
0015 #include <map>
0016 #include <TH1F.h>
0017 #include <TH2F.h>
0018 #include <TProfile2D.h>
0019 
0020 class DQMOfflineHLTEventInfoClient : public edm::EDAnalyzer {
0021 public:
0022   typedef dqm::legacy::MonitorElement MonitorElement;
0023   typedef dqm::legacy::DQMStore DQMStore;
0024 
0025   /// Constructor
0026   DQMOfflineHLTEventInfoClient(const edm::ParameterSet& ps);
0027 
0028   /// Destructor
0029   ~DQMOfflineHLTEventInfoClient() override;
0030 
0031 protected:
0032   /// BeginJob
0033   void beginJob() override;
0034 
0035   /// BeginRun
0036   void beginRun(const edm::Run& r, const edm::EventSetup& c) override;
0037 
0038   /// Fake Analyze
0039   void analyze(const edm::Event& e, const edm::EventSetup& c) override;
0040 
0041   /// EndRun
0042   void endRun(const edm::Run& r, const edm::EventSetup& c) override;
0043 
0044 private:
0045   void initialize();
0046   edm::ParameterSet parameters_;
0047 
0048   DQMStore* dbe_;
0049   bool verbose_;
0050   int counterLS_;    ///counter
0051   int counterEvt_;   ///counter
0052   int prescaleLS_;   ///units of lumi sections
0053   int prescaleEvt_;  ///prescale on number of events
0054   // -------- member data --------
0055 
0056   MonitorElement* reportSummary_;
0057   std::vector<MonitorElement*> reportSummaryContent_;
0058   MonitorElement* reportSummaryMap_;
0059 
0060   MonitorElement* CertificationSummary_;
0061   std::vector<MonitorElement*> CertificationSummaryContent_;
0062   MonitorElement* CertificationSummaryMap_;
0063 };
0064 
0065 #endif