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

Tracking geometry reader backend. More...

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

Collaboration diagram for detray::io::geometry_reader:
[legend]

Public Types

using payload_type = detector_payload
 Payload type that the reader processes.

Static Public Member Functions

template<class detector_t>
static surface_data< detector_t > from_payload (const surface_payload &sf_data)
 Build surface-factory data from a serialized surface entry.
template<class detector_t>
static detector_t::transform3_type from_payload (const transform_payload &trf_data)
template<class detector_t>
static void from_payload (detector_builder< typename detector_t::metadata, volume_builder > &det_builder, const payload_type &det_data)
 Populate the detector builder from a serialized geometry payload.

Static Public Attributes

static constexpr std::string_view tag = "geometry"
 Tag the reader as "geometry".

Detailed Description

Tracking geometry reader backend.

Fills a detector_builder from a detector_geometry_payload

Member Function Documentation

◆ from_payload() [1/3]

template<class detector_t>
surface_data< detector_t > detray::io::geometry_reader::from_payload ( const surface_payload & sf_data)
static

Build surface-factory data from a serialized surface entry.

Template Parameters
detector_tDetector type being constructed.
Parameters
sf_dataSerialized surface data, including masks and transform.
Returns
surface data for a surface factory from a surface io payload

◆ from_payload() [2/3]

template<class detector_t>
detector_t::transform3_type detray::io::geometry_reader::from_payload ( const transform_payload & trf_data)
static
Returns
a surface transform from its io payload
Parameters
trf_data

◆ from_payload() [3/3]

template<class detector_t>
void detray::io::geometry_reader::from_payload ( detector_builder< typename detector_t::metadata, volume_builder > & det_builder,
const payload_type & det_data )
static

Populate the detector builder from a serialized geometry payload.

Template Parameters
detector_tDetector type being constructed.
Parameters
det_builderBuilder receiving volumes, surfaces, and links.
det_dataGeometry payload to decode.