Celeritas 0.6.0-2+develop.96611fab
|
Access optical material properties. More...
#include <MaterialView.hh>
Public Types | |
Type aliases | |
using | ParamsRef = NativeCRef< MaterialParamsData > |
using | MatId = OptMatId |
Public Member Functions | |
CELER_FUNCTION | MaterialView (ParamsRef const ¶ms, MatId id) |
Construct from an optical material. | |
CELER_FUNCTION | MaterialView (ParamsRef const ¶ms, VolumeId vol) |
Construct from the current geometry volume. | |
CELER_FUNCTION | operator bool () const |
Whether the view is into an optical material. | |
CELER_FORCEINLINE_FUNCTION MatId | material_id () const |
Get the optical material id. | |
CELER_FORCEINLINE_FUNCTION PhysMatId | core_material_id () const |
Get the id of the core material associated with this optical material. | |
CELER_FUNCTION NonuniformGridCalculator | make_refractive_index_calculator () const |
Access energy-dependent refractive index. | |
Access optical material properties.
|
inline |
Whether the view is into an optical material.
This accessor is so that tracks can enter a non-optical region and be killed without crashing the code.