Function RMGNavigationTools::FindLogicalVolume

Function Documentation

G4LogicalVolume *RMGNavigationTools::FindLogicalVolume(std::string name)

Finds a logical volume by name.

Searches the global G4LogicalVolumeStore for a logical volume whose name matches the given std::string. Returns a pointer to the matching logical volume or nullptr if not found.

Parameters:

name – The name of the logical volume to search for.

Returns:

Pointer to the logical volume, or nullptr if not found.