diff --git a/InnerDetector/InDetValidation/InDetTrackPerfMon/src/plots/TrackParametersPlots.cxx b/InnerDetector/InDetValidation/InDetTrackPerfMon/src/plots/TrackParametersPlots.cxx index 38a8e9064b86e8dd57f7234adab642ebf4937e86..0fbbeeedec4335dc1e3b857115a8486bcbc410ee 100644 --- a/InnerDetector/InDetValidation/InDetTrackPerfMon/src/plots/TrackParametersPlots.cxx +++ b/InnerDetector/InDetValidation/InDetTrackPerfMon/src/plots/TrackParametersPlots.cxx @@ -89,7 +89,7 @@ StatusCode IDTPM::TrackParametersPlots::fillPlots( float pnSiHits = nSiHits( particle ); float pchi2 = chiSquared( particle ); float pndof = ndof( particle ); - float pchi2OverNdof = pchi2 / pndof; + float pchi2OverNdof = ( pndof > 0 ) ? pchi2 / pndof : 0.; std::vector< unsigned int > pauthor = author( particle ); /// Fill the histograms