Skip to content

Commit 5afccc8

Browse files
authored
Fix cached safety calculation in O2Tessellated
1 parent c7cbb71 commit 5afccc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Detectors/Base/src/O2Tessellated.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,8 +1359,8 @@ Double_t O2Tessellated::Safety(const Double_t* point, Bool_t in) const
13591359

13601360
if (d2 < mCachedSafety * mCachedSafety) {
13611361
// we moved less than known safety
1362-
mCachedSafety - std::sqrt(d2);
13631362
cached_counter++;
1363+
return mCachedSafety - std::sqrt(d2);
13641364
}
13651365
}
13661366

@@ -1528,4 +1528,4 @@ void O2Tessellated::CalculateNormals()
15281528
}
15291529
}
15301530

1531-
// NOLINTEND
1531+
// NOLINTEND

0 commit comments

Comments
 (0)