Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef __L1Analysis_L1AnalysisRecoElectron_H__
0002 #define __L1Analysis_L1AnalysisRecoElectron_H__
0003 
0004 //-------------------------------------------------------------------------------
0005 // Created 05/03/2010 - A.C. Le Bihan
0006 //
0007 //
0008 // Original code : L1Trigger/L1TNtuples/L1RecoJetNtupleProducer - Jim Brooke
0009 //-------------------------------------------------------------------------------
0010 
0011 #include "L1AnalysisRecoElectronDataFormat.h"
0012 
0013 //electrons
0014 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
0015 #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
0016 #include "DataFormats/Common/interface/ValueMap.h"
0017 
0018 #include "FWCore/Framework/interface/Event.h"
0019 #include "FWCore/Framework/interface/EventSetup.h"
0020 
0021 namespace L1Analysis {
0022   class L1AnalysisRecoElectron {
0023   public:
0024     L1AnalysisRecoElectron();
0025     ~L1AnalysisRecoElectron();
0026 
0027     //void Print(std::ostream &os = std::cout) const;
0028     void SetElectron(const edm::Event& event,
0029                      const edm::EventSetup& setup,
0030                      //const edm::Handle<edm::View<reco::GsfElectron>>& electrons,
0031                      const edm::Handle<reco::GsfElectronCollection> electrons,
0032                      const std::vector<edm::Handle<edm::ValueMap<bool> > > eleVIDDecisionHandles,
0033                      const unsigned& maxElectron);
0034 
0035     /*(const edm::Event& event,
0036              const edm::EventSetup& setup,
0037              const edm::Handle<reco::GsfElectronCollection> electrons,
0038              const edm::Handle<reco::VertexCollection> vertices,
0039              const edm::Handle<reco::BeamSpot>,
0040              double Rho,
0041              unsigned maxElectron);*/
0042 
0043     L1AnalysisRecoElectronDataFormat* getData() { return &recoElectron_; }
0044     void Reset() { recoElectron_.Reset(); }
0045 
0046   private:
0047     L1AnalysisRecoElectronDataFormat recoElectron_;
0048   };
0049 }  // namespace L1Analysis
0050 #endif