Central material manager for the SHiP detector.
More...
#include <Materials.h>
Central material manager for the SHiP detector.
This class provides access to all materials and elements used in the SHiP detector geometry. Materials are created once and shared across all subsystem factories.
◆ Materials() [1/2]
| SHiP::geometry::Materials::Materials |
( |
| ) |
|
◆ ~Materials()
| SHiP::geometry::Materials::~Materials |
( |
| ) |
|
|
default |
◆ Materials() [2/2]
| SHiP::geometry::Materials::Materials |
( |
const Materials & | | ) |
|
|
delete |
◆ getMaterial()
| GeoMaterial * SHiP::geometry::Materials::getMaterial |
( |
std::string_view | name | ) |
const |
|
nodiscard |
Get a material by name.
- Parameters
-
| name | Material name (e.g., "Air", "Concrete", "Tungsten") |
- Returns
- Pointer to GeoMaterial or nullptr if not found
◆ operator=()
◆ requireMaterial()
| GeoMaterial * SHiP::geometry::Materials::requireMaterial |
( |
std::string_view | name | ) |
const |
|
nodiscard |
Get a material by name, throwing if not found.
- Parameters
-
| name | Material name (e.g., "Air", "Concrete", "Tungsten") |
- Returns
- Pointer to GeoMaterial (never nullptr)
- Exceptions
-
| std::runtime_error | if material not found |
The documentation for this class was generated from the following files: