ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::io::surface_grid_writer Class Reference

Surface grid writer backend. More...

#include <detray/io/backend/surface_grid_writer.hpp>

Inheritance diagram for detray::io::surface_grid_writer:
[legend]
Collaboration diagram for detray::io::surface_grid_writer:
[legend]

Public Types

using payload_type = detector_grids_payload<std::size_t, io::accel_id>
 Payload type that the reader processes.

Static Public Member Functions

template<detray::concepts::detector detector_t>
static auto header_to_payload (const detector_t &det, const std::string_view det_name)
 Convert the header information into its payload.
template<detray::concepts::detector detector_t>
static payload_type to_payload (const detector_t &det, const typename detector_t::name_map &)
 Convert the grid collections of a detector det into their io payload.

Static Public Attributes

static constexpr std::string_view tag = "surface_grids"
 Tag the writer as "surface_grids".

Detailed Description

Surface grid writer backend.

Fills a surface detector_grids_payload from a detector instance

Member Function Documentation

◆ header_to_payload()

template<detray::concepts::detector detector_t>
auto detray::io::surface_grid_writer::header_to_payload ( const detector_t & det,
const std::string_view det_name )
static

Convert the header information into its payload.

Template Parameters
detector_tDetector type to serialize.
Parameters
detDetector whose surface grids are written.
det_nameName recorded in the serialized header.
Returns
Header payload describing the surface grids.

◆ to_payload()

template<detray::concepts::detector detector_t>
payload_type detray::io::surface_grid_writer::to_payload ( const detector_t & det,
const typename detector_t::name_map &  )
static

Convert the grid collections of a detector det into their io payload.

Template Parameters
detector_tDetector type to serialize.
Parameters
detDetector whose acceleration structures are serialized.
Returns
Payload containing the surface-grid entries.