File indexing completed on 2025-01-18 09:11:28
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/Propagator/detail/SympyJacobianEngine.hpp"
0010
0011 #include "Acts/Surfaces/CurvilinearSurface.hpp"
0012 #include "Acts/Surfaces/Surface.hpp"
0013
0014 #include "codegen/sympy_jac_math.hpp"
0015
0016 namespace Acts::detail {
0017
0018 void sympy::boundToBoundTransportJacobian(
0019 const GeometryContext& geoContext, const Surface& surface,
0020 const FreeVector& freeParameters,
0021 const BoundToFreeMatrix& boundToFreeJacobian,
0022 const FreeMatrix& freeTransportJacobian,
0023 const FreeVector& freeToPathDerivatives,
0024 BoundMatrix& fullTransportJacobian) {
0025 const Vector3 position = freeParameters.segment<3>(eFreePos0);
0026 const Vector3 direction = freeParameters.segment<3>(eFreeDir0);
0027
0028
0029 const FreeToPathMatrix freeToPath =
0030 surface.freeToPathDerivative(geoContext, position, direction);
0031
0032 FreeToBoundMatrix freeToBoundJacobian =
0033 surface.freeToBoundJacobian(geoContext, position, direction);
0034
0035
0036
0037
0038
0039
0040 boundToBoundTransportJacobianImpl(
0041 freeToBoundJacobian.data(), freeTransportJacobian.data(),
0042 boundToFreeJacobian.data(), freeToPathDerivatives.data(),
0043 freeToPath.data(), fullTransportJacobian.data());
0044 }
0045
0046 void sympy::boundToCurvilinearTransportJacobian(
0047 const Vector3& direction, const BoundToFreeMatrix& boundToFreeJacobian,
0048 const FreeMatrix& freeTransportJacobian,
0049 const FreeVector& freeToPathDerivatives,
0050 BoundMatrix& fullTransportJacobian) {
0051
0052 FreeToBoundMatrix freeToBoundJacobian =
0053 CurvilinearSurface(direction).freeToBoundJacobian();
0054
0055
0056
0057
0058
0059
0060 boundToCurvilinearTransportJacobianImpl(
0061 freeToBoundJacobian.data(), freeTransportJacobian.data(),
0062 boundToFreeJacobian.data(), freeToPathDerivatives.data(),
0063 direction.data(), fullTransportJacobian.data());
0064 }
0065
0066 }