Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
watson-ij committed Oct 25, 2023
1 parent dc45827 commit f24a309
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions RecoMuon/MuonIdentification/plugins/MuonIdProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f24a309

Please sign in to comment.