11 template <
typename SpacePo
int>
13 size_t phiBin,
size_t zBin,
15 std::set<size_t> neighbourBins =
18 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin, zBin + 1}));
19 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin - 1, zBin + 1}));
20 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin + 1, zBin + 1}));
21 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin, zBin - 1}));
22 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin - 1, zBin - 1}));
23 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin + 1, zBin - 1}));
27 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin, zBin + 1}));
28 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin - 1, zBin + 1}));
29 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin + 1, zBin + 1}));
31 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin, zBin - 1}));
32 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin - 1, zBin - 1}));
33 neighbourBins.erase(binnedSP->getGlobalBinIndex({phiBin + 1, zBin - 1}));
36 neighbourBins.insert(binnedSP->getGlobalBinIndex({phiBin, zBin + 2}));
37 neighbourBins.insert(binnedSP->getGlobalBinIndex({phiBin - 1, zBin + 2}));
38 neighbourBins.insert(binnedSP->getGlobalBinIndex({phiBin + 1, zBin + 2}));
41 neighbourBins.insert(binnedSP->getGlobalBinIndex({phiBin, zBin - 2}));
42 neighbourBins.insert(binnedSP->getGlobalBinIndex({phiBin - 1, zBin - 2}));
43 neighbourBins.insert(binnedSP->getGlobalBinIndex({phiBin + 1, zBin - 2}));