|Message: Re: Optical photons stopping at boundary of scintillator||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)|
Your luck, I also monitor this Forum, but you are more guarantied to get a response to this kind of question on the 'Optical Physics Forum'.
I see that you define two types of surfaces:
OpScintSurface->SetType(dielectric_dielectric); G4LogicalBorderSurface* ScintSurface new G4LogicalBorderSurface("OpScintSurface", scintillator_phys,experimentalHall_phys,OpScintSurface);
Now, I think, this is partly because you wanted to toggle between a dielectric_dielectric surface and a dielectric_metal one. So, the second, should read:
BUT, one of the two definitions needs to be commented out. You cannot have two definitions for essentially the same real surface. You have to decide between one or the other. With both assigned, the logic in G4OpBoundaryProcess gives precedent to the G4LogicalBorderSurface. Now, a dielectric_dielectric, has to have a material on the outside that has an index of refraction - your "Air". You have failed to assign n=1 to the "Air". This is the reason that your photons just stop. Snell's Law cannot be evaluated.
If you'd used the G4LogicalSkinSurface, instead, with the above change, everything should also work, though you'd get only absorption/reflection (no refraction) even if the "Air" has no refractive index because, in that case, none is required for the tracking.
Hope this helps, Peter
|Inline Depth:||Outline Depth:||Add message:|