00001 // system include files 00002 #include <memory> 00003 #include <stdio.h> 00004 #include <string> 00005 00006 // Framework 00007 #include "FWCore/Framework/interface/Frameworkfwd.h" 00008 #include "FWCore/Framework/interface/EDAnalyzer.h" 00009 #include "FWCore/Framework/interface/LuminosityBlock.h" 00010 #include "FWCore/Framework/interface/Event.h" 00011 #include "FWCore/Framework/interface/MakerMacros.h" 00012 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00013 00014 #include "DQM/RPCMonitorClient/interface/RPCClient.h" 00015 #include "DQMServices/Core/interface/DQMStore.h" 00016 00017 00018 // 00019 // class decleration 00020 // 00021 00022 class RPCQualityTests : public edm::EDAnalyzer { 00023 public: 00024 explicit RPCQualityTests(const edm::ParameterSet&); 00025 ~RPCQualityTests(); 00026 00027 00028 private: 00029 virtual void beginJob() ; 00030 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00031 virtual void endJob(); 00032 virtual void beginRun(const edm::Run& r, const edm::EventSetup& c); 00033 virtual void endRun(const edm::Run& r, const edm::EventSetup& c); 00034 00035 void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ; 00036 void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c); 00037 00038 std::map<std::string , RPCClient*> makeQTestMap(); 00039 00040 00041 int nevents_; 00042 00043 DQMStore * dbe_ ; 00044 00045 std::string hostName_; 00046 int hostPort_; 00047 std::string clientName_; 00048 00049 00050 bool getQualityTestsFromFile_; 00051 00052 00053 edm::ParameterSet parameters_; 00054 bool enableMonitorDaemon_; 00055 bool enableQTests_; 00056 bool enableInputFile_; 00057 00058 std::vector<RPCClient*> qtests_; 00059 std::vector<std::string> qtestList_; 00060 std::string inputFile_; 00061 std::string eventInfoPath_; 00062 int eSummary_; 00063 int prescaleFactor_; 00064 00065 // std::vector<std::string> enabledQTests_; 00066 // std::map<std::string , RPCClient*> qTest_; 00067 00068 // ----------member data --------------------------- 00069 };