|Message: Killing Photons||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Hello, I'm a new GEANT user and I'm trying to do a very simple simulation of optical photons on a scintillating fiber. To do this, I create optical photons isotropically at the center of a single-clad fiber using G4ParticleGun.
What I found is that somewhere between the 20th and 30th photon in a run of 100, I hit a "sweet-spot" momentum direction where my photon bounces around inside the fiber and never leaves (thus the program continues to calculate millions of steps for a single photon and, as far as I can tell, will never stop).
I'd like to kill a photon like this (say, after a certain number of steps) so my program can move on and calculate the next photon trajectory. Any ideas on the simplest way to do this?
I've tried G4UserLimits and G4UserSpecialCuts in DetectorConstruction and PhysicsList, respectively, as an example I found seemed to describe. However, this compiles successfully and then can't run (I get errors telling me I need to construct electrons!), so if you suggest these methods please be very specific about what I need.
I've also tried to set an absorption length in the fiber material, but when I do this the application ignores the boundary process/refractive indexes I've set and just shoots photons straight through my material.
Any insight is certainly appreciated.
|Inline Depth:||Outline Depth:||Add message:|