|
Celeritas 0.7.0-dev.356+develop.6a0c715
|
Construct optical material IDs and map from a geometry material ID. More...
#include <GeoOpticalIdMap.hh>
Public Member Functions | |
| GeoOpticalIdMap ()=default | |
| Construct without optical materials. | |
| GeoOpticalIdMap (G4MaterialTable const &) | |
| Construct from underlying Geant4 objects. | |
| OptMatId | operator[] (GeoMatId) const |
| Return the optical ID corresponding to a geo ID. | |
| bool | empty () const |
| True if no optical materials are present. | |
| GeoMatId::size_type | num_geo () const |
| Number of geometry materials. | |
| OptMatId::size_type | num_optical () const |
| Number of optical materials. | |
Construct optical material IDs and map from a geometry material ID.
This construct a material -> optical material mapping based on whether the RINDEX table is present on a Geant4 material.
As a reminder, geometry materials correspond to G4Material and physics materials correspond to G4MaterialCutsCouple .
Return the optical ID corresponding to a geo ID.
The result may be a "null" ID if there's no associated optical physics.