I used two uniform magnetic fields to bend proton beam in x and y directions for proton spot scanning. For example, I want to deliver a spot on (-10 cm, -10 cm) on one plane. In Geant4.9.5.p01, the proton spot position is correct as specified. However, in Geant4.9.6.p02, for the same problem with the same source code, the spot position is away from the specified position in y direction. It was delivered to (-10 cm, -14 cm). Please see the attached two pictures. Who can help check the source code of G4UniformMagField. Thanks a lot! Fada Guan
Created attachment 241 [details] spot http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/10/25/12.47-7864-_guanfada_Desktop_9.5.png http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/10/25/12.47-80530-_guanfada_Desktop_9.6.png
I tested the same problem using Geant4.10.0, and the result was correct. Hence, I believe it is only the Geant4.9.6 specific problem.
I guess it is due to the MSC algorithm in magnetic field.