Skip to content

Commit

Permalink
Merge pull request #105 from rest-for-physics/jporron-TRestDetectorHi…
Browse files Browse the repository at this point in the history
…tsEventViewer-typo

Update TRestDetectorHitsEventViewer.cxx
  • Loading branch information
JPorron authored Oct 18, 2023
2 parents ba29df4 + a508591 commit 45f7ef9
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 45f7ef9

Please sign in to comment.