Function RMGNavigationTools::GetVolumeCacheEntry¶
Function Documentation¶
-
std::unordered_map<constG4VPhysicalVolume*, VolumeCacheEntry>::iterator RMGNavigationTools::GetVolumeCacheEntry(const G4VPhysicalVolume *pv)¶
Add a physical volume to the cache for distance to surface calculations.
This computes the inverse transform and daughter volume information for the physical volume and stores it in the cache. If the volume is already in the cache, it returns an iterator to the existing entry. Otherwise, it adds a new entry and returns an iterator to it.