Message: Re: How to emit particals to different dircetions with the same particalGun? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to emit particals to different dircetions with the same particalGun? 

Forum: Medical Applications
Re: Question How to emit particals to different dircetions with the same particalGun? (fangrui)
Date: 12 Aug, 2006
From: Xiaoning Ding <xiaoningding@yahoo.com>

You might try the method SetParticleMomentumDirection(G4ThreeVector) of G4ParticleGun class to control the shooting particle's direction.

As an example to shoot in x direction,

......
    G4ThreeVector dir(1.0, 0.0, 0.0);
    particlegGun->SetParticleMomentumDirection(dir);
......

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

 Add Message Add Message
to: "Re: How to emit particals to different dircetions with the same particalGun?"

 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 ]