| Summary: | Infinite loop at the bounday of Sphere with multiple scattering of charged particle | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | mizushim |
| Component: | geometry/solids | Assignee: | 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
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);
|