CMS 3D CMS Logo

SimplePhotonAnalyzer.h

Go to the documentation of this file.
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 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
00019 #include "Geometry/CaloTopology/interface/CaloTopology.h"
00020 
00021 // user include files
00022 #include "FWCore/Framework/interface/Frameworkfwd.h"
00023 #include "FWCore/Framework/interface/EDAnalyzer.h"
00024 #include "FWCore/Framework/interface/ESHandle.h"
00025 #include "FWCore/Framework/interface/Event.h"
00026 #include "FWCore/Framework/interface/MakerMacros.h"
00027 
00028 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00029 
00030 #include <string>
00031 #include "TH1.h"
00032 #include "TProfile.h"
00033 class TFile;
00034 
00035 
00036 class SimplePhotonAnalyzer : public edm::EDAnalyzer {
00037    public:
00038       explicit SimplePhotonAnalyzer( const edm::ParameterSet& );
00039       ~SimplePhotonAnalyzer();
00040 
00041 
00042       virtual void analyze( const edm::Event&, const edm::EventSetup& );
00043       virtual void beginJob(edm::EventSetup const&);
00044       virtual void endJob();
00045  private:
00046 
00047       float  etaTransformation( float a, float b);
00048 
00049       std::string mcProducer_;
00050       std::string mcCollection_;
00051       std::string photonCollectionProducer_;       
00052       std::string photonCollection_;       
00053 
00054       edm::InputTag barrelEcalHits_;
00055       edm::InputTag endcapEcalHits_;
00056 
00057       edm::ESHandle<CaloTopology> theCaloTopo_;
00058 
00059       std::string vertexProducer_;
00060       float sample_;
00061 
00062  
00063       TProfile* effEta_;
00064       TProfile* effPhi_;
00065 
00066       TH1F* h1_scE_;
00067       TH1F* h1_scEt_;
00068       TH1F* h1_scEta_;
00069       TH1F* h1_scPhi_;
00070       TH1F* h1_deltaEtaSC_;
00071       TH1F* h1_deltaPhiSC_ ;
00072  
00073 
00074       TH1F* h1_e5x5_unconvBarrel_;
00075       TH1F* h1_e5x5_unconvEndcap_;
00076       TH1F* h1_ePho_convBarrel_;
00077       TH1F* h1_ePho_convEndcap_;
00078 
00079 
00080       TH1F* h1_recEoverTrueEBarrel_ ;
00081       TH1F* h1_recEoverTrueEEndcap_ ;
00082       TH1F* h1_recESCoverTrueEBarrel_ ;
00083       TH1F* h1_recESCoverTrueEEndcap_ ;
00084       TH1F* h1_deltaEta_;
00085       TH1F* h1_deltaPhi_ ;
00086     
00087 
00088       TH1F* h1_pho_E_;
00089       TH1F* h1_pho_Eta_;
00090       TH1F* h1_pho_Phi_;
00091       TH1F* h1_pho_R9Barrel_;
00092       TH1F* h1_pho_R9Endcap_;
00093     
00094 
00095 
00096 };
00097 #endif

Generated on Tue Jun 9 17:43:28 2009 for CMSSW by  doxygen 1.5.4