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