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 G4PhysicalVolumeStore for 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 G4VPhysicalVolume whose direct mothers are to be found.

Returns:

A std::set of pointers to the direct mother G4VPhysicalVolume objects.