Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::GeoMaterialView Class Reference

Access geometry-to-material conversion. More...

#include <GeoMaterialView.hh>

Public Types

Type aliases
using GeoMaterialData = NativeCRef< GeoMaterialParamsData >
 

Public Member Functions

CELER_FUNCTION GeoMaterialView (GeoMaterialData const &params)
 Construct from shared data.
 
CELER_FUNCTION MaterialId material_id (VolumeId volume) const
 Return material for the given volume. More...
 

Detailed Description

Access geometry-to-material conversion.

Member Function Documentation

◆ material_id()

CELER_FUNCTION MaterialId celeritas::GeoMaterialView::material_id ( VolumeId  volume) const
inline

Return material for the given volume.

Note that this will fail if the particle is outside – the volume ID will be false.


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