|Message: Re: more photons counted than generated||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)|
You need to change your code to read:
A step is not actually "in" a volume until the PreStepPoint shows it to be in the volume. With:
you get every photon 'arriving' at the volume boundary. Now, for most particles this also means that they will most likely then enter "DummyDet" but NOT so for optical photons. The reason is optical photon can be reflected at the boundary. This reflection is actually a little complicated for the G4Navigator because it involves a sudden complete change of direction with the direction 'suddenly' pointing in the opposite direction relative to the surface normal. The G4Navigator handles this by doing a very small 'reallocation step'. The step size for this extra step is small.
You should be conservative and besides changing the if-statement as above, you should also request that the step has:
Please, see also:
Besides photons being refracted out of the scintillator you were also counting photons that reflected on your scintillator/vacuum interface.
|Inline Depth:||Outline Depth:||Add message:|