77 : recoGsfElectronCollectionToken_(
79 edmValueMapFloatToken_(consumes<edm::ValueMap<float> >(iConfig.getParameter<edm::
InputTag>(
"eidsrc"))),
80 eid_(iConfig.getParameter<int>(
"eid")) {
81 produces<reco::GsfElectronCollection>();
98 for (
unsigned int i = 0;
i < electrons->size();
i++) {
100 if ((eIDmap[electronRef]) ==
eid_)
101 product->push_back((*electrons)[
i]);
105 std::unique_ptr<reco::GsfElectronCollection>
collection(product);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
~ElectronIdFilter() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::ValueMap< float > > edmValueMapFloatToken_
SingleObjectSelector< reco::MuonCollection, StringCutObjectSelector< reco::Muon > > TauValMuonSelector
#define DEFINE_FWK_MODULE(type)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
SingleObjectSelector< reco::PFJetCollection, StringCutObjectSelector< reco::PFJet > > TauValPFJetSelector
ElectronIdFilter(const edm::ParameterSet &)
SingleObjectSelector< reco::GenParticleCollection, StringCutObjectSelector< reco::GenParticle > > TauValGenPSelector
SingleObjectSelector< std::vector< reco::Jet >, StringCutObjectSelector< reco::Jet > > TauValJetSelector
SingleObjectSelector< reco::GenParticleRefVector, StringCutObjectSelector< reco::GenParticleRef > > TauValGenPRefSelector
SingleObjectSelector< edm::View< reco::GsfElectron >, StringCutObjectSelector< reco::GsfElectron >, reco::GsfElectronCollection > TauValElectronSelector
bool filter(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::GsfElectronCollection > recoGsfElectronCollectionToken_