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 namespace UnitLiterals;
30 BOOST_AUTO_TEST_SUITE(Geometry)
41 for (
const auto&
v : vertices) {
45 double phiMin = std::atan2(-3_mm, 15_mm);
46 double phiMax = std::atan2(3_mm, 15_mm);
47 double rMin = std::hypot(15_mm, 3_mm);
62 for (
const auto&
v : vertices) {
65 const auto& vHist = gExtHist.valueHistograms();
66 auto xVals = vHist[
binX];
68 BOOST_CHECK(xVals.size() == 6
u);
69 std::vector<ActsScalar> reference = {15_mm, 18_mm, 15_mm,
71 BOOST_CHECK(xVals == reference);
75 gExtItr.
extend(vertices.begin(), vertices.end());
104 BOOST_CHECK(unbound.contains(gExt));
105 BOOST_CHECK(unbound.contains(gExtCopy));
109 xEnvelopes[
binX] = {1., 2.};
112 Extent envelope(xEnvelopes);
129 gExtEnv.extend(vertices.begin(), vertices.end());
153 BOOST_CHECK(not tString.empty());
156 BOOST_AUTO_TEST_SUITE_END()