diff --git a/src/TRestDetectorHitsEventViewer.cxx b/src/TRestDetectorHitsEventViewer.cxx index 5439d3b3..d076c1b0 100644 --- a/src/TRestDetectorHitsEventViewer.cxx +++ b/src/TRestDetectorHitsEventViewer.cxx @@ -52,7 +52,7 @@ void TRestDetectorHitsEventViewer::AddEvent(TRestEvent* ev) { } Double_t slope; - if (eDepMin == eDepMin) + if (eDepMin == eDepMax) slope = 0; else slope = (fMaxRadius - fMinRadius) / (eDepMax - eDepMin);