The macro below, to be run with extented/electromagnetic/TestEm5, show that it is not possible to set a magnetic field in the World, if this World is made of low density material, like "Galactic". # # Macro file for the initialization phase of "TestEm5.cc" # # It creates the default geometry (simple absorber box ) # /control/verbose 2 /run/verbose 2 # /calor/setWorldMat Air /calor/setAbsMat XenonGas /calor/setField 10 tesla # /gun/particle proton /gun/energy 10 MeV /tracking/verbose 1 # /step/setMaxStep 1 mm /run/beamOn 10 # ##/calor/setWorldMat Air ##/calor/setAbsMat Galactic ##/run/beamOn 10 # ##/calor/setWorldMat Galactic ##/calor/setAbsMat XenonGas ##/run/beamOn 10
A protection has been added in the magnetic field classes which corrects the problem seen in this case. The tag containing these fixes geomvol-V03-01-08 is now accepted, and should appear in the next public release, 3.2
I tried Geant4 V3.2, the problem seen with the attached macro is still here.
The changes in Geant4 3.2 were activated by default. This has now been corrected -- and the fixes have been included in Geant4 4.0.