|Message: Re: general questions regarding G4LogicalBorderSurface||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)|
Aaron, sorry for the long delay in replying to your posting. You were unlucky in sending it on the day I went on an extended vacation.
> 1) I am trying to simulate a scintillator box with 4 sides surrounded
> by one medium and the remaining two sides surrounded by a different
> one. Is G4LogicalBorderSurface the right class to use (as opposed
> to G4LogicalSkinSurface or some other class)?
YES, G4LogicalBorderSurface is the class you want. G4LogicalSkinSurface assumes all sides of a solid have one and the same 'skin'.
> Using this class, is it possible to take into account the different
> media on each side of the box by specifying the two volumes on either
> side of each surface?
> I have heard people say that GEANT4 can currently only handle the same
> optical properties on all sides of a volume.
> Does this refer to G4LogicalSkinSurface and not
Yes, refers only to the special case of 'SkinSurface'.
> Is there an order to the two volumes that the constructor takes?
> I do not understand why there should be, but some of the
> documentation that I read makes me think that there is.
Yes, I kind of agree with you. However, I felt that making the order relevant I can be more general for the eventual cases where the optical properties may have to be defined differently depending on which direction the optical photon arrives at the surface.
If, in your simulation, it is possible for photons to arrive at a G4LogicalBorderSurface from both directions you need to specify (probably identical) two G4LogicalBorderSurfaces.
As a reminder, if your surface is between two dielectric media, perfectly smooth and doesn't require a G4OpticalSurface to describe it, you don't need to define any kind of G4LogicalSurface. The refraction indexes are simply taken from the media on each side of the volume boundary.
In any case, you need to build your geometry in such a way that your scintillator box is embedded in a mother volume with medium1 for the four sides and bud up against two daughters (of that same mother) with medium2 at the two other sides.
|Inline Depth:||Outline Depth:||Add message:|