diff --git a/RecoMuon/MuonIdentification/plugins/MuonIdProducer.cc b/RecoMuon/MuonIdentification/plugins/MuonIdProducer.cc index 5d69c5751722c..b3dda457e51c7 100644 --- a/RecoMuon/MuonIdentification/plugins/MuonIdProducer.cc +++ b/RecoMuon/MuonIdentification/plugins/MuonIdProducer.cc @@ -799,9 +799,9 @@ bool MuonIdProducer::isGoodTrackerMuon(const reco::Muon& muon) { if (muon.track()->pt() < minPt_ || muon.track()->p() < minP_) return false; // NoArbitration checks for CSC/DT segments only, also use ME0 segments - int numMatches = muon.numberOfMatches(reco::Muon::GEMSegmentAndTrackArbitration) + muon.numberOfMatches(reco::Muon::NoArbitration); - if (addExtraSoftMuons_ && muon.pt() < 5 && std::abs(muon.eta()) < 1.5 && - numMatches >= 1) + int numMatches = + muon.numberOfMatches(reco::Muon::GEMSegmentAndTrackArbitration) + muon.numberOfMatches(reco::Muon::NoArbitration); + if (addExtraSoftMuons_ && muon.pt() < 5 && std::abs(muon.eta()) < 1.5 && numMatches >= 1) return true; return (numMatches >= minNumberOfMatches_); } @@ -1141,8 +1141,8 @@ void MuonIdProducer::arbitrateMuons(reco::MuonCollection* muons, reco::CaloMuonC // if a muon was exclusively TrackerMuon check if it can be a calo muon for (reco::MuonCollection::iterator muon = muons->begin(); muon != muons->end();) { if (muon->isTrackerMuon()) { - int numMatches = muon->numberOfMatches(reco::Muon::GEMSegmentAndTrackArbitration) + - muon->numberOfMatches(arbitration); + int numMatches = + muon->numberOfMatches(reco::Muon::GEMSegmentAndTrackArbitration) + muon->numberOfMatches(arbitration); if (numMatches < minNumberOfMatches_) { // TrackerMuon failed arbitration // If not any other base type - erase the element