18 #include <system_error>
21 #include <G4SystemOfUnits.hh>
22 #include <G4UnitsTable.hh>
29 G4double* Bfield)
const {
35 auto fieldRes =
m_cfg.magneticField->getField(
36 {convertLength * Point[0], convertLength * Point[1],
37 convertLength * Point[2]},
40 ACTS_ERROR(
"Field lookup error: " << fieldRes.error());
46 Bfield[0] = convertField * field[0];
47 Bfield[1] = convertField * field[1];
48 Bfield[2] = convertField * field[2];