Warning, file /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/Propagator/NavigationTarget.hpp"
0015 #include "Acts/Surfaces/BoundaryTolerance.hpp"
0016 #include "Acts/Surfaces/Surface.hpp"
0017 #include "Acts/Utilities/Helpers.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 = unpackSmartPointers(m_surfaces);
0044 }
0045
0046
0047
0048
0049 void registerLayer(const Layer& lay) override;
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061 NavigationTarget approachSurface(const GeometryContext& gctx,
0062 const Vector3& position,
0063 const Vector3& direction,
0064 const BoundaryTolerance& boundaryTolerance,
0065 double nearLimit,
0066 double farLimit) const override;
0067
0068
0069
0070 const std::vector<const Surface*>& containedSurfaces() const override;
0071
0072
0073
0074 std::vector<const Surface*>& containedSurfaces() override;
0075
0076 private:
0077
0078 std::vector<std::shared_ptr<const Surface>> m_surfaces;
0079
0080
0081
0082
0083
0084
0085 std::vector<const Surface*> m_surfaceCache;
0086 };
0087
0088 }