00001 #ifndef JetMETAnalyzer_H 00002 #define JetMETAnalyzer_H 00003 00004 00015 #include <memory> 00016 #include <fstream> 00017 #include "FWCore/Framework/interface/Frameworkfwd.h" 00018 #include "FWCore/Framework/interface/EDAnalyzer.h" 00019 #include "FWCore/Framework/interface/Event.h" 00020 #include "FWCore/Framework/interface/MakerMacros.h" 00021 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00022 #include "FWCore/ServiceRegistry/interface/Service.h" 00023 #include "DQMServices/Core/interface/DQMStore.h" 00024 #include "DQMServices/Core/interface/MonitorElement.h" 00025 #include "DQMOffline/JetMET/src/JetAnalyzer.h" 00026 #include "DQMOffline/JetMET/src/PFJetAnalyzer.h" 00027 #include "DQMOffline/JetMET/src/CaloMETAnalyzer.h" 00028 00029 class JetMETAnalyzer : public edm::EDAnalyzer { 00030 public: 00031 00033 JetMETAnalyzer(const edm::ParameterSet&); 00034 00036 virtual ~JetMETAnalyzer(); 00037 00039 void beginJob(edm::EventSetup const& iSetup); 00040 00042 void analyze(const edm::Event&, const edm::EventSetup&); 00043 00045 void endJob(void); 00046 00047 private: 00048 // ----------member data --------------------------- 00049 00050 DQMStore* dbe; 00051 edm::ParameterSet parameters; 00052 std::string metname; 00053 00054 edm::InputTag theCaloJetCollectionLabel; 00055 edm::InputTag theSCJetCollectionLabel; 00056 edm::InputTag theICJetCollectionLabel; 00057 edm::InputTag thePFJetCollectionLabel; 00058 edm::InputTag theCaloMETCollectionLabel; 00059 edm::InputTag theCaloMETNoHFCollectionLabel; 00060 edm::InputTag theTriggerResultsLabel; 00061 00062 std::string LoJetTrigger; 00063 std::string HiJetTrigger; 00064 00065 bool theJetAnalyzerFlag; 00066 bool thePFJetAnalyzerFlag; 00067 bool theCaloMETAnalyzerFlag; 00068 00069 // the jet analyzer 00070 JetAnalyzer * theJetAnalyzer; 00071 JetAnalyzer * theSCJetAnalyzer; 00072 JetAnalyzer * theICJetAnalyzer; 00073 PFJetAnalyzer * thePFJetAnalyzer; 00074 CaloMETAnalyzer * theCaloMETAnalyzer; 00075 00076 }; 00077 #endif