64 virtual void endJob()
override ;
73 : recoGsfElectronCollectionToken_( consumes<
reco::
GsfElectronCollection>( iConfig.getParameter<edm::InputTag>(
"src" ) ) )
74 , edmValueMapFloatToken_( consumes< edm::ValueMap<float> >( iConfig.getParameter<edm::InputTag>(
"eidsrc" ) ) )
75 , eid_( iConfig.getParameter<int>(
"eid" ) )
77 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::auto_ptr<reco::GsfElectronCollection>
collection(product);
106 iEvent.
put(collection);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void beginJob() override
SingleObjectSelector< reco::GenParticleCollection, StringCutObjectSelector< reco::GenParticle > > TauValGenPSelector
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
SingleObjectSelector< edm::View< reco::GsfElectron >, StringCutObjectSelector< reco::GsfElectron >, reco::GsfElectronCollection > TauValElectronSelector
ElectronIdFilter(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
SingleObjectSelector< reco::GenParticleRefVector, StringCutObjectSelector< reco::GenParticleRef > > TauValGenPRefSelector
virtual void endJob() override
SingleObjectSelector< std::vector< reco::Jet >, StringCutObjectSelector< reco::Jet > > TauValJetSelector
edm::EDGetTokenT< edm::ValueMap< float > > edmValueMapFloatToken_
SingleObjectSelector< reco::MuonCollection, StringCutObjectSelector< reco::Muon > > TauValMuonSelector
virtual bool filter(edm::Event &, const edm::EventSetup &) override
SingleObjectSelector< reco::PFJetCollection, StringCutObjectSelector< reco::PFJet > > TauValPFJetSelector
edm::EDGetTokenT< reco::GsfElectronCollection > recoGsfElectronCollectionToken_