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;
51 BOOST_AUTO_TEST_SUITE(Surfaces)
66 auto pTransform = std::make_shared<const Transform3D>(translation);
67 std::shared_ptr<const Acts::PlanarBounds>
p =
68 std::make_shared<const RectangleBounds>(5., 10.);
76 std::shared_ptr<const Acts::PlanarBounds> pPlanarBound =
77 std::make_shared<const RectangleBounds>(5., 10.);
80 auto pTransform = std::make_shared<const Transform3D>(translation);
84 std::make_shared<const HomogeneousSurfaceMaterial>(properties);
109 Intersection::Status::reachable};
117 unitary << 1, 0, 0, 0, 1, 0, 0, 0, 1;
120 BOOST_CHECK_EQUAL(referenceFrame, unitary);
131 std::make_shared<const HomogeneousSurfaceMaterial>(newProperties);
142 std::shared_ptr<const Acts::PlanarBounds> pPlanarBound =
143 std::make_shared<const RectangleBounds>(5., 10.);
147 auto pTransform1 = std::make_shared<const Transform3D>(translation1);
148 auto pTransform2 = std::make_shared<const Transform3D>(translation2);
150 MaterialProperties properties{1., 1., 1., 20., 10, 5.};
152 std::make_shared<const HomogeneousSurfaceMaterial>(properties);
153 DetectorElementStub detElement1{pTransform1, pPlanarBound, 0.2, pMaterial};
154 DetectorElementStub detElement2{pTransform1, pPlanarBound, 0.3, pMaterial};
155 DetectorElementStub detElement3{pTransform2, pPlanarBound, 0.3, pMaterial};
157 SurfaceStub surface1(detElement1);
158 SurfaceStub surface2(detElement1);
159 SurfaceStub surface3(detElement2);
160 SurfaceStub surface4(detElement3);
162 BOOST_CHECK(surface1 == surface2);
170 BOOST_CHECK(surface1 != surface4);
172 BOOST_AUTO_TEST_SUITE_END()