43 produces<std::vector<reco::Muon>>();
51 auto goodMuons = std::make_unique<std::vector<reco::Muon>>();
59 if (!vertices->empty()) {
60 auto const&
pv = vertices->front();
61 std::copy_if(std::cbegin(*muons), std::cend(*muons), std::back_inserter(*
goodMuons), [&
pv,
this](
auto const&
muon) {
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< std::vector< reco::Muon > > v_recoMuonToken_
Abs< T >::type abs(const T &t)
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
T getParameter(std::string const &) const
edm::EDGetTokenT< std::vector< reco::Vertex > > v_recoVertexToken_
MuonFromPVSelector(edm::ParameterSet const &)