|
|
|||
File indexing completed on 2026-11-30 09:23:30
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/Definitions/Algebra.hpp" 0012 #include "Acts/Definitions/TrackParametrization.hpp" 0013 #include "Acts/EventData/BoundTrackParameters.hpp" 0014 #include "Acts/EventData/detail/CorrectedTransformationFreeToBound.hpp" 0015 #include "Acts/Geometry/GeometryContext.hpp" 0016 #include "Acts/Surfaces/Surface.hpp" 0017 #include "Acts/Utilities/Result.hpp" 0018 0019 #include <optional> 0020 0021 namespace Acts::detail { 0022 0023 /// @brief These functions perform the transport of a covariance matrix using 0024 /// given Jacobians. The required data is provided by the stepper object 0025 /// with some additional data. Since this is a purely algebraic problem the 0026 /// calculations are identical for @c StraightLineStepper and @c EigenStepper. 0027 /// As a consequence the methods can be located in a separate file. 0028 0029 /// Create bound parameters from free parameters on a surface 0030 /// 0031 /// @note It does not check if the free parameters are on the surface 0032 /// 0033 /// @param [in] geoContext The geometry context 0034 /// @param [in] surface The surface of the bound parameters 0035 /// @param [in] freeParameters The free parameters 0036 /// @param [in] covariance The optional bound covariance on @p surface 0037 /// @param [in] particleHypothesis The particle hypothesis 0038 /// 0039 /// @return The bound parameters, or a failure if the free parameters cannot 0040 /// be expressed on @p surface 0041 Result<BoundTrackParameters> boundParameters( 0042 const GeometryContext& geoContext, const Surface& surface, 0043 const FreeVector& freeParameters, std::optional<BoundMatrix> covariance, 0044 const ParticleHypothesis& particleHypothesis); 0045 0046 /// Create curvilinear parameters from free parameters 0047 /// 0048 /// @param [in] freeParameters The free parameters 0049 /// @param [in] covariance The optional curvilinear covariance 0050 /// @param [in] particleHypothesis The particle hypothesis 0051 /// 0052 /// @return The curvilinear parameters at the free position 0053 BoundTrackParameters curvilinearParameters( 0054 const FreeVector& freeParameters, std::optional<BoundMatrix> covariance, 0055 const ParticleHypothesis& particleHypothesis); 0056 0057 /// @brief Method for on-demand covariance transport of a bound/curvilinear to 0058 /// another bound representation. 0059 /// 0060 /// @param [in] geoContext The geometry context 0061 /// @param [in] surface is the surface to which the covariance is forwarded to 0062 /// @param [in, out] boundCovariance The covariance matrix of the state 0063 /// @param [in, out] fullTransportJacobian Full jacobian since the last reset 0064 /// @param [in, out] freeTransportJacobian Global jacobian since the last reset 0065 /// @param [in, out] freeToPathDerivatives Path length derivatives 0066 /// @param [in, out] boundToFreeJacobian Projection jacobian of the last bound 0067 /// parametrisation to free parameters 0068 /// @param [in, out] freeParameters Free, nominal parametrisation 0069 /// @param [in] freeToBoundCorrection Correction for non-linearity effect during 0070 /// transform from free to bound 0071 /// 0072 /// @note The free parameters must be on the surface 0073 void transportCovarianceToBound( 0074 const GeometryContext& geoContext, const Surface& surface, 0075 BoundMatrix& boundCovariance, BoundMatrix& fullTransportJacobian, 0076 FreeMatrix& freeTransportJacobian, FreeVector& freeToPathDerivatives, 0077 BoundToFreeMatrix& boundToFreeJacobian, 0078 const std::optional<FreeMatrix>& additionalFreeCovariance, 0079 FreeVector& freeParameters, 0080 const FreeToBoundCorrection& freeToBoundCorrection); 0081 0082 /// @brief Method for on-demand covariance transport of a bound/curvilinear 0083 /// to a new curvilinear representation. 0084 /// 0085 /// @param [in, out] boundCovariance The covariance matrix of the state 0086 /// @param [in, out] fullTransportJacobian Full jacobian since the last reset 0087 /// @param [in, out] freeTransportJacobian Global jacobian since the last reset 0088 /// @param [in, out] freeToPathDerivatives Path length derivatives 0089 /// @param [in, out] boundToFreeJacobian Projection jacobian of the last bound 0090 /// parametrisation to free parameters 0091 /// @param [in] direction Normalised direction vector 0092 /// 0093 void transportCovarianceToCurvilinear( 0094 BoundMatrix& boundCovariance, BoundMatrix& fullTransportJacobian, 0095 FreeMatrix& freeTransportJacobian, FreeVector& freeToPathDerivatives, 0096 BoundToFreeMatrix& boundToFreeJacobian, 0097 const std::optional<FreeMatrix>& additionalFreeCovariance, 0098 const Vector3& direction); 0099 0100 /// Convert bound track parameters to another bound surface. 0101 /// @pre The @p targetSurface must intersect with the surface attached to 0102 /// @p boundParameters, and the parameters must be on-surface on the 0103 /// target surface. 0104 /// @param gctx The geometry context. 0105 /// @param boundParameters The bound track parameters to convert. 0106 /// @param targetSurface The target surface. 0107 /// @param bField The magnetic field at the target surface. 0108 /// @return The converted bound track parameters. 0109 Result<BoundTrackParameters> boundToBoundConversion( 0110 const GeometryContext& gctx, const BoundTrackParameters& boundParameters, 0111 const Surface& targetSurface, const Vector3& bField = Vector3::Zero()); 0112 0113 } // namespace Acts::detail
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|