9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
27 using boost::test_tools::output_test_stream;
28 namespace utf = boost::unit_test;
38 BOOST_AUTO_TEST_SUITE(Layers)
46 auto pTransform = std::make_shared<const Transform3D>(translation);
47 const double minRad(5.), maxRad(10.);
48 auto pDisc = std::make_shared<const RadialBounds>(minRad, maxRad);
53 auto rBounds = std::make_shared<const RectangleBounds>(1., 1.);
55 std::shared_ptr<const Transform3D> pNullTransform{};
56 const std::vector<std::shared_ptr<const Surface>> aSurfaces{
57 Surface::makeShared<PlaneSurface>(pNullTransform, rBounds),
58 Surface::makeShared<PlaneSurface>(pNullTransform, rBounds)};
60 auto pDiscLayerFromSurfaces =
64 auto pDiscLayerWithThickness =
66 BOOST_CHECK_EQUAL(pDiscLayerWithThickness->thickness(),
thickness);
68 std::unique_ptr<ApproachDescriptor> ad(
70 auto adPtr = ad.get();
71 auto pDiscLayerWithApproachDescriptor =
73 BOOST_CHECK_EQUAL(pDiscLayerWithApproachDescriptor->approachDescriptor(),
84 auto pTransform = std::make_shared<const Transform3D>(translation);
85 const double minRad(5.), maxRad(10.);
86 auto pDisc = std::make_shared<const RadialBounds>(minRad, maxRad);
89 BOOST_CHECK_EQUAL(pDiscLayer->surfaceRepresentation().name(),
90 std::string(
"Acts::DiscSurface"));
93 BOOST_AUTO_TEST_SUITE_END()