Function RMGOutputTools::distance_to_surface

Function Documentation

double RMGOutputTools::distance_to_surface(const G4VPhysicalVolume *pv, const G4ThreeVector &position)

Compute the distance from the point to the surface of the physical volume.

Checks distance to surfaces of mother volume.

Parameters:
  • pv – The physical volume to find the distance to.

  • position – The position to evaluate the distance for.