48 produces<std::vector<reco::Track>>();
63 auto goodTracks = std::make_unique<std::vector<reco::Track>>();
64 if (!vertices->empty() && !tracks->empty()) {
65 auto const& vtxPos = vertices->front().position();
67 std::cbegin(*tracks), std::cend(*tracks), std::back_inserter(*
goodTracks), [
this, &vtxPos](
auto const&
track) {
edm::EDGetTokenT< std::vector< reco::Vertex > > v_recoVertexToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< std::vector< reco::Track > > v_recoTrackToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
auto const & tracks
cannot be loose
TrackFromPVSelector(edm::ParameterSet const &iConfig)
void produce(edm::StreamID, edm::Event &iEvent, edm::EventSetup const &iSetup) const override
Abs< T >::type abs(const T &t)
T getParameter(std::string const &) const