Skip to content

Commit

Permalink
Merge pull request #29065 from srimanob/102_backportBugFixInfLoopMuon
Browse files Browse the repository at this point in the history
Bug fix on infinite loop in MuonSinClassifier (Backport)
  • Loading branch information
cmsbuild authored Mar 2, 2020
2 parents 8718d36 + 0b539aa commit 5a9cc2d
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 @@ -301,7 +301,11 @@ MuonSimClassifier::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
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 5a9cc2d

Please sign in to comment.