File indexing completed on 2024-04-06 12:21:12
0001 #ifndef __L1Analysis_L1AnalysisRecoElectron_H__
0002 #define __L1Analysis_L1AnalysisRecoElectron_H__
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "L1AnalysisRecoElectronDataFormat.h"
0012
0013
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
0028 void SetElectron(const edm::Event& event,
0029 const edm::EventSetup& setup,
0030
0031 const edm::Handle<reco::GsfElectronCollection> electrons,
0032 const std::vector<edm::Handle<edm::ValueMap<bool> > > eleVIDDecisionHandles,
0033 const unsigned& maxElectron);
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043 L1AnalysisRecoElectronDataFormat* getData() { return &recoElectron_; }
0044 void Reset() { recoElectron_.Reset(); }
0045
0046 private:
0047 L1AnalysisRecoElectronDataFormat recoElectron_;
0048 };
0049 }
0050 #endif