9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
24 #include <boost/format.hpp>
34 auto identity = Transform3::Identity();
43 auto oneBounds = std::make_shared<RadialBounds>(rMin, rMax, M_PI / 16, 0.);
44 auto oneSurface = Surface::makeShared<DiscSurface>(
identity, oneBounds);
47 std::make_shared<RadialBounds>(2 * rMax, 4 * rMax, M_PI / 16, 0.5 * M_PI);
48 auto otherSurface = Surface::makeShared<DiscSurface>(
identity, otherBounds);
50 auto similarRbounds = std::make_shared<RadialBounds>(
51 rMin - 0.5 * rMinTol, rMax + 0.5 * rMaxTol, M_PI / 16, 0.5 * M_PI);
52 auto similarRSurface =
53 Surface::makeShared<DiscSurface>(
identity, similarRbounds);
55 auto similarPhiBounds =
56 std::make_shared<RadialBounds>(0.25 * rMin, 0.5 * rMin, M_PI / 16, 0.);
57 auto similarPhiSurface =
58 Surface::makeShared<DiscSurface>(
identity, similarPhiBounds);
62 sbm.tolerances[
binPhi] = {phiTol, phiTol};
70 BOOST_CHECK(!sbm(
tgContext,
binR, oneSurface.get(), otherSurface.get()));
72 BOOST_CHECK(!sbm(
tgContext,
binPhi, oneSurface.get(), otherSurface.get()));
75 BOOST_CHECK(sbm(
tgContext,
binR, oneSurface.get(), similarRSurface.get()));