9 #include <boost/test/unit_test.hpp>
30 using namespace Acts::Test;
31 using namespace Acts::Experimental;
40 std::vector<std::shared_ptr<Acts::Surface>> unpackSurfaces(
41 const std::vector<const Acts::Surface*>& surfaces) {
42 std::vector<std::shared_ptr<Acts::Surface>> uSurfaces;
43 uSurfaces.reserve(surfaces.size());
44 for (
const auto&
s : surfaces) {
51 std::vector<std::shared_ptr<Acts::Surface>> pixelSurfaces(
54 std::vector<std::shared_ptr<Acts::Surface>> pixelSurfaces;
56 std::vector<Acts::ActsScalar> pixelDiscs = {-800., -700., -600.,
58 for (
const auto&
z : pixelDiscs) {
61 auto urSurfaces = unpackSurfaces(rSurfaces);
62 pixelSurfaces.insert(pixelSurfaces.end(), urSurfaces.begin(),
66 std::vector<Acts::ActsScalar> pixelBarrels = {32., 72., 116., 172.};
67 std::vector<std::pair<int, int>> pixelBinning = {
68 {16, 14}, {32, 14}, {52, 14}, {78, 14}};
71 r, 3., 2., pixelBinning[ir]);
73 auto ucSurfaces = unpackSurfaces(cSurfaces);
74 pixelSurfaces.insert(pixelSurfaces.end(), ucSurfaces.begin(),
89 std::invalid_argument);
96 auto pSurfaces = pixelSurfaces(dStore);
98 size_t refNumber = 6
u * 22
u + 14
u * (16
u + 32
u + 52
u + 78
u);
99 BOOST_CHECK(pSurfaces.size() == refNumber);
102 auto skdt = std::make_shared<KDTS>(KDTS(
tContext, pSurfaces, {
binZ,
binR}));
106 regionND3.
set(
binZ, -820, -780);
111 BOOST_CHECK(nd3.size() == 22
u);
116 regionB1.set(
binR, 60., 80.);
121 refNumber = 32
u * 14
u;
122 BOOST_CHECK(
b1.size() == refNumber);
125 BOOST_AUTO_TEST_SUITE_END()