45 max_dz_{iConfig.getParameter<
double>(
"max_dz")},
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) {
T getParameter(std::string const &) const
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
void produce(edm::StreamID, edm::Event &iEvent, edm::EventSetup const &iSetup) const override
TrackFromPVSelector(edm::ParameterSet const &iConfig)
#define DEFINE_FWK_MODULE(type)
Abs< T >::type abs(const T &t)