Function RMGNavigationTools::FindDirectMother

Function Documentation

G4VPhysicalVolume *RMGNavigationTools::FindDirectMother(const 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 G4VPhysicalVolume whose direct mother is sought.

Returns:

Pointer to the direct mother G4VPhysicalVolume.