49 ,
max_dz_{iConfig.getParameter<
double>(
"max_dz")}
53 produces<std::vector<reco::Track>>();
69 auto goodTracks = std::make_unique<std::vector<reco::Track>>();
70 if (!vertices->empty() && !tracks->empty()) {
71 auto const& vtxPos = vertices->front().position();
72 std::copy_if(std::cbegin(*tracks), std::cend(*tracks), std::back_inserter(*
goodTracks),
73 [
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
#define DEFINE_FWK_MODULE(type)
void produce(edm::StreamID, edm::Event &iEvent, edm::EventSetup const &iSetup) const override
TrackFromPVSelector(edm::ParameterSet const &iConfig)
Abs< T >::type abs(const T &t)