1#include "Tracking/Sim/BFieldXYZUtils.h"
3Acts::Vector3 default_transformPos(
const Acts::Vector3& pos) {
7 rot_pos(2) = pos(0) + DIPOLE_OFFSET;
12Acts::Vector3 default_transformBField(
const Acts::Vector3& field,
13 const Acts::Vector3& ) {
14 Acts::Vector3 rot_field;
16 rot_field(0) = field(2);
17 rot_field(1) = field(0);
18 rot_field(2) = field(1);
29size_t localToGlobalBin_xyz(std::array<size_t, 3> bins,
30 std::array<size_t, 3> sizes) {
31 return (bins[0] * (sizes[1] * sizes[2]) + bins[1] * sizes[2] +
37void testField(
const std::shared_ptr<Acts::MagneticFieldProvider> bfield,
38 const Acts::Vector3& eval_pos,
39 const Acts::MagneticFieldContext bctx) {
40 Acts::MagneticFieldProvider::Cache cache = bfield->makeCache(bctx);
41 std::cout <<
"Pos::\n" << eval_pos << std::endl;
42 std::cout <<
" BField::\n"
43 << bfield->getField(eval_pos, cache).value() /
44 Acts::UnitConstants::T