CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/RecoEgamma/Examples/plugins/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();
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_scEta_;
00067       TH1F* h1_deltaEtaSC_;
00068       TH1F* h1_pho_E_;
00069       TH1F* h1_pho_Et_;
00070       TH1F* h1_pho_Eta_;
00071       TH1F* h1_pho_Phi_;
00072       TH1F* h1_pho_R9Barrel_;
00073       TH1F* h1_pho_R9Endcap_;
00074       TH1F* h1_pho_sigmaIetaIetaBarrel_;
00075       TH1F* h1_pho_sigmaIetaIetaEndcap_;
00076       TH1F* h1_pho_hOverEBarrel_;
00077       TH1F* h1_pho_hOverEEndcap_;
00078       TH1F* h1_pho_ecalIsoBarrel_;
00079       TH1F* h1_pho_ecalIsoEndcap_;
00080       TH1F* h1_pho_hcalIsoBarrel_;
00081       TH1F* h1_pho_hcalIsoEndcap_;
00082       TH1F* h1_pho_trkIsoBarrel_;
00083       TH1F* h1_pho_trkIsoEndcap_;
00084 
00085 
00086 
00087       TH1F* h1_recEoverTrueEBarrel_ ;
00088       TH1F* h1_recEoverTrueEEndcap_ ;
00089       TH1F* h1_deltaEta_;
00090       TH1F* h1_deltaPhi_ ;
00091 
00092 
00093 
00094 
00095 
00096 };
00097 #endif