diff --git a/CommonTools/RecoAlgos/plugins/ME0MuonTrackCollProducer.cc b/CommonTools/RecoAlgos/plugins/ME0MuonTrackCollProducer.cc deleted file mode 100644 index 5ae12a0664a83..0000000000000 --- a/CommonTools/RecoAlgos/plugins/ME0MuonTrackCollProducer.cc +++ /dev/null @@ -1,59 +0,0 @@ - -#include "FWCore/Framework/interface/stream/EDProducer.h" -#include "FWCore/Framework/interface/Event.h" -#include "FWCore/MessageLogger/interface/MessageLogger.h" -#include "FWCore/ParameterSet/interface/ParameterSet.h" -#include "DataFormats/Common/interface/Handle.h" -#include "DataFormats/MuonReco/interface/ME0Muon.h" -#include "DataFormats/MuonReco/interface/ME0MuonCollection.h" -#include "DataFormats/TrackReco/interface/Track.h" -#include "DataFormats/TrackReco/interface/TrackFwd.h" -#include "RecoMuon/MuonIdentification/interface/ME0MuonSelector.h" - -#include - -class ME0MuonTrackCollProducer : public edm::stream::EDProducer<> { -public: - explicit ME0MuonTrackCollProducer(const edm::ParameterSet&); - ~ME0MuonTrackCollProducer() override = default; - -private: - void produce(edm::Event&, const edm::EventSetup&) override; - const edm::ParameterSet parset_; - edm::EDGetTokenT OurMuonsToken_; -}; - -#include "FWCore/PluginManager/interface/ModuleDef.h" -#include "FWCore/Framework/interface/MakerMacros.h" - -DEFINE_FWK_MODULE(ME0MuonTrackCollProducer); - -ME0MuonTrackCollProducer::ME0MuonTrackCollProducer(const edm::ParameterSet& parset) - : parset_(parset), OurMuonsToken_(consumes(parset.getParameter("me0MuonTag"))) { - produces(); -} - -void ME0MuonTrackCollProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup) { - using namespace reco; - using namespace edm; - Handle OurMuons; - iEvent.getByToken(OurMuonsToken_, OurMuons); - - std::unique_ptr selectedTracks(new reco::TrackCollection); - - reco::TrackRefProd rTracks = iEvent.getRefBeforePut(); - - for (std::vector::const_iterator thismuon = OurMuons->begin(); thismuon != OurMuons->end(); - ++thismuon) { - if (!muon::me0::isGoodMuon(*thismuon, muon::me0::Tight)) - continue; - reco::TrackRef trackref; - - if (thismuon->innerTrack().isNonnull()) - trackref = thismuon->innerTrack(); - - const reco::Track* trk = &(*trackref); - selectedTracks->push_back(*trk); - } - iEvent.put(std::move(selectedTracks)); -} diff --git a/CommonTools/RecoAlgos/python/me0Associator.py b/CommonTools/RecoAlgos/python/me0Associator.py deleted file mode 100644 index 1b873a5c41a94..0000000000000 --- a/CommonTools/RecoAlgos/python/me0Associator.py +++ /dev/null @@ -1,11 +0,0 @@ -import FWCore.ParameterSet.Config as cms - - -#----------ME0Muon Collection Production for association by chi2 -me0muon = cms.EDProducer("ME0MuonTrackCollProducer", - me0MuonTag = cms.InputTag("me0SegmentMatching"), - ) -#-------------------- -me0muonColl_seq = cms.Sequence( - me0muon - )