|
ACTS
Experiment-independent tracking
|
Surface descriptor used for geometry supplied outside the detector store. More...
#include <detray/navigation/external_surface.hpp>
Public Types | |
| using | mask_type = detray::mask<shape_t, algebra_t, nav_link_t> |
| Mask type describing the surface shape and extent. | |
| using | material_type = material_t |
| Material representation attached to this surface. | |
| using | navigation_link = nav_link_t |
| Link type of the mask to a volume. | |
| using | transform3_type = dtransform3D<algebra_t> |
| Transform type describing the surface placement. | |
Public Member Functions | |
| constexpr | external_surface ()=default |
| Default constructor. | |
| constexpr | external_surface (const transform3_type &trf, const mask_type &mask, const material_type &material, const dindex volume, const surface_id sf_id) |
| Constructor with full arguments. | |
| constexpr | external_surface (transform3_type &&trf, mask_type &&mask, material_type &&material, const dindex volume, const surface_id sf_id) |
| Constructor with full arguments - move semantics. | |
| constexpr auto | barcode () const -> geometry::identifier |
| 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_type & |
| constexpr auto | material () -> material_type & |
| Access to the material. | |
| constexpr auto | material () const -> const material_type & |
| operator geometry::identifier () const | |
| Explicit conversion for APIs that take geometry::identifier. | |
| constexpr auto | operator== (const external_surface &rhs) const -> bool |
| Equality operator. | |
| auto | set_barcode (const geometry::identifier bcd) -> void |
| Sets a new surface barcode. | |
| auto | set_id (const surface_id new_id) -> void |
| Sets a new surface id (portal/passive/sensitive). | |
| auto | set_index (const dindex new_idx) -> void |
| Sets a new surface index (index in surface collection of surface store). | |
| void | set_mask (const mask_type m) |
| Update the mask link. | |
| void | set_material (const material_type &offset) |
| Update the material link. | |
| void | set_transform (const transform3_type &trf) |
| Update the transform index. | |
| auto | set_volume (const dindex new_idx) -> void |
| Sets a new volume link (index in volume collection of detector). | |
| constexpr auto | transform () const -> const transform3_type & |
| constexpr auto | volume () const -> dindex |
Surface descriptor used for geometry supplied outside the detector store.
It bundles placement, mask, material, and detector identifiers.
|
constexpr |
Constructor with full arguments.
| trf | the transform for positioning and 3D local frame |
| mask | the surface mask |
| material | the surface material |
| volume | the volume this surface belongs to |
| sf_id | remember whether this is a portal or not |
|
constexpr |
Constructor with full arguments - move semantics.
| trf | the transform for positioning and 3D local frame |
| mask | the surface mask |
| material | the surface material |
| volume | the volume this surface belongs to |
| sf_id | remember whether this is a portal or not |
|
constexpr |
|
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::external_surface< algebra_t, shape_t, material_t, nav_link_t >::set_barcode | ( | const geometry::identifier | bcd | ) | ->void |
Sets a new surface barcode.
| bcd | Identifier to assign to this surface. |
| auto detray::external_surface< algebra_t, shape_t, material_t, nav_link_t >::set_id | ( | const surface_id | new_id | ) | ->void |
Sets a new surface id (portal/passive/sensitive).
| new_id | Classification to assign to the surface. |
| auto detray::external_surface< algebra_t, shape_t, material_t, nav_link_t >::set_index | ( | const dindex | new_idx | ) | ->void |
Sets a new surface index (index in surface collection of surface store).
| new_idx | Index of the surface in its collection. |
| void detray::external_surface< algebra_t, shape_t, material_t, nav_link_t >::set_mask | ( | const mask_type | m | ) |
Update the mask link.
| m | New surface mask. |
| void detray::external_surface< algebra_t, shape_t, material_t, nav_link_t >::set_material | ( | const material_type & | offset | ) |
Update the material link.
| offset | update the position when move into new collection |
| void detray::external_surface< algebra_t, shape_t, material_t, nav_link_t >::set_transform | ( | const transform3_type & | trf | ) |
Update the transform index.
| trf | New surface placement transform. |
| auto detray::external_surface< algebra_t, shape_t, material_t, nav_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 owning or linked volume. |
|
constexpr |
|
constexpr |