53 OurMuonsTag(parset.getParameter<edm::
InputTag>(
"me0MuonTag")),
54 selectionTags(parset.getParameter< std::vector<std::
string> >(
"selectionTags")),
57 produces<reco::TrackCollection>();
78 for(std::vector<reco::ME0Muon>::const_iterator thismuon =
OurMuons->begin();
79 thismuon !=
OurMuons->end(); ++thismuon) {
84 if (thismuon->innerTrack().isNonnull()) trackref = thismuon->innerTrack();
90 selectedTracks->push_back( *trk );
93 iEvent.
put(selectedTracks);
~ME0MuonTrackCollProducer()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< Track > TrackCollection
collection of Tracks
edm::Handle< std::vector< reco::ME0Muon > > OurMuons
const edm::ParameterSet parset_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
ME0MuonTrackCollProducer(const edm::ParameterSet &)
virtual void produce(edm::Event &, const edm::EventSetup &) override
std::vector< std::string > selectionTags
RefProd< PROD > getRefBeforePut()
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
edm::EDGetTokenT< ME0MuonCollection > OurMuonsToken_
edm::InputTag OurMuonsTag