35 produces<reco::TrackCollection>();
41 auto outTracks = std::make_unique<reco::TrackCollection>();
42 for (reco::TrackCollection::const_iterator trk = tracks->begin(); trk != tracks->end(); ++trk) {
45 if (trk->hitPattern().numberOfValidTrackerHits() <
m_minTrkHits)
47 if (trk->hitPattern().numberOfValidMuonHits() <
m_minMuonHits)
49 outTracks->push_back(*trk);
double m_maxNormalizedChi2
#define DEFINE_FWK_MODULE(type)
auto const & tracks
cannot be loose
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
L3MuonCleaner(const edm::ParameterSet &)
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
T getParameter(std::string const &) const
~L3MuonCleaner() override
edm::EDGetTokenT< reco::TrackCollection > inputToken_