19 std::array<bool, 5> requestStation,
23 for (
auto i = 0;
i < 5;
i++) {
24 int inStation = itemsPerChamber[
i * 2] + itemsPerChamber[
i * 2 + 1];
25 if (requestStation[
i] && inStation == 0) {
30 int nChHitInSt4 = (itemsPerChamber[6] > 0 ? 1 : 0) + (itemsPerChamber[7] > 0 ? 1 : 0);
31 int nChHitInSt5 = (itemsPerChamber[8] > 0 ? 1 : 0) + (itemsPerChamber[9] > 0 ? 1 : 0);
34 return nChHitInSt4 + nChHitInSt5 >= 2;
36 return nChHitInSt4 == 2 || nChHitInSt5 == 2;
bool isTrackable(std::array< int, 10 > itemsPerChamber, std::array< bool, 5 > requestStation={true, true, true, true, true}, bool moreCandidates=false)