00001 #ifndef ggPFPhotonAnalyzer_h 00002 #define ggPFPhotonAnalyzer_h 00003 // system include files 00004 #include <memory> 00005 #include <string> 00006 #include <iostream> 00007 // user include files 00008 #include "FWCore/Framework/interface/Frameworkfwd.h" 00009 #include "FWCore/Framework/interface/EDAnalyzer.h" 00010 #include "FWCore/Framework/interface/ESHandle.h" 00011 #include "FWCore/Framework/interface/Event.h" 00012 #include "FWCore/Framework/interface/EventSetup.h" 00013 #include "FWCore/Framework/interface/MakerMacros.h" 00014 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00015 #include "Geometry/CaloGeometry/interface/CaloGeometry.h" 00016 #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h" 00017 #include "RecoEgamma/EgammaTools/interface/ggPFPhotons.h" 00018 00019 #include <TROOT.h> 00020 #include <TFile.h> 00021 #include <TTree.h> 00022 00023 class ggPFPhotonAnalyzer : public edm::EDAnalyzer { 00024 public: 00025 00026 explicit ggPFPhotonAnalyzer(const edm::ParameterSet& iConfig); 00027 00028 ~ggPFPhotonAnalyzer(); 00029 00030 virtual void analyze(const edm::Event&, const edm::EventSetup& es); 00031 00032 virtual void beginRun(const edm::Run & r, const edm::EventSetup & c); 00033 virtual void endJob(); 00034 00035 private: 00036 edm::InputTag PFPhotonTag_; 00037 edm::InputTag recoPhotonTag_; 00038 edm::InputTag PFElectronTag_; 00039 edm::InputTag pfPartTag_; 00040 edm::InputTag ebReducedRecHitCollection_; 00041 edm::InputTag eeReducedRecHitCollection_; 00042 edm::InputTag esRecHitCollection_; 00043 edm::InputTag beamSpotCollection_; 00044 const CaloSubdetectorGeometry* geomBar_; 00045 const CaloSubdetectorGeometry* geomEnd_; 00046 const GBRForest* PFLCBarrel_; 00047 const GBRForest* PFLCEndcap_; 00048 TFile *tf1; 00049 TTree* pf; 00050 TTree* pfclus; 00051 int isConv_; 00052 int hasSLConv_; 00053 int isMatch_; 00054 float PFPS1_; 00055 float PFPS2_; 00056 float MustE_; 00057 float MustEOut_; 00058 float PFLowCE_; 00059 float PFdEta_; 00060 float PFdPhi_; 00061 float PFClusRMS_; 00062 float PFClusRMSMust_; 00063 float VtxZ_; 00064 float VtxZErr_; 00065 float PFPhoECorr_; 00066 float recoPFEnergy_; 00067 float SCRawE_; 00068 }; 00069 #endif