9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
25 using boost::test_tools::output_test_stream;
26 namespace utf = boost::unit_test;
36 BOOST_AUTO_TEST_SUITE(Layers)
45 double radius(0.5), halfz(10.);
46 auto pCylinder = std::make_shared<const CylinderBounds>(
radius, halfz);
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 pCylinderLayerFromSurfaces =
60 BOOST_CHECK_EQUAL(pCylinderLayerFromSurfaces->layerType(),
63 auto pCylinderLayerWithThickness =
67 std::unique_ptr<ApproachDescriptor> ad(
69 auto adPtr = ad.get();
71 pTransform, pCylinder,
nullptr, thickness, std::move(ad));
72 BOOST_CHECK_EQUAL(pCylinderLayerWithApproachDescriptor->approachDescriptor(),
75 auto pCylinderLayerWithLayerType =
78 BOOST_CHECK_EQUAL(pCylinderLayerWithLayerType->layerType(),
86 double radius(0.5), halfz(10.);
87 auto pCylinder = std::make_shared<const CylinderBounds>(
radius, halfz);
91 BOOST_CHECK_EQUAL(pCylinderLayer->surfaceRepresentation().name(),
92 std::string(
"Acts::CylinderSurface"));
95 BOOST_AUTO_TEST_SUITE_END()