Skip to content
Snippets Groups Projects
Commit 2c03cac8 authored by Adam Edward Barton's avatar Adam Edward Barton :speech_balloon:
Browse files

Merge branch 'master-djtrig-fpe' into 'master'

ATR-24805: Fix FPE in Displaced Jet Trigger Displaced Hypo tool

See merge request atlas/athena!49870
parents ae84a4cc e5c6c7e5
No related branches found
No related tags found
No related merge requests found
......@@ -74,8 +74,11 @@ StatusCode DisplacedJetDispHypoTool::decide( Info& info ) const {
nother += 1;
}
}
double nother_frac = nother*1.0/(nother + ndisp + nprompt);
double nother_frac = 0.0;
//ensure divide by zero does not occur
if((nother + ndisp + nprompt) > 0){
nother_frac = nother*1.0/(nother + ndisp + nprompt);
}
unsigned int jet_class = 0;
......
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