Skip to content

Commit c802fdd

Browse files
committed
GPU: Bugfix: o2::Propagator expects b field in units of kgaus
1 parent 782b1e9 commit c802fdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Detectors/Base/src/Propagator.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,10 @@ GPUd() void PropagatorImpl<value_T>::getFieldXYZImpl(const math_utils::Point3D<T
612612
float bxyzF[3];
613613
f->GetField(xyz.X(), xyz.Y(), xyz.Z(), bxyzF);
614614
//copy and convert
615+
constexpr value_type kCLight1 = 1. / 0.000299792458;
615616
for (uint i = 0; i < 3; ++i) {
616-
bxyz[i] = static_cast<value_type>(bxyzF[i]);
617+
bxyz[i] = static_cast<value_type>(bxyzF[i]) * kCLight1;
617618
}
618-
619619
} else {
620620
#ifndef GPUCA_GPUCODE
621621
if (mFieldFast) {

0 commit comments

Comments
 (0)