1 #ifndef RecoEgamma_ElectronIdentification_ElectronIDExternalProducer_h
2 #define RecoEgamma_ElectronIdentification_ElectronIDExternalProducer_h
20 src_(iConfig.getParameter<edm::InputTag>(
"src")),
23 produces<edm::ValueMap<float> >();
36 template<
typename algo>
43 select_.newEvent(iEvent, iSetup);
46 std::vector<float>
values; values.reserve(electrons->size());
47 for ( reco::GsfElectronCollection::const_iterator eleIt = electrons->begin () ;
48 eleIt != electrons->end () ;
50 values.push_back(
float( select_((*eleIt),iEvent,iSetup) ) );
56 filler.
insert(electrons, values.begin(), values.end());
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
void insert(const H &h, I begin, I end)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
ElectronIDExternalProducer(const edm::ParameterSet &iConfig)
virtual ~ElectronIDExternalProducer()