Commit 111a52a5 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'atr-23854' into 'master'

TrigL2MuonSA: avoid division by zero

See merge request !45339
parents 3ad7f088 edce1f16
......@@ -853,7 +853,7 @@ void TrigL2MuonSA::MuFastStationFitter::stationSPFit(TrigL2MuonSA::MdtHits* m
for (int cand=0; cand<6; cand++) {
if (pbFitResult.SlopeCand[cand]!=0.) {
if (std::abs(pbFitResult.SlopeCand[cand]) > ZERO_LIMIT) {
Line_A.push_back(1/pbFitResult.SlopeCand[cand]);
Line_B.push_back(-pbFitResult.InterceptCand[cand]/pbFitResult.SlopeCand[cand]-Yor/pbFitResult.SlopeCand[cand]+Xor);
Line_Chi2.push_back(pbFitResult.Chi2Cand[cand]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment