Message: Re: Tracking only one or a few photons? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Tracking only one or a few photons? 

Forum: Processes Involving Optical Photons
Re: Question Tracking only one or a few photons? (JungEun Elena Suh)
Date: 26 May, 2014
From: Gumplinger Peter <Gumplinger Peter>

Dear J.E. Suh,

> Is there any solution that I can see only one or a few photons?

Every secondary generated in the simulation, this includes Cerenkov photons, is first put on a temporary 'stack' before it is actually pushed on the real stack to be propagated. A user-hook G4UserStackingAction:::ClassifyNewTrack is called before the track goes on the real stack. In that method, you can decide to keep or forget about the secondary. Please, see:

http://www-geant4.kek.jp/lxr/source/examples/extended/optical/wls/src/WLSStackingAction.cc#L50

In that method, you can code:

if (G4UniformRand() < keep) return fUrgent; else return fKill;

where 'keep' is the fraction of photons you actually want to see.

Peter

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

1 More: Re: Tracking only one or a few photons?   (Gumplinger Peter - 26 May, 2014)
(_ Ok: Re: Tracking only one or a few photons?   (JungEun Elena Suh - 30 May, 2014)
(_ More: Re: Tracking only one or a few photons?   (JungEun Elena Suh - 30 May, 2014)
 Add Message Add Message
to: "Re: Tracking only one or a few photons?"

 Subscribe Subscribe

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