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 G4PhysicalVolumeStore for a physical volume whose name matches the given std::string and 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 nullptr if not found.