Warning, file /acts/Core/include/Acts/Geometry/GenericApproachDescriptor.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Definitions/Algebra.hpp"
0012 #include "Acts/Geometry/ApproachDescriptor.hpp"
0013 #include "Acts/Geometry/GeometryContext.hpp"
0014 #include "Acts/Surfaces/BoundaryTolerance.hpp"
0015 #include "Acts/Surfaces/Surface.hpp"
0016 #include "Acts/Utilities/Helpers.hpp"
0017 #include "Acts/Utilities/Intersection.hpp"
0018
0019 #include <memory>
0020 #include <utility>
0021 #include <vector>
0022
0023 namespace Acts {
0024
0025 class Layer;
0026 class Surface;
0027
0028
0029
0030
0031
0032 class GenericApproachDescriptor : public ApproachDescriptor {
0033 public:
0034
0035
0036
0037
0038 explicit GenericApproachDescriptor(
0039 std::vector<std::shared_ptr<const Surface>> aSurfaces)
0040 : ApproachDescriptor(),
0041 m_surfaces(std::move(aSurfaces)),
0042 m_surfaceCache() {
0043 m_surfaceCache = unpack_shared_vector(m_surfaces);
0044 }
0045
0046
0047 ~GenericApproachDescriptor() override = default;
0048
0049
0050
0051
0052 void registerLayer(const Layer& lay) override;
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064 SurfaceIntersection approachSurface(
0065 const GeometryContext& gctx, const Vector3& position,
0066 const Vector3& direction, const BoundaryTolerance& boundaryTolerance,
0067 double nearLimit, double farLimit) const override;
0068
0069
0070 const std::vector<const Surface*>& containedSurfaces() const override;
0071
0072
0073 std::vector<const Surface*>& containedSurfaces() override;
0074
0075 private:
0076
0077 std::vector<std::shared_ptr<const Surface>> m_surfaces;
0078
0079
0080
0081
0082
0083
0084 std::vector<const Surface*> m_surfaceCache;
0085 };
0086
0087 }