Function RMGNavigationTools::FindDirectMother¶
Function Documentation¶
-
G4VPhysicalVolume *RMGNavigationTools::FindDirectMother(G4VPhysicalVolume *volume)¶
Finds the direct mother volume of a given physical volume.
Returns the unique physical volume that is the direct mother of the specified volume. If multiple direct mothers are found, a fatal error is logged and the first one is returned.
- Parameters:
volume – Pointer to the
G4VPhysicalVolumewhose direct mother is sought.- Returns:
Pointer to the direct mother
G4VPhysicalVolume.