Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:12

0001 #ifndef __L1Analysis_L1AnalysisRecoPhoton_H__
0002 #define __L1Analysis_L1AnalysisRecoPhoton_H__
0003 
0004 //-------------------------------------------------------------------------------
0005 // Original code : L1Trigger/L1TNtuples/L1RecoJetNtupleProducer - Jim Brooke
0006 //-------------------------------------------------------------------------------
0007 
0008 #include "L1AnalysisRecoPhotonDataFormat.h"
0009 
0010 //photons
0011 #include "DataFormats/EgammaCandidates/interface/Photon.h"
0012 #include "DataFormats/EgammaCandidates/interface/PhotonFwd.h"
0013 #include "DataFormats/Common/interface/ValueMap.h"
0014 
0015 #include "FWCore/Framework/interface/Event.h"
0016 #include "FWCore/Framework/interface/EventSetup.h"
0017 
0018 namespace L1Analysis {
0019   class L1AnalysisRecoPhoton {
0020   public:
0021     L1AnalysisRecoPhoton();
0022     ~L1AnalysisRecoPhoton();
0023 
0024     //void Print(std::ostream &os = std::cout) const;
0025     void SetPhoton(const edm::Event& event,
0026                    const edm::EventSetup& setup,
0027                    const edm::Handle<reco::PhotonCollection> photons,
0028                    const std::vector<edm::Handle<edm::ValueMap<bool> > > phoVIDDecisionHandles,
0029                    const unsigned& maxPhoton);
0030 
0031     L1AnalysisRecoPhotonDataFormat* getData() { return &recoPhoton_; }
0032     void Reset() { recoPhoton_.Reset(); }
0033 
0034   private:
0035     L1AnalysisRecoPhotonDataFormat recoPhoton_;
0036   };
0037 }  // namespace L1Analysis
0038 #endif