Function RMGOutputTools::distance_to_surface(const G4VPhysicalVolume *, const G4ThreeVector&, bool)

Function Documentation

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

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.

  • is_distance_check_germanium_only – when true, only daughters registered as Germanium detectors are considered in daughter-surface checks.