Created attachment 38 [details] Add a ellipsoid in the detector construction of TestEm16 code. <Overview>>>>>>>> When I tried to test the detector geometry which has a single large ellipsoid shape detector by using "/geometry/test/grid_test" command, it shows "solid problem". Part of error is shown below. ---- GeomTest Error: SolidProblem Solid has odd number of intersection points Solid name = air_layer_solid0 Local position = 3.24007e+08 2.85126e+08 0 cm GeomTest Error: SolidProblem Unmatched intersection point Solid name = air_layer_solid0 Local position = 3.24007e+08 2.85126e+08 4.72901e+08 cm ---- <To reproduce >>>> 1) Add the detector construction in TestEm16 with the attached DetectorConstruction.cc file. (World size has been increased and one ellipsoid is added from original version.) 2) Run with 'vis.mac' and check the status with '/geometry/test/grid_test' command. <Results shown to me >>>> Long list of GeomTest Error. After that, "GeomTest: no overlapping daughters detected." is shown. <Platform>>>>>>> Linux version 2.6.18-92.1.22.el5 (CentOs release 5.2) Geant4.9.1 p02 CLHEP 2.0.2.3
The constructed Ellipsoid is Overlapping with the WorldVolume, this causes problems with tracking and with geometry/test. It was also verified that after correction of the dimentions, /geometry/test/grid_test replays correctly : GeomTest: no daughter volume extending outside mother detected. GeomTest: no overlapping daughters detected. The additional message about 'odd' intersections it is a warning message. It might be a problem with DistanceToIn() or DistanceToOut() of G4Ellipsoid. It has to be verified.
Dear Nahee, The warning messages from "geometry/test/grid_test" were showing a real error in Inside() and in DistanceToIn(p,v) for the points situated on the Curved Surface. This problem is fixed and the fix will be provided in the next Geant4 release. Thank you for reporting the problem. Tatiana Nikitina