Celeritas 0.7.0-dev.79+develop.b3dc2e108
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::GeantNavHistoryUpdater Class Reference

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.
 

Detailed Description

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.

Note
The stack should have the same semantics as LevelId, i.e. the initial entry is the "most global" level.

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