00001 #ifndef MuonAnalyzerBase_H 00002 #define MuonAnalyzerBase_H 00003 00004 00015 #include <memory> 00016 #include <fstream> 00017 #include "FWCore/Framework/interface/Frameworkfwd.h" 00018 #include "FWCore/Framework/interface/Event.h" 00019 #include "FWCore/Framework/interface/MakerMacros.h" 00020 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00021 #include "FWCore/ServiceRegistry/interface/Service.h" 00022 #include "DQMServices/Core/interface/DQMStore.h" 00023 #include "DQMServices/Core/interface/MonitorElement.h" 00024 #include "DataFormats/MuonReco/interface/Muon.h" 00025 #include "DataFormats/TrackReco/interface/Track.h" 00026 #include "RecoMuon/TrackingTools/interface/MuonServiceProxy.h" 00027 00028 class MuonAnalyzerBase { 00029 public: 00030 00032 MuonAnalyzerBase(MuonServiceProxy *theServ):theService(theServ){} 00033 00035 virtual ~MuonAnalyzerBase() {} 00036 00038 virtual void beginJob(DQMStore* dbe)= 0; 00039 00041 void analyze(const edm::Event&, const edm::EventSetup&, reco::Muon& recoMuon){} 00042 00044 void analyze(const edm::Event&, const edm::EventSetup&, reco::Track& recoTrack){} 00045 00046 MuonServiceProxy* service() {return theService;} 00047 00048 private: 00049 // ----------member data --------------------------- 00050 MuonServiceProxy *theService; 00051 }; 00052 #endif