Message: magnetic field in example N04 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question magnetic field in example N04 

Forum: Fields: Magnetic and Otherwise
Date: 08 Mar, 2013
From: W.J. Llope <W.J. Llope>

Hi - I am having trouble with N04 - charged particle trajectories do not curve as a result of the magnetic field.

The only changes i made were to comment out the calorimeter, and to change to particle gun event generation, where I throw 0.3 GeV mu+. the default field is 3 Tesla, so these tracks should loop, but they are quite straight, except for some small wiggles due to multiple scattering.

I put a cout in ExN04Field::GetFieldValue, and i see that this routine is being called as the particles are being tracked.

If i change the particle i'm throwing to a chargedgeantino, the tracks loop in the field as expected.

Any suggestions?
      bill

p.s. geant4 version 9.6, OSX 10.7.5

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

1 None: Re: magnetic field in example N04   (Marc Verderi - 08 Mar, 2013)
(_ Ok: Re: magnetic field in example N04   (W.J. Llope - 08 Mar, 2013)
 Add Message Add Message
to: "magnetic field in example N04"

 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 ]