Problem 1016 - Particles travel outside the world volume!
Summary: Particles travel outside the world volume!
Status: RESOLVED DUPLICATE of problem 1046
Alias: None
Product: Geant4
Classification: Unclassified
Component: geometry/solids (show other problems)
Version: 9.0
Hardware: PC Linux
: P1 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2008-07-20 04:00 CEST by LOKI
Modified: 2009-01-27 19:55 CET (History)
2 users (show)

See Also:


Attachments
problem program (480.00 KB, application/x-tar)
2008-07-20 04:00 CEST, LOKI
Details

Note You need to log in before you can comment on or make changes to this problem.
Description LOKI 2008-07-20 04:00:06 CEST
Created attachment 27 [details]
problem program

I made a simple geometry configuration with a spherical ball inside a box(at the edge of the box), which both filled by Air, and shot the ball with gamma radiation. When the ray is injected into the air ball, and interacted with the air matter, for instance the compton scattering, the next step of the ray will be outside the world volume with lots of warning message output on the terminal. 
I will upload my program. How can i solve this problem? 
   And another problem i'd consult. Can Geant4 be used to simulate Mott Scattering of electron, or the recent publication in the furture would include the Mott Scattering process? 


best regards

LOKI
Comment 1 Gabriele Cosmo 2008-08-20 15:38:34 CEST
From a first analysis to the attached source code, it looks like that the error
condition gets generated when galactic-vacuum is assigned as material
instead of air.
Still, an error condition that deserves deeper analysis; a typical error reported
from the solid in debug-mode is the following (here changed G4Sphere to
G4Orb from the original application, same effect with G4Sphere...):

*** G4Exception : Notification
      issued by : G4Orb::DistanceToOut(p,v,..)
Logic error: snxt = kInfinity ???
*** This is just a warning message.

-----------------------------------------------------------
    *** Dump for solid - scorer_solid ***
    ===================================================
 Solid type: G4Orb
 Parameters: 
    outer radius: 50 mm 
-----------------------------------------------------------
Position:

p.x() = 13062.14184208585 mm
p.y() = -68002.53951152996 mm
p.z() = -71115.93053899711 mm

Direction:

v.x() = 0.7761175275201136
v.y() = 0.6197844183134932
v.z() = 0.1162276141537394

Proposed distance :

snxt = 9e+99 mm


To be also noticed that the geometry setup may become invalid if the
TargetThickness is set to be greater than 60m in the input macro, this
would generate overlaps.

Comment 2 Gabriele Cosmo 2008-10-28 09:23:13 CET
Setup of user's application for sensitive detector and scoring should be
double-checked...
Comment 3 Gabriele Cosmo 2009-01-27 19:55:14 CET

*** This problem has been marked as a duplicate of problem 1046 ***