File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ struct Track {
37
37
38
38
// / @brief Get recomputed cached safety ay a given track position
39
39
// / @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
41
41
// / @return Recomputed safety.
42
42
__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
44
44
{
45
- float dsafe = safety - step_limit ;
45
+ float dsafe = safety - accurate_limit ;
46
46
if (dsafe <= 0 ) return 0 ;
47
47
float distSq = (vecgeom::Vector3D<float >(new_pos) - safetyPos).Mag2 ();
48
48
if (dsafe * dsafe < distSq) return 0 .;
You can’t perform that action at this time.
0 commit comments