25 const LayerMask layer3Hole{0x77};
32 const LayerMask missingLeadingLayer0{0x7e};
37 const LayerMask missingTrailingLayer6{0x3f};
47 BOOST_CHECK_GE(LayerMask{0x7f}.length(), 7);
48 BOOST_CHECK_GE(LayerMask{0x77}.length(), 7);
49 BOOST_CHECK_LT(LayerMask{0x7e}.length(), 7);
50 BOOST_CHECK_LT(LayerMask{0x3f}.length(), 7);
78 topo.
init(5, 1, 1 << 2);
79 const auto view = topo.
getView();
85 bool hasHoleTransition =
false;
86 for (
int i{0};
i < view.nTransitions; ++
i) {
87 const auto& transition = view.getTransition(
i);
88 hasHoleTransition |= transition.fromLayer == 1 && transition.toLayer == 3;
89 BOOST_CHECK(o2::its::LayerMask::skipped(transition.fromLayer, transition.toLayer).isAllowedHoleMask(1, 1 << 2));
93 bool hasHoleCell =
false;
94 for (
int i{0};
i < view.nCells; ++
i) {
95 const auto& cell = view.getCell(
i);
96 hasHoleCell |= cell.hitLayerMask.value() == 0x0b;
97 BOOST_CHECK(cell.hitLayerMask.isAllowed(1, 1 << 2));