|
ACTS
Experiment-independent tracking
|
The following enums are global for all detectors. More...
Classes | |
| struct | axis_payload |
| axis definition and bin edges More... | |
| struct | common_header_payload |
| a payload for common information More... | |
| struct | detector_grids_payload |
| A payload for the grid collections of a detector. More... | |
| struct | detector_homogeneous_material_payload |
| A payload for the homogeneous material description of a detector. More... | |
| struct | detector_payload |
| A payload for a detector geometry. More... | |
| struct | detector_reader_config |
| config struct for detector reading. More... | |
| struct | detector_writer_config |
| config struct for detector writing. More... | |
| class | file_handle |
| Wrapper around a file stream. More... | |
| struct | geo_sub_header_payload |
| Geometry payloads. More... | |
| class | geometry_reader |
| Tracking geometry reader backend. More... | |
| class | geometry_writer |
| Tracking geometry writer backend. More... | |
| struct | grid_bin_payload |
| A payload for a single grid bin. More... | |
| struct | grid_payload |
| A payload for a grid definition. More... | |
| struct | grid_sub_header_payload |
| Payloads for a uniform grid. More... | |
| struct | header_payload |
| a payload for common and extra information More... | |
| class | homogeneous_material_reader |
| Homogeneous material reader backend. More... | |
| struct | homogeneous_material_sub_header_payload |
| Material payloads. More... | |
| class | homogeneous_material_writer |
| Homogeneous material writer backend. More... | |
| class | json_converter |
| Class that adds converts io payloads to json and back. More... | |
| class | json_converter< detector_t, backend_t > |
| Class that adds json functionality to backend reader types. More... | |
| struct | mask_payload |
| A payload object for surface masks. More... | |
| class | material_map_reader |
| Material map reader backend. More... | |
| class | material_map_writer |
| Material maps writer backend. More... | |
| struct | material_param_payload |
| A payload object for a material parametrization. More... | |
| struct | material_volume_payload |
| A payload object for all of the [surface] material contained in a volume. More... | |
| class | reader_interface |
| Abstract base class for detray detector component readers. More... | |
| struct | single_link_payload |
| A payload for a single object link (volume local). More... | |
| class | surface_grid_reader |
| Surface grid reader backend. More... | |
| class | surface_grid_writer |
| Surface grid writer backend. More... | |
| struct | surface_material_payload |
| A payload object for a material slab/rod. More... | |
| struct | surface_payload |
| A payload for surfaces. More... | |
| struct | transform_payload |
| A payload for an affine transformation in homogeneous coordinates. More... | |
| struct | typed_link_payload |
A payload for a typed object link (dtyped_index). More... | |
| struct | volume_material_payload |
| A payload for the material of a volume. More... | |
| struct | volume_payload |
| A payload for volumes. More... | |
| class | writer_interface |
| Abstract base class for detray detector component writers. More... | |
Typedefs | |
| template<detray::concepts::algebra algebra_t> | |
| using | frame_registry |
Register the grid shapes to the accel_id enum. | |
| template<detray::concepts::algebra algebra_t> | |
| using | material_registry |
Register the material types to the material_id enum. | |
| using | scalar = double |
| Default scalar precision used for serialized geometry payloads. | |
| using | shape_registry |
Register the mask shapes to the IO shape_id enum. | |
| using | geo_header_payload = header_payload<geo_sub_header_payload> |
| a payload for the geometry file header | |
| using | material_link_payload = typed_link_payload<io::material_id> |
| A payload object to link a surface to its material. | |
| using | acc_links_payload = typed_link_payload<io::accel_id> |
| A payload object to link a volume to its acceleration data structures. | |
| using | homogeneous_material_header_payload |
| a payload for the homogeneous material file header | |
| using | grid_header_payload = header_payload<grid_sub_header_payload> |
| a payload for the grid file header | |
Enumerations | |
| enum class | accel_id : unsigned int { brute_force = 0u , cartesian2_grid = 1u , cuboid3_grid = 2u , polar2_grid = 3u , concentric_cylinder2_grid = 4u , cylinder2_grid = 5u , cylinder3_grid = 6u , n_accel = 7u , unknown = n_accel } |
| Enumerate the different acceleration data structures. | |
| enum class | format { json = 0u } |
| Supported serialization formats. | |
| enum class | material_id : unsigned int { annulus2_map = 0u , rectangle2_map = 1u , cuboid3_map = 2u , concentric_cylinder2_map = 3u , cylinder2_map = 4u , cylinder3_map = 5u , ring2_map = 0u , trapezoid2_map = 1u , slab = 6u , rod = 7u , raw_material = 8u , n_mats = 9u , unknown = n_mats } |
| Enumerate the different material types. | |
| enum class | shape_id : unsigned int { annulus2 = 0u , cuboid3 = 1u , cylinder2 = 2u , cylinder3 = 3u , portal_cylinder2 = 4u , rectangle2 = 5u , ring2 = 6u , trapezoid2 = 7u , drift_cell = 8u , straw_tube = 9u , single1 = 10u , single2 = 11u , single3 = 12u , n_shapes = 13u , unknown = n_shapes } |
| Enumerate the shape primitives globally. | |
Functions | |
| std::string | alt_file_name (const std::string &name) |
| Find an unused numbered alternative to an existing file name. | |
| auto | create_path (const std::string &outdir) |
| Check if a given file path exists and generate it if not. | |
| bool | file_exists (const std::string &outdir) |
| Check if a file exists. | |
| std::ostream & | operator<< (std::ostream &os, accel_id aid) |
| Write a navigation-accelerator identifier using its enumerator name. | |
| std::ostream & | operator<< (std::ostream &os, material_id mid) |
| Write a material representation identifier using its enumerator name. | |
| std::ostream & | operator<< (std::ostream &os, shape_id sid) |
| Write a surface-shape identifier using its enumerator name. | |
| template<class detector_t, std::size_t CAP = 0u, std::size_t DIM = 2u> | |
| void | read_components_from_file (const std::vector< std::string > &file_names, detector_builder< typename detector_t::metadata, volume_builder > &det_builder) |
| Read detector components from a list of files. | |
| template<class detector_t, std::size_t CAP = 0u, std::size_t DIM = 2u, template< typename > class volume_builder_t = volume_builder> | |
| auto | read_detector (vecmem::memory_resource &resc, const detector_reader_config &cfg) noexcept(false) |
| Reader function for detray detectors. | |
| template<class detector_t> | |
| void | write_detector (detector_t &det, const typename detector_t::name_map &names, detector_writer_config &cfg) |
| Writer function for detray detectors. | |
The following enums are global for all detectors.
Raw indices (std::size_t) denote links between data components in different files, while links used in detray detector objects are modelled as e.g.
single_link_payload
| using detray::io::frame_registry |
Register the grid shapes to the accel_id enum.
a payload for the homogeneous material file header
| using detray::io::material_registry |
Register the material types to the material_id enum.
Register the mask shapes to the IO shape_id enum.
| std::string detray::io::alt_file_name | ( | const std::string & | name | ) |
Find an unused numbered alternative to an existing file name.
| name | original file path |
| auto detray::io::create_path | ( | const std::string & | outdir | ) |
Check if a given file path exists and generate it if not.
| outdir | directory path to create |
| bool detray::io::file_exists | ( | const std::string & | outdir | ) |
Check if a file exists.
| outdir | path to inspect |
| std::ostream & detray::io::operator<< | ( | std::ostream & | os, |
| accel_id | aid ) |
Write a navigation-accelerator identifier using its enumerator name.
| os | output stream |
| aid | identifier to print |
| std::ostream & detray::io::operator<< | ( | std::ostream & | os, |
| material_id | mid ) |
Write a material representation identifier using its enumerator name.
| os | output stream |
| mid | identifier to print |
| std::ostream & detray::io::operator<< | ( | std::ostream & | os, |
| shape_id | sid ) |
Write a surface-shape identifier using its enumerator name.
| os | output stream |
| sid | identifier to print |
| void detray::io::read_components_from_file | ( | const std::vector< std::string > & | file_names, |
| detector_builder< typename detector_t::metadata, volume_builder > & | det_builder ) |
Read detector components from a list of files.
| file_names | list of files to be read |
| det_builder | detector builder to be filled |
| auto detray::io::read_detector | ( | vecmem::memory_resource & | resc, |
| const detector_reader_config & | cfg ) |
Reader function for detray detectors.
| detector_t | the type of detector to be built |
| CAP | surface grid bin capacity. If CAP is 0, the grid reader builds a grid type with dynamic bin capacity |
| DIM | dimension of the surface grids, usually 2D |
| volume_builder_t | the type of base volume builder to be used |
| resc | the memory resource to be used for the detector container allocs |
| cfg | the detector reader configuration |
| void detray::io::write_detector | ( | detector_t & | det, |
| const typename detector_t::name_map & | names, | ||
| detector_writer_config & | cfg ) |
Writer function for detray detectors.
Assemble the configured component writers and serialize the detector.
| detector_t | detector type providing stores and name map |
| det | detector whose component stores are written |
| names | map used to write component names |
| cfg | output format, destination, and component-selection options |