9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
24 using boost::test_tools::output_test_stream;
25 namespace utf = boost::unit_test;
31 BOOST_AUTO_TEST_SUITE(Layers)
39 auto pTransform = std::make_shared<const Transform3D>(translation);
41 const bool symmetric(
false);
42 auto pCone = std::make_shared<const ConeBounds>(
alpha, symmetric);
48 auto rBounds = std::make_shared<const RectangleBounds>(1., 1.);
50 std::shared_ptr<const Transform3D> pNullTransform{};
51 const std::vector<std::shared_ptr<const Surface>> aSurfaces{
52 Surface::makeShared<PlaneSurface>(pNullTransform, rBounds),
53 Surface::makeShared<PlaneSurface>(pNullTransform, rBounds)};
58 auto pConeLayerWithThickness =
60 BOOST_CHECK_EQUAL(pConeLayerWithThickness->thickness(),
thickness);
62 std::unique_ptr<ApproachDescriptor> ad(
64 auto adPtr = ad.get();
65 auto pConeLayerWithApproachDescriptor =
67 BOOST_CHECK_EQUAL(pConeLayerWithApproachDescriptor->approachDescriptor(),
78 auto pTransform = std::make_shared<const Transform3D>(translation);
80 const bool symmetric(
false);
82 auto rBounds = std::make_shared<const RectangleBounds>(1., 1.);
84 std::shared_ptr<const Transform3D> pNullTransform{};
85 auto pCone = std::make_shared<const ConeBounds>(
alpha, symmetric);
86 const std::vector<std::shared_ptr<const Surface>> aSurfaces{
87 Surface::makeShared<PlaneSurface>(pNullTransform, rBounds),
88 Surface::makeShared<PlaneSurface>(pNullTransform, rBounds)};
92 BOOST_CHECK_EQUAL(pConeLayerFromSurfaces->surfaceRepresentation().name(),
93 std::string(
"Acts::ConeSurface"));
96 BOOST_AUTO_TEST_SUITE_END()