Message: Re: what is the meanning of parameters in the SetParticleMomentumDirection() Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: what is the meanning of parameters in the SetParticleMomentumDirection() 

Keywords: beam direction
Forum: Particles
Re: Question what is the meanning of parameters in the SetParticleMomentumDirection() (Hyunduk.Kim)
Date: 24 Oct, 2006
From: Jeong Han Lee <Jeong Han Lee>

Hi Hyunduk

It would be easier to think that ux, uy, and uz are unit vectors.

SetParticleMomentumDirection (G4ThreeVector(0,0,1)), which means this. Particle will be shot in the z direction. Then,

G4ThreeVector(1,0,1) :> Particle in the x-z plane with 45 degree.

G4ThreeVector(0,1,1) :> Particle in the y-z plane with 45 degree.

To generate a cone beam, you can generate an apex angle randomly, then apply the angle to SetParticleMomentumDirection.

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

1 Question: Re: what is the meanning of parameters in the SetParticleMomentumDirection()   (Dong WANG - 11 Jun, 2014)
 Add Message Add Message
to: "Re: what is the meanning of parameters in the SetParticleMomentumDirection()"

 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 ]