Message: Re: Why does defining a primitive scorer change optical physics processes? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Why does defining a primitive scorer change optical physics processes? 

Forum: Processes Involving Optical Photons
Re: Question Why does defining a primitive scorer change optical physics processes? (matthew)
Date: 12 Mar, 2015
From: Gumplinger Peter <Gumplinger Peter>

Hi Matt,

> Any ideas on what is causing this?

No, I don't know much about scorers - but thank you - we'll investigate.

> If I can't use a primitive scorer,
> how could record the number of photons escaping from the end of the
> fiber? Create a new volume and make it a sensitive detector?

Please, see the example examples/extended/optical/wls

The simplest way is for you to define two volumes that are smack at the end of your fiber (with the same material as would otherwise be there) and count the optical photons that enter those volumes (and then kill them). You do that in SteppingAction. The safest way is to ask for a PreStepPoint in one of the volumes and the step-length to be > kCarTolerance.

Since G4 10.0 you can also define a dielectric_metal surface with 100% detection efficiency between the fiber and those volumes and define those volumes as SD.

Peter

 Add Message Add Message
to: "Re: Why does defining a primitive scorer change optical physics processes?"

 Subscribe Subscribe

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