#include <RecoEgamma/ElectronIdentification/plugins/ElectronIDSelector.h>
Public Types | |
typedef reco::GsfElectronCollection | collection |
typedef container::const_iterator | const_iterator |
typedef std::vector < reco::GsfElectronRef > | container |
Public Member Functions | |
const_iterator | begin () const |
ElectronIDSelector (const edm::ParameterSet &iConfig) | |
const_iterator | end () const |
void | select (edm::Handle< reco::GsfElectronCollection > electrons, const edm::Event &iEvent, const edm::EventSetup &iEs) |
virtual | ~ElectronIDSelector () |
Private Attributes | |
algo | select_ |
container | selected_ |
double | threshold_ |
Definition at line 14 of file ElectronIDSelector.h.
typedef reco::GsfElectronCollection ElectronIDSelector< algo >::collection |
Definition at line 22 of file ElectronIDSelector.h.
typedef container::const_iterator ElectronIDSelector< algo >::const_iterator |
Definition at line 28 of file ElectronIDSelector.h.
typedef std::vector<reco::GsfElectronRef> ElectronIDSelector< algo >::container |
Definition at line 26 of file ElectronIDSelector.h.
ElectronIDSelector< algo >::ElectronIDSelector | ( | const edm::ParameterSet & | iConfig | ) | [inline, explicit] |
Definition at line 16 of file ElectronIDSelector.h.
00016 : 00017 select_(iConfig), 00018 threshold_(iConfig.getParameter<double>("threshold")) 00019 { 00020 }
virtual ElectronIDSelector< algo >::~ElectronIDSelector | ( | ) | [inline, virtual] |
const_iterator ElectronIDSelector< algo >::begin | ( | void | ) | const [inline] |
Definition at line 31 of file ElectronIDSelector.h.
References ElectronIDSelector< algo >::selected_.
00031 { return selected_.begin () ; }
const_iterator ElectronIDSelector< algo >::end | ( | void | ) | const [inline] |
Definition at line 32 of file ElectronIDSelector.h.
References ElectronIDSelector< algo >::selected_.
00032 { return selected_.end () ; }
void ElectronIDSelector< algo >::select | ( | edm::Handle< reco::GsfElectronCollection > | electrons, | |
const edm::Event & | iEvent, | |||
const edm::EventSetup & | iEs | |||
) | [inline] |
Definition at line 34 of file ElectronIDSelector.h.
References i, ElectronIDSelector< algo >::select_, ElectronIDSelector< algo >::selected_, and ElectronIDSelector< algo >::threshold_.
00037 { 00038 selected_.clear(); 00039 select_.newEvent(iEvent, iEs); 00040 // Loop over electrons 00041 unsigned int i = 0 ; 00042 for ( reco::GsfElectronCollection::const_iterator eleIt = electrons->begin () ; 00043 eleIt != electrons->end () ; 00044 ++eleIt ) 00045 { 00046 edm::Ref<reco::GsfElectronCollection> electronRef(electrons,i); 00047 if (select_((*eleIt),iEvent,iEs) > threshold_) 00048 selected_.push_back (electronRef) ; 00049 //selected_.push_back ( & * eleIt) ; 00050 ++i; 00051 } 00052 }
algo ElectronIDSelector< algo >::select_ [private] |
Definition at line 56 of file ElectronIDSelector.h.
Referenced by ElectronIDSelector< algo >::select().
container ElectronIDSelector< algo >::selected_ [private] |
Definition at line 55 of file ElectronIDSelector.h.
Referenced by ElectronIDSelector< algo >::begin(), ElectronIDSelector< algo >::end(), and ElectronIDSelector< algo >::select().
double ElectronIDSelector< algo >::threshold_ [private] |
Definition at line 57 of file ElectronIDSelector.h.
Referenced by ElectronIDSelector< algo >::select().