|Message: Hole in a conical section||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)|
in my Geant4 simulation I have a shielding in the shape of a conical section, where I need to open a hole so that the detector passes trough it (staying half outside, half inside the conical section).
I think that the easiest way to do that is to define a second conical section as a small part of the first conical section, and subtract it from it.
So, if my mother conical section is: G4Cons("coneA",Rmin1A,Rmin1A+thickness,Rmin2A,Rmin2A+thickness,zA,phiA,DphiA)
I can define the small section (a kind of square window of side zB) as G4Cons("coneB",Rmin1B,Rmin1B+thickness,Rmin2B,Rmin2B+thickness,zB,phiB,DphiB)
And finally I make the subtraction using G4SubtractionSolid *sub = new G4SubtractionSolid("sub", coneA, coneB);
Now, when I visualize the result, I see that the "edges" of the voxels that define both volumes are not exactly at the same place (I checked that by inserting in the hole a volume equal to coneB). Is this only a visualization problem? When I put my detector in the hole and fire it with many particles I don't get any segmentation violation, which I think would be the case if I would have volumes superimposed. Nevertheless I would like to be sure that the procedure is in principle correct.
And last question: to be sure that no parts from the coneA are remaining in the window region, I was thinking on defining a larger thickness for coneB. Is it possible to subtract a volume from a mother volume, where the subtracted part is larger in some dimensions than the mother? Would that bring any problems when installing my detector in the produced hole?
Thanks for your attention, Estela.
|Inline Depth:||Outline Depth:||Add message:|