Function RMGNavigationTools::FindLogicalVolume¶
Function Documentation¶
-
G4LogicalVolume *RMGNavigationTools::FindLogicalVolume(std::string name)¶
Finds a logical volume by name.
Searches the global
G4LogicalVolumeStorefor a logical volume whose name matches the givenstd::string. Returns a pointer to the matching logical volume ornullptrif not found.- Parameters:
name – The name of the logical volume to search for.
- Returns:
Pointer to the logical volume, or
nullptrif not found.