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 00050 void processHistograms(); 00051 00052 edm::ParameterSet parameters; 00053 00054 DQMStore* dbe; 00055 std::string input_dir, output_dir; 00056 int counterLS; 00057 int counterEvt; 00058 int prescaleLS; 00059 int prescaleEvt; 00060 00061 bool m_runInEventLoop; 00062 bool m_runInEndLumi; 00063 bool m_runInEndRun; 00064 bool m_runInEndJob; 00065 00066 00067 00068 // -------- member data -------- 00069 MonitorElement *csctferrors_; 00070 }; 00071 00072 #endif