Skip to content

Commit 414e1a2

Browse files
f3schdavidrohr
authored andcommitted
Change return type to value_T in getCurvature
This causes all calls where getCurvature is called in an expression to be promoted to double even if TrackParam is float
1 parent 0f02172 commit 414e1a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrization.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ GPUdi() void TrackParametrization<value_T>::getLineParams(o2::math_utils::Interv
548548
template <typename value_T>
549549
GPUdi() auto TrackParametrization<value_T>::getCurvature(value_t b) const -> value_t
550550
{
551-
return mAbsCharge ? mP[kQ2Pt] * b * o2::constants::math::B2C : 0.;
551+
return mAbsCharge ? mP[kQ2Pt] * b * o2::constants::math::B2C : value_T(0);
552552
}
553553

554554
//____________________________________________________________

0 commit comments

Comments
 (0)