File indexing completed on 2025-08-05 08:09:41
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/TrackFitting/GlobalChiSquareFitter.hpp"
0010
0011 #include "Acts/Definitions/TrackParametrization.hpp"
0012
0013 namespace Acts::Experimental {
0014
0015 BoundVector calculateDeltaParams(bool zeroField, const BoundMatrix& aMatrix,
0016 const BoundVector& bVector) {
0017 BoundVector deltaParams = BoundVector::Zero();
0018 if (zeroField) {
0019 constexpr std::size_t reducedMatrixSize = 4;
0020 deltaParams.topLeftCorner<reducedMatrixSize, 1>() =
0021 aMatrix.topLeftCorner<reducedMatrixSize, reducedMatrixSize>()
0022 .colPivHouseholderQr()
0023 .solve(bVector.topLeftCorner<reducedMatrixSize, 1>());
0024 } else {
0025 constexpr std::size_t reducedMatrixSize = 5;
0026 deltaParams.topLeftCorner<reducedMatrixSize, 1>() =
0027 aMatrix.topLeftCorner<reducedMatrixSize, reducedMatrixSize>()
0028 .colPivHouseholderQr()
0029 .solve(bVector.topLeftCorner<reducedMatrixSize, 1>());
0030 }
0031
0032 return deltaParams;
0033 }
0034 }