9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
21 using boost::test_tools::output_test_stream;
22 namespace utf = boost::unit_test;
32 BOOST_AUTO_TEST_SUITE(Layers)
42 auto pRectangle = std::make_shared<const RectangleBounds>(
halfX,
halfY);
47 auto rBounds = std::make_shared<const RectangleBounds>(1., 1.);
49 const std::vector<std::shared_ptr<const Surface>> aSurfaces{
50 Surface::makeShared<PlaneSurface>(Transform3D::Identity(), rBounds),
51 Surface::makeShared<PlaneSurface>(Transform3D::Identity(), rBounds)};
54 size_t binsX(2), binsY(4);
57 auto pPlaneLayerFromSurfaces =
62 pTransform, pRectangle, std::move(pSurfaceArray), thickness);
63 BOOST_CHECK_EQUAL(pPlaneLayerWithThickness->thickness(),
thickness);
65 std::unique_ptr<ApproachDescriptor> ad(
67 auto adPtr = ad.get();
68 auto pPlaneLayerWithApproachDescriptor =
70 thickness, std::move(ad));
71 BOOST_CHECK_EQUAL(pPlaneLayerWithApproachDescriptor->approachDescriptor(),
74 auto pPlaneLayerWithLayerType =
85 auto pRectangle = std::make_shared<const RectangleBounds>(
halfX,
halfY);
88 BOOST_CHECK_EQUAL(pPlaneLayer->surfaceRepresentation().name(),
89 std::string(
"Acts::PlaneSurface"));
92 BOOST_AUTO_TEST_SUITE_END()