Project

General

Profile

Bug #17097

Floating point divide by zero in EMShowerAlg.cxx

Added by Thomas Junk over 2 years ago. Updated over 2 years ago.

Status:
Assigned
Priority:
Normal
Category:
Reconstruction
Target version:
-
Start date:
06/30/2017
Due date:
% Done:

100%

Estimated time:
Occurs In:
Experiment:
-
Co-Assignees:
Duration:

Description

At line 507 in EMShowerAlg.cxx,

 avDistanceToVertex /= distanceToVertex.size();

this divide was 0/0 in an example I caught in the debugger. It should be protected
against this sort of divide. There's a similar one at line 511 for avDistanceToEnd


Related issues

Blocks LArSoft - Necessary Maintenance #17047: Floating Point ExceptionsAssigned06/27/2017

History

#1 Updated by Gianluca Petrillo over 2 years ago

#2 Updated by Gianluca Petrillo over 2 years ago

#3 Updated by Gianluca Petrillo over 2 years ago

#4 Updated by Lynn Garren over 2 years ago

  • Category set to Reconstruction
  • Status changed from New to Assigned
  • Assignee set to Michael Wallbank

Mike, would you please have a look?

#5 Updated by Michael Wallbank over 2 years ago

  • % Done changed from 0 to 100

Apologies, I'm currently at the EPS-HEP 2017 conference so couldn't address this straight away. I've pushed a fix to protect against dividing by zero in this case.



Also available in: Atom PDF