ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::io::grid_payload< bin_content_t, grid_id_t > Struct Template Reference

A payload for a grid definition. More...

#include <detray/io/frontend/payloads.hpp>

Inheritance diagram for detray::io::grid_payload< bin_content_t, grid_id_t >:
[legend]
Collaboration diagram for detray::io::grid_payload< bin_content_t, grid_id_t >:
[legend]

Public Types

using grid_type = grid_id_t
 Identifier type used for this grid.

Public Attributes

std::vector< axis_payload > axes {}
 Must match the number of axis in the grid type indicated by grid_link.
std::vector< grid_bin_payload< bin_content_t > > bins {}
 Bin contents in serializer-defined order.
typed_link_payload< grid_id_t > grid_link {}
 Grid type and index within the linked volume.
single_link_payload owner_link {}
 Volume-local owner of this grid payload.

Detailed Description

template<typename bin_content_t = std::size_t, typename grid_id_t = io::accel_id>
struct detray::io::grid_payload< bin_content_t, grid_id_t >

A payload for a grid definition.

Template Parameters
bin_content_tthe value type of the grid, e.g. surface indices or surface_material_payloads
grid_id_tgrid type enum, e.g. accel_id or material_id

Member Data Documentation

◆ bins

template<typename bin_content_t = std::size_t, typename grid_id_t = io::accel_id>
std::vector<grid_bin_payload<bin_content_t> > detray::io::grid_payload< bin_content_t, grid_id_t >::bins {}

Bin contents in serializer-defined order.

Bin contents arranged in serializer order.