00001 #ifndef DQM_L1TMONITORCLIENT_L1TCSCTFCLIENT_H 00002 #define DQM_L1TMONITORCLIENT_L1TCSCTFCLIENT_H 00003 00004 #include "FWCore/Framework/interface/Frameworkfwd.h" 00005 #include "FWCore/Framework/interface/Event.h" 00006 #include "FWCore/Framework/interface/MakerMacros.h" 00007 #include <FWCore/Framework/interface/EDAnalyzer.h> 00008 #include "DQMServices/Core/interface/DQMStore.h" 00009 #include "DQMServices/Core/interface/MonitorElement.h" 00010 00011 #include <string> 00012 00013 class L1TCSCTFClient: public edm::EDAnalyzer { 00014 public: 00015 00017 L1TCSCTFClient(const edm::ParameterSet& ps); 00018 00020 virtual ~L1TCSCTFClient(); 00021 00022 protected: 00023 00025 void beginJob(void); 00026 00028 void beginRun(const edm::Run& r, const edm::EventSetup& c); 00029 00031 void analyze(const edm::Event& e, const edm::EventSetup& c) ; 00032 00033 void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, 00034 const edm::EventSetup& context) ; 00035 00037 void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, 00038 const edm::EventSetup& c); 00039 00041 void endRun(const edm::Run& r, const edm::EventSetup& c); 00042 00044 void endJob(); 00045 00046 private: 00047 00048 void initialize(); 00049 edm::ParameterSet parameters; 00050 00051 DQMStore* dbe; 00052 std::string input_dir, output_dir; 00053 int counterLS; 00054 int counterEvt; 00055 int prescaleLS; 00056 int prescaleEvt; 00057 00058 // -------- member data -------- 00059 MonitorElement *csctferrors_; 00060 }; 00061 00062 #endif