00001 #ifndef TopMuonAnalyzer_h 00002 #define TopMuonAnalyzer_h 00003 00004 #include "TH1.h" 00005 00006 #include "FWCore/Framework/interface/Event.h" 00007 #include "FWCore/Framework/interface/EDAnalyzer.h" 00008 #include "FWCore/ParameterSet/interface/InputTag.h" 00009 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00010 #include "FWCore/ServiceRegistry/interface/Service.h" 00011 #include "PhysicsTools/UtilAlgos/interface/TFileService.h" 00012 00013 class TopMuonAnalyzer : public edm::EDAnalyzer { 00014 00015 public: 00016 00017 explicit TopMuonAnalyzer(const edm::ParameterSet&); 00018 ~TopMuonAnalyzer(); 00019 00020 private: 00021 00022 virtual void beginJob(const edm::EventSetup&) ; 00023 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00024 virtual void endJob() ; 00025 00026 edm::InputTag inputElec_; 00027 edm::InputTag inputMuon_; 00028 00029 TH1I *Num_Leptons; 00030 TH1I *Num_Muons; 00031 TH1F *pt_Muons; 00032 TH1F *energy_Muons; 00033 TH1F *eta_Muons; 00034 TH1F *phi_Muons; 00035 }; 00036 00037 #endif