00001 #ifndef DTSummaryClients_H 00002 #define DTSummaryClients_H 00003 00004 00016 #include "FWCore/Framework/interface/Frameworkfwd.h" 00017 #include <FWCore/Framework/interface/EDAnalyzer.h> 00018 #include "DataFormats/Common/interface/Handle.h" 00019 #include <FWCore/Framework/interface/ESHandle.h> 00020 #include <FWCore/Framework/interface/Event.h> 00021 #include <FWCore/Framework/interface/MakerMacros.h> 00022 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00023 #include <FWCore/Framework/interface/LuminosityBlock.h> 00024 00025 #include "DQMServices/Core/interface/DQMStore.h" 00026 #include "DQMServices/Core/interface/MonitorElement.h" 00027 #include "FWCore/ServiceRegistry/interface/Service.h" 00028 #include "FWCore/Framework/interface/Run.h" 00029 00030 #include <memory> 00031 #include <string> 00032 00033 class DTSummaryClients: public edm::EDAnalyzer{ 00034 00035 public: 00036 00038 DTSummaryClients(const edm::ParameterSet& ps); 00039 00041 virtual ~DTSummaryClients(); 00042 00043 protected: 00044 00046 void beginRun(edm::Run const& run, edm::EventSetup const& eSetup); 00047 00049 void endRun(edm::Run const& run, edm::EventSetup const& eSetup); 00050 00052 void endJob(void); 00053 00055 void analyze(const edm::Event& e, const edm::EventSetup& c); 00056 00058 void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c); 00059 00060 private: 00061 00062 int nevents; 00063 DQMStore* dbe; 00064 00065 MonitorElement* summaryReport; 00066 MonitorElement* summaryReportMap; 00067 std::vector<MonitorElement*> theSummaryContents; 00068 00069 }; 00070 00071 #endif