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

Fill a grid surface finder by bin association. More...

#include <detray/builders/bin_fillers.hpp>

Public Member Functions

template<concepts::surface_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 &surfaces, const transform_container &transforms, const mask_container &masks, const context_t ctx, Args &&...) const -> void
 Associate supplied surfaces with bins by matching their contours.
template<concepts::detector detector_t, typename volume_type, concepts::surface_grid grid_t, typename... Args>
auto operator() (grid_t &grid, detector_t &det, const volume_type &vol, const typename detector_t::geometry_context ctx, Args &&...) const -> void
 Associate detector surfaces with bins based on their boundaries.

Detailed Description

Fill a grid surface finder by bin association.

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()() [1/2]

template<concepts::surface_grid grid_t, typename volume_t, typename surface_container_t, typename mask_container, typename transform_container, typename context_t, typename... Args>
auto detray::bin_associator::operator() ( grid_t & grid,
const volume_t & ,
const surface_container_t & surfaces,
const transform_container & transforms,
const mask_container & masks,
const context_t ctx,
Args && ... ) const->void

Associate supplied surfaces with bins by matching their contours.

Parameters
gridGrid to populate.
surfacesSurfaces to associate with grid bins.
transformsTransform store for those surfaces.
masksMask store containing their shape boundaries.
ctxGeometry context for transform lookup.

◆ operator()() [2/2]

template<concepts::detector detector_t, typename volume_type, concepts::surface_grid grid_t, typename... Args>
auto detray::bin_associator::operator() ( grid_t & grid,
detector_t & det,
const volume_type & vol,
const typename detector_t::geometry_context ctx,
Args && ... ) const->void

Associate detector surfaces with bins based on their boundaries.

Parameters
gridGrid to populate.
detDetector providing surfaces, masks, and transforms.
volVolume whose surfaces are selected.
ctxGeometry context for transform lookup.