Skip to content

Commit

Permalink
Update TRestDetectorHitsEventViewer.cxx
Browse files Browse the repository at this point in the history
Seems like there was a typo in the "slope" definition, it was always =0 with the previous definition
  • Loading branch information
JPorron authored Oct 18, 2023
1 parent ba29df4 commit a508591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TRestDetectorHitsEventViewer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a508591

Please sign in to comment.