|
ACTS
Experiment-independent tracking
|
Templated surface class for detector surfaces and portals. More...
#include <detray/geometry/surface_descriptor.hpp>
Public Member Functions | |
| constexpr | surface_descriptor ()=default |
| Default constructor. | |
| constexpr | surface_descriptor (const transform_link trf, const mask_link mask, const material_link material, const dindex volume, const surface_id sf_id) |
| Constructor with full arguments. | |
| constexpr auto | has_material () const -> bool |
| constexpr auto | id () const -> surface_id |
| constexpr auto | identifier () const -> geometry::identifier |
| constexpr auto | index () const -> dindex |
| constexpr auto | is_passive () const -> bool |
| constexpr auto | is_portal () const -> bool |
| constexpr auto | is_sensitive () const -> bool |
| constexpr auto | mask () const -> const mask_link & |
| constexpr auto | material () -> material_link & |
| Access to the material. | |
| constexpr auto | material () const -> const material_link & |
| constexpr auto | operator== (const surface_descriptor &rhs) const -> bool |
| Equality operator. | |
| auto | set_id (const surface_id new_id) -> void |
| Sets a new surface id (portal/passive/sensitive). | |
| auto | set_identifier (const geometry::identifier geo_id) -> void |
| Sets a new surface identifier. | |
| auto | set_index (const dindex new_idx) -> void |
| Sets a new surface index (index in surface collection of surface store). | |
| auto | set_volume (const dindex new_idx) -> void |
| Sets a new volume link (index in volume collection of detector). | |
| constexpr auto | transform () const -> dindex |
| auto | update_mask (dindex offset) -> void |
| Update the mask link. | |
| auto | update_material (dindex offset) -> void |
| Update the material link. | |
| auto | update_transform (dindex offset) -> void |
| Update the transform index. | |
| constexpr auto | volume () const -> dindex |
Templated surface class for detector surfaces and portals.
| mask_regsitry_t | the type collection of masks that can be linked to the surface |
| material_registry_t | the type collection of material that can be linked to the surface |
| transform_link_t | how to reference the surfaces transforms |
|
constexpr |
Constructor with full arguments.
| trf | the transform for positioning and 3D local frame |
| mask | the type and index of the mask for this surface |
| material | the type and index of the material for this surface |
| volume | Index of the containing volume. |
| sf_id | remember whether this is a portal or not |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Access to the material.
|
constexpr |
|
constexpr |
Equality operator.
| rhs | is the right hand side to be compared to |
| auto detray::surface_descriptor< mask_link_t, material_link_t, transform_link_t, navigation_link_t >::set_id | ( | const surface_id | new_id | ) | ->void |
Sets a new surface id (portal/passive/sensitive).
| new_id | Surface category to store. |
| auto detray::surface_descriptor< mask_link_t, material_link_t, transform_link_t, navigation_link_t >::set_identifier | ( | const geometry::identifier | geo_id | ) | ->void |
Sets a new surface identifier.
| geo_id | Identifier to store. |
| auto detray::surface_descriptor< mask_link_t, material_link_t, transform_link_t, navigation_link_t >::set_index | ( | const dindex | new_idx | ) | ->void |
Sets a new surface index (index in surface collection of surface store).
| new_idx | Index to store. |
| auto detray::surface_descriptor< mask_link_t, material_link_t, transform_link_t, navigation_link_t >::set_volume | ( | const dindex | new_idx | ) | ->void |
Sets a new volume link (index in volume collection of detector).
| new_idx | Index of the containing volume. |
|
constexpr |
| auto detray::surface_descriptor< mask_link_t, material_link_t, transform_link_t, navigation_link_t >::update_mask | ( | dindex | offset | ) | ->void |
Update the mask link.
| offset | update the position when move into new collection |
| auto detray::surface_descriptor< mask_link_t, material_link_t, transform_link_t, navigation_link_t >::update_material | ( | dindex | offset | ) | ->void |
Update the material link.
| offset | update the position when move into new collection |
| auto detray::surface_descriptor< mask_link_t, material_link_t, transform_link_t, navigation_link_t >::update_transform | ( | dindex | offset | ) | ->void |
Update the transform index.
| offset | update the position when move into new collection |
|
constexpr |