Problem 1242

Summary: G4TessellatedSolid reports errors with SBT test
Product: Geant4 Reporter: tatiana.nikitina
Component: geometry/navigationAssignee: PRTruscott
Status: RESOLVED FIXED    
Severity: normal CC: Gabriele.Cosmo, Ivana.Hrivnacova, ivana, John.Apostolakis
Priority: P5    
Version: 9.4   
Hardware: All   
OS: All   
Attachments: The patch with a proposed fix

Description tatiana.nikitina 2011-08-19 15:58:26 CEST
Dear Gabriele,

 By testing G4TessellatedSolid with SBT test many erros were reported, like:

 T02: DistanceToIn(p) should be zero DistanceToIn = 447.21359549995793259
 T02: DistanceToOut(p) should be zero DistanceToIn = 1584.2979517754858989
 ...
 T0: DistanceToIn(p,v) == kInfinity DistanceToIn = 2.8421709430404007435e-14
 ...
 
 These errors can lead to serious problems during tracking. 
 For example, with wrong DistanceToIn(p) G4Navigator will move by bigger distance and could miss the Solid.

 SBT test can be find in any developer's version of Geant4 in directory 
 /geant4/source/geometry/solids/test/SBT.
 There is a README file. 
 The macro file for testing G4TessellatedSolid can be found in directory SBT/geant4/tessellatedSolid.geant4.
 Reported errors are in log file in directory SBT/log/tessellatedSolid*.log.
 Reported errors can be visialized with fred(/geant4/source/geometry/solids/test/fred).

Best Regards,
Tatiana
Comment 1 Gabriele Cosmo 2011-08-19 16:18:50 CEST
Assigning to original author.
Comment 2 Ivana Hrivnacova 2011-08-22 14:28:50 CEST
Created attachment 135 [details]
The patch with a proposed fix
Comment 3 Ivana Hrivnacova 2011-08-22 14:31:37 CEST
Dear Pete,

I attached a patch which fixes most of the SBT test errors;
could you, please, check the modifications and let us know if they are ok?
(The patch is based on the reference tag09-04-ref-07.)

Thank you,

Ivana