Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-29 09:43:59

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/EventData/BoundTrackParameters.hpp"
0012 #include "Acts/EventData/detail/CorrectedTransformationFreeToBound.hpp"
0013 
0014 #include <optional>
0015 
0016 namespace Acts {
0017 class Surface;
0018 }
0019 
0020 namespace Acts::detail::sympy {
0021 
0022 /// @brief These functions perform the transport of a covariance matrix using
0023 /// given Jacobians. The required data is provided by the stepper object
0024 /// with some additional data. Since this is a purely algebraic problem the
0025 /// calculations are identical for @c StraightLineStepper and @c EigenStepper.
0026 /// As a consequence the methods can be located in a separate file.
0027 
0028 /// @brief Method for on-demand covariance transport of a bound/curvilinear to
0029 ///        another bound representation.
0030 ///
0031 /// @param [in] geoContext The geometry context
0032 /// @param [in] surface is the surface to which the covariance is forwarded to
0033 /// @param [in, out] boundCovariance The covariance matrix of the state
0034 /// @param [in, out] fullTransportJacobian Full jacobian since the last reset
0035 /// @param [in, out] freeToPathDerivatives Path length derivatives
0036 /// @param [in, out] boundToFreeJacobian Projection jacobian of the last bound
0037 ///        parametrisation to free parameters
0038 /// @param [in, out] freeParameters Free, nominal parametrisation
0039 /// @param [in] freeToBoundCorrection Correction for non-linearity effect during
0040 ///        transform from free to bound
0041 ///
0042 /// @note The free parameters must be on the surface
0043 void transportCovarianceToBound(
0044     const GeometryContext& geoContext, const Surface& surface,
0045     BoundMatrix& boundCovariance, BoundMatrix& fullTransportJacobian,
0046     FreeVector& freeToPathDerivatives, BoundToFreeMatrix& boundToFreeJacobian,
0047     const std::optional<FreeMatrix>& additionalFreeCovariance,
0048     FreeVector& freeParameters,
0049     const FreeToBoundCorrection& freeToBoundCorrection);
0050 
0051 /// @brief Method for on-demand covariance transport of a bound/curvilinear
0052 ///        to a new curvilinear representation.
0053 ///
0054 /// @param [in, out] boundCovariance The covariance matrix of the state
0055 /// @param [in, out] fullTransportJacobian Full jacobian since the last reset
0056 /// @param [in, out] freeToPathDerivatives Path length derivatives
0057 /// @param [in, out] boundToFreeJacobian Projection jacobian of the last bound
0058 ///        parametrisation to free parameters
0059 /// @param [in] direction Normalised direction vector
0060 ///
0061 void transportCovarianceToCurvilinear(
0062     BoundMatrix& boundCovariance, BoundMatrix& fullTransportJacobian,
0063     FreeVector& freeToPathDerivatives, BoundToFreeMatrix& boundToFreeJacobian,
0064     const std::optional<FreeMatrix>& additionalFreeCovariance,
0065     const Vector3& direction);
0066 
0067 }  // namespace Acts::detail::sympy