Problem 375

Summary: Infinite loop at the bounday of Sphere with multiple scattering of charged particle
Product: Geant4 Reporter: mizushim
Component: geometry/solidsAssignee: Vladimir.Grichine
Status: RESOLVED INVALID    
Severity: normal CC: John.Apostolakis, Michel.Maire
Priority: P2    
Version: 4.0   
Hardware: PC   
OS: Linux   
URL: http://www.slac.stanford.edu/~hirofumi/myprog.html

Description mizushim 2002-05-28 13:14:57 CEST
Infinite loop (getting in/out of a volume without moving) is found on the
surface of G4Sphare for charged particles with multiple scattering process.
This infinite loop does not occur for neutral particle nor charged geantino.
The sample program, output lists, etc. are posted on
 http://www.slac.stanford.edu/~hirofumi/myprog.html
Comment 1 Vladimir.Grichine 2002-05-29 03:49:59 CEST
The problem was in the definition of G4Sphere. One should use G4/CLHEP constants
like pi/M_PI rather than fixed values with limited accuracy.

  G4VSolid* spher_solid = new G4Sphere ("ScintiDome",
                                        Rin_spher,
                                        Rin_spher + thick_spher,
                                        0,
					2*pi, //  2*3.1415926535,
                                        0,
                                        2*pi); //  2*3.1415926535);