Problem 1242 - G4TessellatedSolid reports errors with SBT test
Summary: G4TessellatedSolid reports errors with SBT test
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: geometry/navigation (show other problems)
Version: 9.4
Hardware: All All
: P5 normal
Assignee: PRTruscott
URL:
Depends on:
Blocks:
 
Reported: 2011-08-19 15:58 CEST by tatiana.nikitina
Modified: 2011-11-02 09:18 CET (History)
4 users (show)

See Also:


Attachments
The patch with a proposed fix (1.79 KB, text/plain)
2011-08-22 14:28 CEST, Ivana Hrivnacova
Details

Note You need to log in before you can comment on or make changes to this problem.
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