SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SHiPGeometry::SHiPMaterials Class Reference

Central material manager for the SHiP detector. More...

#include <SHiPMaterials.h>

Public Member Functions

 SHiPMaterials ()
 
 ~SHiPMaterials ()=default
 
 SHiPMaterials (const SHiPMaterials &)=delete
 
SHiPMaterialsoperator= (const SHiPMaterials &)=delete
 
GeoMaterial * getMaterial (const std::string &name) const
 Get a material by name.
 
GeoMaterial * requireMaterial (const std::string &name) const
 Get a material by name, throwing if not found.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SHiPMaterials() [1/2]

SHiPGeometry::SHiPMaterials::SHiPMaterials ( )

◆ ~SHiPMaterials()

SHiPGeometry::SHiPMaterials::~SHiPMaterials ( )
default

◆ SHiPMaterials() [2/2]

SHiPGeometry::SHiPMaterials::SHiPMaterials ( const SHiPMaterials )
delete

Member Function Documentation

◆ getMaterial()

GeoMaterial * SHiPGeometry::SHiPMaterials::getMaterial ( const std::string &  name) const

Get a material by name.

Parameters
nameMaterial name (e.g., "Air", "Concrete", "Tungsten")
Returns
Pointer to GeoMaterial or nullptr if not found

◆ operator=()

SHiPMaterials & SHiPGeometry::SHiPMaterials::operator= ( const SHiPMaterials )
delete

◆ requireMaterial()

GeoMaterial * SHiPGeometry::SHiPMaterials::requireMaterial ( const std::string &  name) const

Get a material by name, throwing if not found.

Parameters
nameMaterial name (e.g., "Air", "Concrete", "Tungsten")
Returns
Pointer to GeoMaterial (never nullptr)
Exceptions
std::runtime_errorif material not found

The documentation for this class was generated from the following files: