9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
26 using boost::test_tools::output_test_stream;
27 namespace utf = boost::unit_test;
37 BOOST_AUTO_TEST_SUITE(Layers)
46 const double minRad(5.), maxRad(10.);
47 auto pDisc = std::make_shared<const RadialBounds>(minRad, maxRad);
52 auto rBounds = std::make_shared<const RectangleBounds>(1., 1.);
54 const std::vector<std::shared_ptr<const Surface>> aSurfaces{
55 Surface::makeShared<PlaneSurface>(Transform3D::Identity(), rBounds),
56 Surface::makeShared<PlaneSurface>(Transform3D::Identity(), rBounds)};
58 auto pDiscLayerFromSurfaces =
62 auto pDiscLayerWithThickness =
64 BOOST_CHECK_EQUAL(pDiscLayerWithThickness->thickness(),
thickness);
66 std::unique_ptr<ApproachDescriptor> ad(
68 auto adPtr = ad.get();
69 auto pDiscLayerWithApproachDescriptor =
71 BOOST_CHECK_EQUAL(pDiscLayerWithApproachDescriptor->approachDescriptor(),
83 const double minRad(5.), maxRad(10.);
84 auto pDisc = std::make_shared<const RadialBounds>(minRad, maxRad);
87 BOOST_CHECK_EQUAL(pDiscLayer->surfaceRepresentation().name(),
88 std::string(
"Acts::DiscSurface"));
91 BOOST_AUTO_TEST_SUITE_END()