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)
45 auto pTransform = std::make_shared<const Transform3D>(translation);
46 double radius(0.5), halfz(10.);
47 auto pCylinder = std::make_shared<const CylinderBounds>(
radius, halfz);
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 pCylinderLayerFromSurfaces =
62 BOOST_CHECK_EQUAL(pCylinderLayerFromSurfaces->layerType(),
65 auto pCylinderLayerWithThickness =
69 std::unique_ptr<ApproachDescriptor> ad(
71 auto adPtr = ad.get();
73 pTransform, pCylinder,
nullptr, thickness, std::move(ad));
74 BOOST_CHECK_EQUAL(pCylinderLayerWithApproachDescriptor->approachDescriptor(),
77 auto pCylinderLayerWithLayerType =
80 BOOST_CHECK_EQUAL(pCylinderLayerWithLayerType->layerType(),
87 auto pTransform = std::make_shared<const Transform3D>(translation);
88 double radius(0.5), halfz(10.);
89 auto pCylinder = std::make_shared<const CylinderBounds>(
radius, halfz);
93 BOOST_CHECK_EQUAL(pCylinderLayer->surfaceRepresentation().name(),
94 std::string(
"Acts::CylinderSurface"));
97 BOOST_AUTO_TEST_SUITE_END()