|
ACTS
Experiment-independent tracking
|
Tracking geometry writer backend. More...
#include <detray/io/backend/geometry_writer.hpp>
Public Types | |
| using | payload_type = detector_payload |
| Payload type that the reader processes. | |
Static Public Member Functions | |
| template<detray::concepts::detector detector_t> | |
| static geo_header_payload | 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 &names) |
Convert a detector det into its io payload. | |
| template<detray::concepts::detector detector_t> | |
| static surface_payload | to_payload (const geometry::surface< detector_t > &sf, std::size_t sf_idx) |
Convert a detector surface sf into its io payload. | |
| template<typename mask_t> requires (!std::is_same_v<typename mask_t::shape, void>) | |
| static mask_payload | to_payload (const mask_t &m) |
Convert a surface mask m into its io payload. | |
| template<detray::concepts::detector detector_t> | |
| static transform_payload | to_payload (const typename detector_t::transform3_type &trf) |
Convert a surface transform trf into its io payload. | |
| template<detray::concepts::detector detector_t> | |
| static volume_payload | to_payload (const typename detector_t::volume_type &vol_desc, const detector_t &det, const std::string_view name) |
| Convert a detector volume and its contents to its IO representation. | |
Static Public Attributes | |
| static constexpr std::string_view | tag = "geometry" |
| Tag the writer as "geometry". | |
Tracking geometry writer backend.
Fills a detector_payload from a detector instance
|
static |
Convert the header information into its payload.
| detector_t | Detector type to serialize. |
| det | Detector providing the volume and surface collections. |
| det_name | Name recorded in the serialized header. |
|
static |
Convert a detector det into its io payload.
| detector_t | Detector type to serialize. |
| det | Detector whose geometry is serialized. |
| names | Optional volume names indexed by volume index. |
|
static |
Convert a detector surface sf into its io payload.
| detector_t | Detector type owning the surface. |
| sf | Surface descriptor to serialize. |
| sf_idx | Surface position within its volume collection. |
|
static |
Convert a surface mask m into its io payload.
| mask_t | Mask type to serialize. |
| m | Mask whose shape, link, and boundaries are recorded. |
|
static |
Convert a surface transform trf into its io payload.
| detector_t | Detector type supplying the transform type. |
| trf | Transform to serialize. |
|
static |
Convert a detector volume and its contents to its IO representation.
| detector_t | Detector type to serialize. |
| vol_desc | Volume descriptor to serialize. |
| det | Detector providing transforms, surfaces, and accelerators. |
| name | Name associated with the volume. |