ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::svgtools::conversion::detail::bin_association_getter Struct Reference

A functor to access the bins and get the associated surface indices. More...

#include <detray/plugins/svgtools/conversion/surface_grid.hpp>

Public Member Functions

template<typename group_t, typename index_t, typename volume_t>
std::vector< std::vector< std::size_t > > operator() (const group_t &group, const index_t index, const volume_t &vol_desc, const std::array< dindex, 2 > &search_window) const
 Collect surface indices from neighboring bins around each grid bin.

Detailed Description

A functor to access the bins and get the associated surface indices.

Member Function Documentation

◆ operator()()

template<typename group_t, typename index_t, typename volume_t>
std::vector< std::vector< std::size_t > > detray::svgtools::conversion::detail::bin_association_getter::operator() ( const group_t & group,
const index_t index,
const volume_t & vol_desc,
const std::array< dindex, 2 > & search_window ) const

Collect surface indices from neighboring bins around each grid bin.

Template Parameters
group_tAccelerator group type.
index_tIndex of the selected accelerator.
volume_tVolume descriptor type.
Parameters
groupAccelerator collection.
indexSelected grid index.
vol_descVolume owning the grid and its local surfaces.
search_windowNumber of neighboring bins to inspect per axis.
Returns
Surface indices associated with each grid bin.