Message: gamma emission randomly in 4pi Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None gamma emission randomly in 4pi 

Forum: Documentation and Examples
Date: 09 Feb, 2007
From: <habibovich@hotmail.com>

hi everyone
i am a new user of geant4,i just wanted to ask how can i have emmissions randomly in 4 pi

that s what i wrote in my code :

double theta,phi;
theta=G4uniformRand()*180
phi=G4uniformRand()*360
particleGun->SetparticleMomentumDirection(G4threeVector(sin(theta)*cos(phi),sin(theta)*sin(phi),cos(theta)))


is that right ????? something missing ??
thanks in advance

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

 Add Message Add Message
to: "gamma emission randomly in 4pi"

 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 ]