Message: Does the momentum direction influence the energy of the optical photon? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Does the momentum direction influence the energy of the optical photon? 

Keywords: optical photon warning random numbers
Forum: Processes Involving Optical Photons
Date: 03 Jan, 2008
From: Aivaras <aivaras.zukauskas@gmail.com>

Hi all,

In my simulation I have optical photons with energy of 2.92 eV. 
When I use:
particleGun->SetParticleEnergy(2.92*eV), and then
particleGun->SetParticleMomentumDirection(G4ThreeVector(x,y,z))
with, for example, x=0, y=0, z=1, everything goes fine, but when I change
x, y, z into the random numbers, I get:

Warning: G4MaterialPropertyVector::GetProperty
==> attempt to Retrieve Property above range

Can anyone explain me, why I get this message when random numbers
are introduced? Does it change the energy of the optical photon?
Is there a range of allowed/forbidden energies? If yes, how can I control 
it?

Thanks,
Aivaras

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

1 Feedback: Re: Does the momentum direction influence the energy of the optical photon?   (Peter Gumplinger - 03 Jan, 2008)
 Add Message Add Message
to: "Does the momentum direction influence the energy of the optical photon?"

 Subscribe Subscribe

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