44 ,
max_dz_{iConfig.getParameter<
double>(
"max_dz")}
48 produces<std::vector<reco::Muon>>();
57 auto goodMuons = std::make_unique<std::vector<reco::Muon>>();
65 if (!vertices->empty()) {
66 auto const&
pv = vertices->front();
67 std::copy_if(std::cbegin(*muons), std::cend(*muons), std::back_inserter(*
goodMuons),
68 [&
pv,
this](
auto const&
muon){
69 return muon.innerTrack().isNonnull() &&
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< std::vector< reco::Muon > > v_recoMuonToken_
#define DEFINE_FWK_MODULE(type)
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< std::vector< reco::Vertex > > v_recoVertexToken_
MuonFromPVSelector(edm::ParameterSet const &)