Skip to content

Commit 8601a42

Browse files
committed
Fixed comment
1 parent bbd45ff commit 8601a42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/AdePT/core/Track.cuh

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ struct Track {
3737

3838
/// @brief Get recomputed cached safety ay a given track position
3939
/// @param new_pos Track position
40-
/// @param step_limit Only return the recomputed safety if larger than the step_limit
40+
/// @param accurate_limit Only return non-zero if the recomputed safety if larger than the accurate_limit
4141
/// @return Recomputed safety.
4242
__host__ __device__ VECGEOM_FORCE_INLINE
43-
float GetSafety(vecgeom::Vector3D<Precision> const &new_pos, float step_limit = 0) const
43+
float GetSafety(vecgeom::Vector3D<Precision> const &new_pos, float accurate_limit = 0) const
4444
{
45-
float dsafe = safety - step_limit;
45+
float dsafe = safety - accurate_limit;
4646
if (dsafe <= 0) return 0;
4747
float distSq = (vecgeom::Vector3D<float>(new_pos) - safetyPos).Mag2();
4848
if (dsafe * dsafe < distSq) return 0.;

0 commit comments

Comments
 (0)