Message: Re: scattering angle of optical photons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: scattering angle of optical photons  

Forum: Processes Involving Optical Photons
Re: Question scattering angle of optical photons (Lilia Drakopoulou)
Date: 12 Dec, 2011
From: Gumplinger Peter <Gumplinger Peter>

Hi Lilia,

> As I have only 1 optical photon generated in the detector, program doesn't
> recognize it.

I don't understand what you are saying here. I suggest you turn on:

/tracking/verbose 4

What you'll probably see is that the photon travels in one single step across your detector (or your entire geometry, depending whether your detector spans your entire simulation 'world').

> I can't use GetCurrentStepNumber method as it only counts 0 step.

It probably does so because the photon track is not bounded by anything but geometry and in its first step it crosses your geometry.

> I am trying to count the scattering angle of optical photons.

The probability of RayleighScattering is probably so low that your first photon is not simulated to have scattered. It will take probably many photons before the first one is sampled to have scattered before it exits your geometry.

I suggest you turn on all of the processes verbose levels as in:

http://www-geant4.kek.jp/lxr/source/examples/novice/N06/src/ExN06PhysicsList.cc#L306

> I am trying to count the scattering angle of optical photons.

What you need to do is write code in your SteppingAction that determines whether a step was limited by RayleighScattering - and count. If you want to know the scattering angle, you can calculate it by accessing the polarization, as in:

http://www-geant4.kek.jp/lxr/source/tracking/src/G4SteppingVerbose.cc#L631

before and after this step.

Hope this helps, Peter

 Add Message Add Message
to: "Re: scattering angle of optical photons "

 Subscribe Subscribe

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