Skip to content
Snippets Groups Projects
Commit 909b82c9 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'fix-AFPSOFT-127' into 'master'

fix FPE in AFP monitoring

Closes AFPSOFT-127

See merge request atlas/athena!46463
parents 74437b90 721103c0
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,7 @@ std::pair<double, double> AFPFastReco::linReg(std::vector<std::pair<double, doub
denumerator += dx * dx;
}
if(denumerator==0.0) denumerator=1e-6;
const double slope = numerator / denumerator;
const double position = meany - slope * meanx;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment