9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
18 #include <boost/format.hpp>
28 auto identity = Transform3D::Identity();
37 auto oneBounds = std::make_shared<RadialBounds>(rMin, rMax,
M_PI / 16, 0.);
38 auto oneSurface = Surface::makeShared<DiscSurface>(
identity, oneBounds);
41 std::make_shared<RadialBounds>(2 * rMax, 4 * rMax,
M_PI / 16, 0.5 *
M_PI);
42 auto otherSurface = Surface::makeShared<DiscSurface>(
identity, otherBounds);
44 auto similarRbounds = std::make_shared<RadialBounds>(
45 rMin - 0.5 * rMinTol, rMax + 0.5 * rMaxTol,
M_PI / 16, 0.5 *
M_PI);
46 auto similarRSurface =
47 Surface::makeShared<DiscSurface>(
identity, similarRbounds);
49 auto similarPhiBounds =
50 std::make_shared<RadialBounds>(0.25 * rMin, 0.5 * rMin,
M_PI / 16, 0.);
51 auto similarPhiSurface =
52 Surface::makeShared<DiscSurface>(
identity, similarPhiBounds);
56 sbm.tolerances[
binPhi] = {phiTol, phiTol};
64 BOOST_CHECK(!sbm(
tgContext,
binR, oneSurface.get(), otherSurface.get()));
66 BOOST_CHECK(!sbm(
tgContext,
binPhi, oneSurface.get(), otherSurface.get()));
69 BOOST_CHECK(sbm(
tgContext,
binR, oneSurface.get(), similarRSurface.get()));