Function RMGNavigationTools::FindPhysicalVolume¶
Function Documentation¶
-
G4VPhysicalVolume *RMGNavigationTools::FindPhysicalVolume(std::string name, int copy_nr = 0)¶
Finds a physical volume by name and copy number.
Searches the global
G4PhysicalVolumeStorefor a physical volume whose name matches the givenstd::stringand whose copy number matches the specified value.- Parameters:
name – The name of the physical volume to search for.
copy_nr – The copy number (default is 0).
- Returns:
Pointer to the physical volume, or
nullptrif not found.