Skip to content

Acts-352 Allow n-dimensional magnetic field

Julia Hrdinka requested to merge ACTS-352_variableBFieldDimension into master

When testing the new InterpolatedBFieldMap implementation I realized that the magnetic field values in the Acts::FieldMapper are internally stored as a Vector3D which makes it impossible to use in case the BField is given in another format(e.g in r and z - at the time of creation phi is not known, only when asking with the global position).

To solve the issue Acts::FieldMapper was now templated not only on the dimension of the position but also on the dimension of the magnetic field. Since we do not know the dimension of the BField inside the mapper the user needs to provide the transformation from local to global (3D cartesian) coordinates of the magnetic field, given the local magnetic field and the global position.

Fixes ACTS-352

Merge request reports