Message: Re: Generated electron is not affected by static magnetic field? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Generated electron is not affected by static magnetic field? 

Forum: Fields: Magnetic and Otherwise
Re: Question Generated electron is not affected by static magnetic field? (Kayo Matsuura)
Re: Idea Re: Generated electron is not affected by static magnetic field? (Michael H. Kelsey)
Date: 29 Oct, 2014
From: Kayo Matsuura <Kayo Matsuura>

Hello Michael,


Thanks for your quick response.

> You may turn on "rich trajectories" in visualization. This will add
> additional intermediate points, so that the true curved trajectory is
> drawn for you.
I used command "/vis/scene/add/trajectories/smooth rich" and turned on "rich trajectories" in visualization.
But electron's trajectory remain straight.

 
> The tracking in G4 does take the magnetic field into account, and finds
> correct interaction points,
I set Magnetic Field with -3.0*mm <= Z <= 3.0*mm, the direction is Y+.
When electron is set bellow
fParticleGun->SetParticlePosition(0.0,0.0,3.0*mm); <- in the field 
fParticleGun->SetParticleMomentumDirection(G4Threevector(0.0,0.0,-1.0));
It interacts with the field and trajectory is drawn curve.
But when set bellow
fParticleGun->SetParticlePosition(0.0,0.0,40.0*mm); <- out of the field 
fParticleGun->SetParticleMomentumDirection(G4Threevector(0.0,0.0,-1.0));
It passes the field without interacting and go straight as no magnetic field.

Why dose the difference occur?

Best Regards,
 Kayo Matsuura

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

1 None: Re: Generated electron is not affected by static magnetic field?   (Tom Roberts - 29 Oct, 2014)
1 Ok: Re: Generated electron is not affected by static magnetic field?   (Kayo Matsuura - 04 Nov, 2014)
2 None: Re: Generated electron is not affected by static magnetic field?   (John Apostolakis - 04 Nov, 2014)
 Add Message Add Message
to: "Re: Generated electron is not affected by static magnetic field?"

 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 ]