Skip to content

Commit

Permalink
refactor: Move check on phi outside z-loop (#1974)
Browse files Browse the repository at this point in the history
move check on phi outside z-loop
  • Loading branch information
CarloVarni committed Mar 25, 2023
1 parent faded2f commit e3818b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Core/include/Acts/Seeding/BinnedSPGroup.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ Acts::BinnedSPGroupIterator<external_spacepoint_t>::findNotEmptyBin() {

for (std::size_t phiBin(m_current_localBins[INDEX::PHI]);
phiBin < m_max_localBins[INDEX::PHI]; ++phiBin) {
// 0 is the underflow - skip
if (phiBin == 0) {
continue;
}

for (std::size_t zBin(m_current_localBins[INDEX::Z]);
zBin < m_max_localBins[INDEX::Z]; ++zBin) {
if (phiBin == 0) {
continue;
}
std::size_t zBinIndex = m_group->m_bins[zBin];
std::size_t index =
m_group->m_grid->globalBinFromLocalBins({phiBin, zBinIndex});
Expand Down

0 comments on commit e3818b0

Please sign in to comment.