Celeritas 0.7.0-dev.79+develop.b3dc2e108
|
Update a nav history to match the given volume instance stack. More...
#include <GeantNavHistoryUpdater.hh>
Public Types | |
Type aliases | |
using | VIMapper = detail::GeantVolumeInstanceMapper |
Public Member Functions | |
GeantNavHistoryUpdater (GeantGeoParams const &) | |
Construct using geant geo params. | |
GeantNavHistoryUpdater (VIMapper const &mapper) | |
Construct with volume instance mapper. | |
void | operator() (Span< VolumeInstanceId const > stack, G4NavigationHistory *nav) |
Update a nav history to match the given volume instance stack. | |
Update a nav history to match the given volume instance stack.
This requires metadata from celeritas::global_geant_geo
.
The constructed nav history always has at least one level (i.e. GetDepth is zero). An empty input stack, corresponding to "outside" the world, results in a nav history with one level but a nullptr
physical volume as the top.
LevelId
, i.e. the initial entry is the "most global" level.