Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: small bug when avoiding iterations while looking for dublets (#2304
) While looping over the doublets, we find the first SP inside the radius region of interest and update the iterator so we don't need to look at the other SPs again. That mean that we have changed the middle space point (which are sorted in radius) and the radius lower bound has moved accordingly. However, if that is the last bottom or top spaceport in that grid bin, we continue and we don't move the lower bound. This means that we will continue looking at some spacepoints unnecessarily. This PR is intended to fix that and update the lower bound also for these cases. @CarloVarni @noemina let me know if you have a better suggestion on how to fix this I tested this and improves slightly ~4% performance for ttbar 200 pileUp
- Loading branch information