Fill a surface grid using a local bin index of the grid and a payload.
More...
#include <detray/builders/bin_fillers.hpp>
|
|
template<concepts::grid grid_t> |
| using | bin_data_type = bin_data<grid_t::dim, typename grid_t::value_type> |
| | Grid-bin payload type used by the bin filler.
|
|
| template<concepts::grid grid_t, typename volume_t, typename surface_container_t, typename mask_container, typename transform_container, typename context_t, typename... Args> |
| auto | operator() (grid_t &grid, const volume_t &, const surface_container_t &, const mask_container &, const context_t, std::vector< bin_data_type< grid_t > > &bins) const -> void |
| | Populate a grid from the supplied bin indices and payload values.
|
Fill a surface grid using a local bin index of the grid and a payload.
- Parameters
-
| grid | the grid that should be filled |
| det | the detector from which to get the surface placements |
| vol | the volume the grid belongs to |
| ctx | the geometry context |
◆ operator()()
template<concepts::grid grid_t, typename volume_t, typename surface_container_t, typename mask_container, typename transform_container, typename context_t, typename... Args>
| auto detray::fill_by_bin::operator() |
( |
grid_t & | grid, |
|
|
const volume_t & | , |
|
|
const surface_container_t & | , |
|
|
const mask_container & | , |
|
|
const context_t | , |
|
|
std::vector< bin_data_type< grid_t > > & | bins ) const->void |
Populate a grid from the supplied bin indices and payload values.
- Parameters
-
| grid | Grid to populate. |
| bins | Bin indices and values to insert. |