Skip to content

Commit 45f7ef9

Browse files
authored
Merge pull request #105 from rest-for-physics/jporron-TRestDetectorHitsEventViewer-typo
Update TRestDetectorHitsEventViewer.cxx
2 parents ba29df4 + a508591 commit 45f7ef9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/TRestDetectorHitsEventViewer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void TRestDetectorHitsEventViewer::AddEvent(TRestEvent* ev) {
5252
}
5353

5454
Double_t slope;
55-
if (eDepMin == eDepMin)
55+
if (eDepMin == eDepMax)
5656
slope = 0;
5757
else
5858
slope = (fMaxRadius - fMinRadius) / (eDepMax - eDepMin);

0 commit comments

Comments
 (0)