51 produces<std::vector<reco::GsfElectron>>();
65 auto goodGsfElectrons = std::make_unique<std::vector<reco::GsfElectron>>();
67 if (!vertices->empty() && !gsfElectrons->empty()) {
68 auto const&
pv = vertices->front();
69 std::copy_if(std::cbegin(*gsfElectrons),
70 std::cend(*gsfElectrons),
71 std::back_inserter(*goodGsfElectrons),
72 [
this, &
pv](
auto const& GsfElectron) {
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
GsfElectronFromPVSelector(edm::ParameterSet const &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< std::vector< reco::GsfElectron > > v_recoGsfElectronToken_
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
Abs< T >::type abs(const T &t)
T getParameter(std::string const &) const
edm::EDGetTokenT< std::vector< reco::Vertex > > v_recoVertexToken_