File indexing completed on 2025-10-21 08:04:13
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "Acts/Geometry/Layer.hpp"
0012 #include "Acts/Surfaces/SurfaceArray.hpp"
0013
0014 #include "../Surfaces/SurfaceStub.hpp"
0015
0016 namespace ActsTests {
0017
0018
0019
0020
0021
0022 class LayerStub : virtual public SurfaceStub, public Acts::Layer {
0023 public:
0024
0025 LayerStub() = delete;
0026
0027 LayerStub(const LayerStub& otherLayer) = delete;
0028
0029 explicit LayerStub(std::unique_ptr<Acts::SurfaceArray> surfaceArray,
0030 double thickness = 0,
0031 std::unique_ptr<Acts::ApproachDescriptor> ad = nullptr,
0032 Acts::LayerType ltype = Acts::passive)
0033 : SurfaceStub(),
0034 Acts::Layer(std::move(surfaceArray), thickness, std::move(ad), ltype) {}
0035
0036
0037 ~LayerStub() override = default;
0038
0039
0040 LayerStub& operator=(const LayerStub& lay) = delete;
0041
0042
0043 const Acts::Surface& surfaceRepresentation() const override {
0044 return (*this);
0045 }
0046
0047 Acts::Surface& surfaceRepresentation() override { return (*this); }
0048
0049
0050
0051 bool constructedOk() const { return true; }
0052
0053
0054
0055 };
0056
0057 }