ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::fill_by_bin Struct Reference

Fill a surface grid using a local bin index of the grid and a payload. More...

#include <detray/builders/bin_fillers.hpp>

Classes

struct  bin_data
 Single piece of data for a grid bin. More...

Public Types

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.

Public Member Functions

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.

Detailed Description

Fill a surface grid using a local bin index of the grid and a payload.

Parameters
gridthe grid that should be filled
detthe detector from which to get the surface placements
volthe volume the grid belongs to
ctxthe geometry context

Member Function Documentation

◆ 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
gridGrid to populate.
binsBin indices and values to insert.