File indexing completed on 2025-01-18 09:10:46
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Definitions/Direction.hpp"
0013 #include "Acts/Definitions/TrackParametrization.hpp"
0014 #include "Acts/Geometry/GeometryContext.hpp"
0015 #include "Acts/Surfaces/Surface.hpp"
0016 #include "Acts/Utilities/Logger.hpp"
0017
0018 #include <optional>
0019 #include <tuple>
0020
0021 namespace Acts {
0022
0023
0024
0025 struct FreeToBoundCorrection {
0026
0027 bool apply = false;
0028
0029
0030 double alpha = 0.1;
0031 double beta = 2;
0032
0033
0034 double cosIncidentAngleMinCutoff = 1e-5;
0035 double cosIncidentAngleMaxCutoff = 0.99500417;
0036
0037
0038 FreeToBoundCorrection() = default;
0039
0040
0041
0042
0043
0044
0045 FreeToBoundCorrection(bool apply_, double alpha_, double beta_);
0046
0047
0048
0049
0050 explicit FreeToBoundCorrection(bool apply_);
0051
0052
0053 operator bool() const;
0054 };
0055
0056 namespace detail {
0057
0058
0059
0060 struct CorrectedFreeToBoundTransformer {
0061
0062
0063
0064
0065
0066
0067
0068 CorrectedFreeToBoundTransformer(double alpha, double beta,
0069 double cosIncidentAngleMinCutoff,
0070 double cosIncidentAngleMaxCutoff);
0071
0072
0073
0074
0075 CorrectedFreeToBoundTransformer(
0076 const FreeToBoundCorrection& freeToBoundCorrection);
0077
0078
0079 CorrectedFreeToBoundTransformer() = default;
0080 CorrectedFreeToBoundTransformer(const CorrectedFreeToBoundTransformer&) =
0081 default;
0082 CorrectedFreeToBoundTransformer(CorrectedFreeToBoundTransformer&&) = default;
0083 CorrectedFreeToBoundTransformer& operator=(
0084 const CorrectedFreeToBoundTransformer&) = default;
0085 CorrectedFreeToBoundTransformer& operator=(
0086 CorrectedFreeToBoundTransformer&&) = default;
0087
0088
0089
0090
0091
0092
0093
0094
0095
0096 std::optional<std::tuple<BoundVector, BoundSquareMatrix>> operator()(
0097 const FreeVector& freeParams, const FreeSquareMatrix& freeCovariance,
0098 const Surface& surface, const GeometryContext& geoContext,
0099 Direction navDir = Direction::Forward(),
0100 const Logger& logger = getDummyLogger()) const;
0101
0102 private:
0103
0104 double m_alpha = 0.1;
0105 double m_beta = 2;
0106
0107
0108
0109 double m_cosIncidentAngleMinCutoff = 1e-5;
0110
0111
0112
0113 double m_cosIncidentAngleMaxCutoff = 0.99500417;
0114 };
0115
0116 }
0117 }