From a50859100793cc1d08316fbdde456172649ee840 Mon Sep 17 00:00:00 2001 From: JPorron <114648351+JPorron@users.noreply.github.com> Date: Wed, 18 Oct 2023 12:21:23 +0200 Subject: [PATCH] Update TRestDetectorHitsEventViewer.cxx Seems like there was a typo in the "slope" definition, it was always =0 with the previous definition --- src/TRestDetectorHitsEventViewer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);