Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ GPUdi() TrackParametrization<value_T>::TrackParametrization(value_t x, value_t a
: mX{x}, mAlpha{alpha}, mAbsCharge{char(gpu::CAMath::Abs(charge))}, mPID{pid}
{
// explicit constructor
math_utils::detail::bringToPMPi<value_t>(mAlpha);
for (int i = 0; i < kNParams; i++) {
mP[i] = par[i];
}
Expand All @@ -295,6 +296,7 @@ GPUdi() void TrackParametrization<value_T>::set(value_t x, value_t alpha, const
{
mX = x;
mAlpha = alpha;
math_utils::detail::bringToPMPi<value_t>(mAlpha);
mAbsCharge = char(gpu::CAMath::Abs(charge));
for (int i = 0; i < kNParams; i++) {
mP[i] = par[i];
Expand Down Expand Up @@ -430,6 +432,7 @@ template <typename value_T>
GPUdi() void TrackParametrization<value_T>::setAlpha(value_t v)
{
mAlpha = v;
math_utils::detail::bringToPMPi<value_t>(mAlpha);
}

//____________________________________________________________
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/Reconstruction/src/TrackParametrization.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ template <typename value_T>
std::string TrackParametrization<value_T>::asString() const
{
// print parameters as string
return fmt::format("X:{:+.4e} Alp:{:+.3e} Par: {:+.4e} {:+.4e} {:+.4e} {:+.4e} {:+.4e} |Q|:{:d} {:s}\n",
return fmt::format("X:{:+.4e} Alp:{:+.3e} Par: {:+.4e} {:+.4e} {:+.4e} {:+.4e} {:+.4e} |Q|:{:d} {:s}",
getX(), getAlpha(), getY(), getZ(), getSnp(), getTgl(), getQ2Pt(), getAbsCharge(), getPID().getName());
}

Expand Down