22 auto magFieldAtPoint =
magField.inTesla(xmeas);
23 auto BInTesla = magFieldAtPoint.z();
25 auto mom = momentum * xdiff.
unit();
31 auto curv = (BInTesla * 0.29979f * 0.01f) /
pt;
39 auto ca =
sqrt(1.
f - sa * sa);
41 auto pxNew = ca * pxOld + sa * pyOld;
42 auto pyNew = -sa * pxOld + ca * pyOld;
Vector3DBase unit() const