Skip to content

Commit

Permalink
Add standalone track.extra() criteria to internal duplicate removal
Browse files Browse the repository at this point in the history
  • Loading branch information
CeliaFernandez committed Sep 7, 2022
1 parent 1701c24 commit 589537f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RecoMuon/MuonIdentification/plugins/MuonIdProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,9 @@ void MuonIdProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
for (auto& muon : *outputMuons) {
if (!muon.standAloneMuon().isNull()) {
// global muon
if (muon.standAloneMuon().get() == &outerTrack) {
if (muon.standAloneMuon().get() == &outerTrack ||
(muon.standAloneMuon()->extra().isNonnull() &&
muon.standAloneMuon()->extra().get() == outerTrack.extra().get())) {
newMuon = false;
break;
}
Expand Down

0 comments on commit 589537f

Please sign in to comment.