Message: Re: Optical photon particle gun Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Optical photon particle gun 

Forum: Processes Involving Optical Photons
Re: Question Optical photon particle gun (Steve Asztalos)
Date: 13 Jun, 2012
From: Gumplinger Peter <Gumplinger Peter>

Hi Steve,

> Can I generate optical photons isotropically as I have with other
> particle guns?

Yes, you can define an optical photon to be the particle of the G4ParticleGun, or the GeneralParticleGun.

> Must I explicitly randomize the polarization vector as well? Are there any

> nuances to watch out for?

Again, yes you must give every optical photon a polarization. This is exhibited in the novice example N06. To randomize you can recycle the code in SetOptPhotonPolar():


 Add Message Add Message
to: "Re: Optical photon particle gun"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews