|
Celeritas 0.7.0-dev.172+develop.fe2a0acd4
|
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.
VolumeLevelId, i.e. the initial entry is the "most global" level.