Skip to content

Commit

Permalink
Merge pull request #28802 from Fedespring/from-CMSSW_11_1_X_2020-01-2…
Browse files Browse the repository at this point in the history
…7-1100

bug-fix for infinite loop in MuonSimClassifier.cc
  • Loading branch information
cmsbuild authored Feb 3, 2020
2 parents 60e4c46 + 52c69d7 commit e4c6faa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SimMuon/MCTruth/plugins/MuonSimClassifier.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,11 @@ void MuonSimClassifier::produce(edm::Event &iEvent, const edm::EventSetup &iSetu
jm++;
if (mMom->numberOfMothers() > 0) {
mMom = mMom->motherRef();
} else {
LogTrace("MuonSimClassifier") << "\t No Mother is found ";
break;
}

LogTrace("MuonSimClassifier") << "\t\t backtracking mother " << jm << ", pdgId = " << mMom->pdgId()
<< ", status= " << mMom->status();
}
Expand Down

0 comments on commit e4c6faa

Please sign in to comment.