|
ACTS
Experiment-independent tracking
|
Surface and volume material assignments. More...
#include <Acts/Material/TrackingGeometryMaterial.hpp>
Public Member Functions | |
| TrackingGeometryMaterial ()=default | |
| Construct empty material assignments. | |
| TrackingGeometryMaterial (SurfaceMaterialMaps surfaces, VolumeMaterialMaps volumes, KeyedSurfaceMaterialMaps keyed={}) | |
| Construct from material assignment maps. | |
| void | apply (std::span< Surface *const > surfaces) const |
| Apply to selected surfaces with the same validation as a complete geometry. | |
| void | apply (Surface &surface) const |
| Apply to a single surface. | |
| void | apply (TrackingGeometry &geometry) const |
| Apply material to a completed geometry, checking surface identities and resolving all surface assignments before modifying the geometry. | |
| void | apply (TrackingVolume &volume) const |
| Apply volume material by geometry identifier. | |
| const std::optional< std::string > & | description () const |
| Read the optional document description, ignored when applying material. | |
| void | setDescription (std::optional< std::string > description) |
| Set or remove the document description. | |
Static Public Member Functions | |
| static TrackingGeometryMaterial | fromGeometry (const TrackingGeometry &geometry, bool includeNonMaterial=false) |
| Extract material assignments without modifying the geometry or resolving deferred binning. | |
Public Attributes | |
| KeyedSurfaceMaterialMaps | keyedSurfaces {} |
| Surface assignments indexed by stable string key. | |
| SurfaceMaterialMaps | surfaceMaterials {} |
| Unkeyed surface assignments indexed by geometry ID. | |
| VolumeMaterialMaps | volumeMaterials {} |
| Volume assignments indexed by geometry ID. | |
Surface and volume material assignments.
Keyed assignments are stored separately and must never be matched by ID.
| Acts::TrackingGeometryMaterial::TrackingGeometryMaterial | ( | SurfaceMaterialMaps | surfaces, |
| VolumeMaterialMaps | volumes, | ||
| KeyedSurfaceMaterialMaps | keyed = {} ) |
Construct from material assignment maps.
| surfaces | Unkeyed surface assignments |
| volumes | Volume assignments |
| keyed | Stable-key surface assignments |
| void Acts::TrackingGeometryMaterial::apply | ( | std::span< Surface *const > | surfaces | ) | const |
Apply to selected surfaces with the same validation as a complete geometry.
| surfaces | Surfaces whose material is updated; repeated pointers are allowed |
| void Acts::TrackingGeometryMaterial::apply | ( | Surface & | surface | ) | const |
Apply to a single surface.
This cannot check uniqueness across surfaces.
| surface | Surface whose material is updated |
| void Acts::TrackingGeometryMaterial::apply | ( | TrackingGeometry & | geometry | ) | const |
Apply material to a completed geometry, checking surface identities and resolving all surface assignments before modifying the geometry.
Keyed surfaces require a matching key; unused map entries are allowed.
| std::invalid_argument | if a keyed map is applied to Gen1 geometry |
| geometry | Geometry whose material is updated |
| void Acts::TrackingGeometryMaterial::apply | ( | TrackingVolume & | volume | ) | const |
Apply volume material by geometry identifier.
| volume | Volume whose material is updated |
| const std::optional< std::string > & Acts::TrackingGeometryMaterial::description | ( | ) | const |
Read the optional document description, ignored when applying material.
|
static |
Extract material assignments without modifying the geometry or resolving deferred binning.
Existing material payloads are shared with the geometry.
| geometry | Geometry to extract material from |
| includeNonMaterial | Add deferred one-bin proto grids for bare surfaces |
| void Acts::TrackingGeometryMaterial::setDescription | ( | std::optional< std::string > | description | ) |
Set or remove the document description.
Empty descriptions are allowed.
| description | Text, or std::nullopt to remove the description |