9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
23 using boost::test_tools::output_test_stream;
24 namespace utf = boost::unit_test;
34 BOOST_AUTO_TEST_SUITE(Layers)
42 auto pTransform = std::make_shared<const Transform3D>(translation);
44 auto pRectangle = std::make_shared<const RectangleBounds>(
halfX,
halfY);
49 auto rBounds = std::make_shared<const RectangleBounds>(1., 1.);
51 std::shared_ptr<const Transform3D> pNullTransform{};
52 const std::vector<std::shared_ptr<const Surface>> aSurfaces{
53 Surface::makeShared<PlaneSurface>(pNullTransform, rBounds),
54 Surface::makeShared<PlaneSurface>(pNullTransform, rBounds)};
57 size_t binsX(2), binsY(4);
60 auto pPlaneLayerFromSurfaces =
65 pTransform, pRectangle, std::move(pSurfaceArray), thickness);
66 BOOST_CHECK_EQUAL(pPlaneLayerWithThickness->thickness(),
thickness);
68 std::unique_ptr<ApproachDescriptor> ad(
70 auto adPtr = ad.get();
71 auto pPlaneLayerWithApproachDescriptor =
73 thickness, std::move(ad));
74 BOOST_CHECK_EQUAL(pPlaneLayerWithApproachDescriptor->approachDescriptor(),
77 auto pPlaneLayerWithLayerType =
86 auto pTransform = std::make_shared<const Transform3D>(translation);
88 auto pRectangle = std::make_shared<const RectangleBounds>(
halfX,
halfY);
91 BOOST_CHECK_EQUAL(pPlaneLayer->surfaceRepresentation().name(),
92 std::string(
"Acts::PlaneSurface"));
95 BOOST_AUTO_TEST_SUITE_END()