Problem 357 - Error in G4Para:Inside causes infinite loop
Summary: Error in G4Para:Inside causes infinite loop
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: geometry/solids (show other problems)
Version: 4.0
Hardware: All All
: P2 normal
Assignee: Vladimir.Grichine
URL:
Depends on:
Blocks:
 
Reported: 2002-02-13 23:58 CET by dennis.herbert.wright
Modified: 2002-02-15 01:36 CET (History)
0 users

See Also:


Attachments

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