Go to the documentation of this file.00001 #ifndef RPCEventSummary_H
00002 #define RPCEventSummary_H
00003
00004 #include "FWCore/Framework/interface/Frameworkfwd.h"
00005 #include <FWCore/Framework/interface/EDAnalyzer.h>
00006 #include <FWCore/Framework/interface/ESHandle.h>
00007 #include <FWCore/Framework/interface/MakerMacros.h>
00008 #include "FWCore/ServiceRegistry/interface/Service.h"
00009 #include "DQMServices/Core/interface/MonitorElement.h"
00010 #include "DQMServices/Core/interface/DQMStore.h"
00011 #include <string>
00012
00013
00014 class RPCEventSummary:public edm::EDAnalyzer {
00015 public:
00016
00018 RPCEventSummary(const edm::ParameterSet& ps);
00019
00021 virtual ~RPCEventSummary();
00022
00024 void beginJob();
00025
00026
00027 void beginRun(const edm::Run& r, const edm::EventSetup& c);
00028
00029
00030 void endRun(const edm::Run& r, const edm::EventSetup& c);
00031
00033 void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
00034
00036 void analyze(const edm::Event& iEvent, const edm::EventSetup& c);
00037
00039 void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
00040
00041
00042 private:
00043 void clientOperation();
00044 std::string eventInfoPath_, prefixDir_;
00045
00046
00047 bool enableReportSummary_;
00048 int prescaleFactor_, minimumEvents_;
00049 MonitorElement * RPCEvents ;
00050 bool init_;
00051 DQMStore* dbe_;
00052 bool offlineDQM_;
00053 int lumiCounter_;
00054 std::string globalFolder_, prefixFolder_;
00055
00056 int numberDisk_;
00057 bool doEndcapCertification_;
00058 std::pair<int, int> FEDRange_;
00059 int NumberOfFeds_;
00060
00061 enum RPCQualityFlags{DEAD = 6, PARTIALLY_DEAD=5};
00062
00063 };
00064
00065 #endif