|
template<typename... args>
requires ( sizeof...(args) == DIM && (Concepts::same_as_any_of<std::decay_t<args>, int, std::pair<int, int>, std::vector<std::pair<int, int>>> && ...)) |
| | GridBinFinder (args &&... vals) |
| | Constructor that takes the individual values for each axis.
|
| | GridBinFinder (std::array< stored_values_t, DIM > values) |
| | Constructor that takes an array of axes values.
|
| template<typename stored_t, class... Axes> |
| boost::container::small_vector< std::size_t, dimCubed > | findBins (const std::array< std::size_t, DIM > &locPosition, const Grid< stored_t, Axes... > &grid) const |
| | Retrieve the neighbouring bins given a local position in the grid.
|
| const std::array< stored_values_t, DIM > & | values () const |
| | Get the stored bin edge values for all dimensions.
|
template<std::size_t DIM>
class Acts::GridBinFinder< DIM >
- Template Parameters
-
| DIM | Dimension of the Grid on which the GridBinFinder will be used |
The GridBinFinder is used by the ISPGroupSelector. It can be used to find both bins that could be bottom bins as well as bins that could be top bins, which are assumed to be the same bins. Does not take interaction region into account to limit z-bins.
template<std::size_t DIM>
template<typename... args>
requires ( sizeof...(args) == DIM && (Concepts::same_as_any_of<std::decay_t<args>, int, std::pair<int, int>, std::vector<std::pair<int, int>>> && ...))
Constructor that takes the individual values for each axis.
- Template Parameters
-
| args | ... Input parameters provided by the user |
- Parameters
-
| [in] | vals | The input parameters that define how many neighbours we need to find |
- Precondition
- The provided parameters must be of type 'int', 'std::pair<int, int>' or 'std::vector<std::pair<int, int>>' no other type is allowed. The order of these parameters must correspond to the same ordering of the axes in the grid
template<std::size_t DIM>
template<typename stored_t, class... Axes>
| boost::container::small_vector< std::size_t, dimCubed > Acts::GridBinFinder< DIM >::findBins |
( |
const std::array< std::size_t, DIM > & | locPosition, |
|
|
const Grid< stored_t, Axes... > & | grid ) const |
Retrieve the neighbouring bins given a local position in the grid.
Return all bins that could contain space points that can be used with the space points in the bin with the provided indices to create seeds.
- Template Parameters
-
| stored_t | The type of elements stored in the Grid |
| Axes | ... The type of the axes of the grid |
- Parameters
-
| [in] | locPosition | The N-dimentional local position in the grid |
| [in] | grid | The grid |
- Returns
- The list of neighbouring bins
- Precondition
- The provided local position must be a valid local bins configuration in the grid