Program aborts, saying 'G4Sphere::DistanceToOut() - Invalid enum'. The dump says: Solid type: G4Sphere; Parameters: inner radius: 209.6 mm ; outer radius: 211.2658 mm; starting and delta phi 0 and 360 degrees; starting and delta theta 0 and 90 degrees; p: (-35.69953348982516 mm, 198.3183279249958, 56.30959457033987 ); v = (-.2346058124516908,- 0.9450502890785083,0.2276841318065671); Proposed distance: snxt = 9e+99 mm . If I pass in calcNorm = true, it aborts; if calcNorm = false, it returns a huge value, but doesn't abort. If I replace the hollow sphere by a solid sphere with radii 0 and 209.6 mm, it doesn't abort. If both are present, it aborts, but gives the inner radius as zero (so it's from the solid sphere). kRadTolerance is 1.e09 .
The point is located outside of the sphere: Rp=209.22568 mm. Therefore G4Sphere::DistanceToOut can not be called for the point. We need an (as simple as possible) application showing prehistory of the configuration.