Function RMGNavigationTools::FindDirectMothers¶
Function Documentation¶
-
std::set<G4VPhysicalVolume*> RMGNavigationTools::FindDirectMothers(const G4VPhysicalVolume *volume)¶
Finds all direct mother volumes of a given physical volume.
Searches the global
G4PhysicalVolumeStorefor all physical volumes whose associated logical volumes are ancestors of the given volume. Then filters out non‐minimal ancestors so that only the direct (minimal) mothers remain.- Parameters:
volume – Pointer to the
G4VPhysicalVolumewhose direct mothers are to be found.- Returns:
A
std::setof pointers to the direct motherG4VPhysicalVolumeobjects.