Message: Re: error in the magnetic field for Bx to control the track along y Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: error in the magnetic field for Bx to control the track along y 

Forum: Fields: Magnetic and Otherwise
Re: None error in the magnetic field for Bx to control the track along y (Fada Guan)
Date: 25 Oct, 2013
From: Gumplinger Peter <Gumplinger Peter>

> 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.

Nothing changed between the two versions. You can check yourself (visually) with:

http://www-geant4.kek.jp/lxr/source/geometry/magneticfield/src/G4UniformMagField.cc?v=9.5.p1
http://www-geant4.kek.jp/lxr/source//geometry/magneticfield/src/G4UniformMagField.cc

I can only suggest that you run with stepping verbose both executables and see where things diverge for a single track. Do you have nothing but vacuum in your simulation and the only process is G4Transportation?

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: error in the magnetic field for Bx to control the track along y   (Fada Guan - 25 Oct, 2013)
 Add Message Add Message
to: "Re: error in the magnetic field for Bx to control the track along y"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]