00001 #ifndef RecoEcal_Examples_SimplePhotonAnalyzer_h 00002 #define RecoEcal_Examples_SimplePhotonAnalyzer_h 00003 00011 // 00012 // 00013 00014 00015 // system include files 00016 #include <memory> 00017 00018 // user include files 00019 #include "FWCore/Framework/interface/Frameworkfwd.h" 00020 #include "FWCore/Framework/interface/EDAnalyzer.h" 00021 00022 #include "FWCore/Framework/interface/Event.h" 00023 #include "FWCore/Framework/interface/MakerMacros.h" 00024 00025 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00026 00027 #include <string> 00028 #include "TH1.h" 00029 class TFile; 00030 00031 00032 class SimplePhotonAnalyzer : public edm::EDAnalyzer { 00033 public: 00034 explicit SimplePhotonAnalyzer( const edm::ParameterSet& ); 00035 ~SimplePhotonAnalyzer(); 00036 00037 00038 virtual void analyze( const edm::Event&, const edm::EventSetup& ); 00039 virtual void beginJob(edm::EventSetup const&); 00040 virtual void endJob(); 00041 private: 00042 00043 std::string outputFile_; 00044 TFile* rootFile_; 00045 00046 std::string mcProducer_; 00047 std::string mcCollection_; 00048 std::string photonCollectionProducer_; 00049 std::string photonCorrCollectionProducer_; 00050 std::string uncorrectedPhotonCollection_; 00051 std::string vertexProducer_; 00052 00053 00054 std::string correctedPhotonCollection_; 00055 00056 00057 TH1F* h1_scE_; 00058 TH1F* h1_scEta_; 00059 TH1F* h1_scPhi_; 00060 00061 00062 TH1F* h1_phoE_; 00063 TH1F* h1_phoEta_; 00064 TH1F* h1_phoPhi_; 00065 00066 00067 TH1F* h1_recEoverTrueE_ ; 00068 TH1F* h1_deltaEta_; 00069 TH1F* h1_deltaPhi_ ; 00070 00071 00072 00073 00074 TH1F* h1_corrPho_E_; 00075 TH1F* h1_corrPho_Eta_; 00076 TH1F* h1_corrPho_Phi_; 00077 TH1F* h1_corrPho_R9_; 00078 00079 00080 00081 }; 00082 #endif