00001 #ifndef METFILESAVER_H 00002 #define METFILESAVER_H 00003 00004 // author: Mike Schmitt (The University of Florida) 00005 // date: 8/24/2006 00006 // modification: Bobby Scurlock 00007 // date: 03.11.2006 00008 // note: added RMS(METx) vs SumET capability 00009 // modification: Rick Cavanaugh 00010 // date: 05.11.2006 00011 // note: added configuration parameters 00012 // modification: Mike Schmitt 00013 // date: 02.28.2007 00014 // note: code rewrite 00015 00016 #include "DQMServices/Core/interface/DQMStore.h" 00017 00018 #include "FWCore/Framework/interface/Frameworkfwd.h" 00019 #include "FWCore/Framework/interface/EDAnalyzer.h" 00020 00021 #include <string> 00022 #include <map> 00023 #include "DQMServices/Core/interface/MonitorElement.h" 00024 00025 class METFileSaver: public edm::EDAnalyzer { 00026 public: 00027 00028 explicit METFileSaver(const edm::ParameterSet&); 00029 00030 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00031 virtual void beginJob(const edm::EventSetup&) ; 00032 virtual void endJob() ; 00033 00034 private: 00035 00036 // DAQ Tools 00037 DQMStore* dbe_; 00038 std::map<std::string, MonitorElement*> me; 00039 00040 // Inputs from Configuration File 00041 std::string outputFile_; 00042 00043 }; 00044 00045 #endif // METFILESAVER_H