Problem 357

Summary: Error in G4Para:Inside causes infinite loop
Product: Geant4 Reporter: dennis.herbert.wright
Component: geometry/solidsAssignee: Vladimir.Grichine
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 4.0   
Hardware: All   
OS: All   

Description dennis.herbert.wright 2002-02-13 23:58:03 CET
In the method G4Para::Inside  the line
xt=fabs(p.x()-fTthetaCphi*p.z()-fTalpha*yt);
occurs three times, with yt=fabs(p.y()-fTthetaSphi*p.z()).
Within the above expression for xt, the fabs in yt should
be removed since it causes an infinite loop by declaring
a point to be outside a G4Para when it is actually inside.
Comment 1 Gabriele Cosmo 2002-02-14 01:04:59 CET
Thank you for this analysis you did, Dennis.
We'll look into this soon.
Comment 2 Vladimir.Grichine 2002-02-14 09:56:59 CET
The proposal of D. Wright was accepted and fixed in G4Para::Inside function
Comment 3 Gabriele Cosmo 2002-02-15 01:36:59 CET
The fix is now included in tag "geom-csg-V04-00-02".