23 static auto fld = [&](
double x,
double y,
double z) {
24 assert(FairRunAna::Instance());
25 if (FairRunAna::Instance()->GetField()) {
26 double pos[3] = {
x,
y, z};
27 double B[3] = {0., 0., 0.};
30 static std::mutex mymutex;
32 FairRunAna::Instance()->GetField()->GetFieldValue(
pos, B);
34 return std::tuple(B[0], B[1], B[2]);
37 return std::tuple(0., 0., 0.);