<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="en-DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m doing some X-rays simulation, and I found that when a volume is created as a daughter of another volume, with a different geometry than a box, the daughter volume always gets assigned the material of the mother volume, even though I’m
doing the assignment manually. Does somebody know if this is a bug or if I’m doing something wrong in the following macro?<o:p></o:p></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#===============================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#World<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#===============================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/geometry/setXLength 2 m<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/geometry/setYLength 2 m<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/geometry/setZLength 2 m<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/setMaterial Vacuum<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/vis/setColor black<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/vis/setVisible False<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#===============================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#Simple detector<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#===============================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/daughters/name simple_detector<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/daughters/insert box<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/simple_detector/geometry/setXLength 1.4 cm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/simple_detector/geometry/setZLength 0.2 cm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/simple_detector/geometry/setYLength 1.4 cm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/simple_detector/placement/setTranslation 0. 0. 0 cm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/simple_detector/setMaterial CZT<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/simple_detector/vis/setColor blue<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/simple_detector/vis/forceSolid<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#===============================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#main_cylinder<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#===============================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/daughters/name main_cylinder<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/world/daughters/insert cylinder<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/geometry/setRmin 2.75 mm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/geometry/setRmax 3.05 mm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/geometry/setHeight 1.72 cm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/placement/setTranslation 0.3 0. 1 cm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/placement/setRotationAxis 0 1 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/placement/setRotationAngle 90 deg<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/setMaterial HPMC<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/vis/setColor yellow<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/vis/setLineWidth 3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/vis/forceWireframe<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#===============================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#small_box<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">#===============================================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/daughters/name small_box<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/main_cylinder/daughters/insert box<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/geometry/setXLength 1 mm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/geometry/setYLength 1 mm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/geometry/setZLength 2 mm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/placement/setTranslation 0. 0. 0 mm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/setMaterial Glass_Pyrex<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/vis/setColor white<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/vis/forceSolid<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/repeaters/insert linear<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/linear/setRepeatNumber 3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO">/gate/small_box/linear/setRepeatVector -1.1 0. 0 mm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal"><span lang="en-DE" style="color:#444444;background:white;mso-fareast-language:#2000">Juan Sebastian Useche</span><span lang="en-DE" style="color:#444444;mso-fareast-language:#2000"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white">
<span lang="en-DE" style="color:gray;background:white;mso-fareast-language:#2000">Albert-Ludwigs-Universität Freiburg</span><span lang="en-DE" style="color:gray;mso-fareast-language:#2000"><br>
<span style="background:white">Freiburger Materialforschungszentrum (FMF)</span><br>
<span style="background:white">Stefan-Meier-Str. 21</span><br>
<span style="background:white">79104 Freiburg</span><br>
<span style="background:white">Germany</span><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES-CO"><o:p> </o:p></span></p>
</div>
</body>
</html>