<div dir="ltr"><div><div><div><div><div>Hi Peyman<br><br></div>That is an easy way and correct but some times it make problem as well. I tried before..<br><br></div>Imaging that volume is the jaw of a linac. I have at lease two jaws so their mothers cover each other as well so it cause a problem. when two mother cover each other even if it made by air, particle do not see the daughters and they continuer their path and do not interact with Jaws..... So your method do not work for all condition.<br><br></div>By the way Thanks for your answer.... <br><br></div>Best <br></div>Mery<br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Apr 24, 2018 at 6:40 PM Peyman Ghahramani <<a href="mailto:peymangh2404@yahoo.com">peymangh2404@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto"> Hi Mery,<br><br></div>
<div dir="auto">You can define 2 seperate volume for 2 rotation.<br></div>
<div dir="auto">The first volume material can be Air for first rotation (90 degree around X) and the second volume as daughter of first one for second rotation (6 degree around z) with main material. <br><br></div>
<div dir="auto">WR,<br></div>
<div dir="auto">Peyman</div>
<div class="gmail_quote">On Apr 24, 2018, at 18:15, Mery MB <<a href="mailto:mery.mb.mph@gmail.com" target="_blank">mery.mb.mph@gmail.com</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div><div><div><div><div><div><div>Dear John<br><br></div>NOt at all!!!!!!!!!!!!!!!!!<br><br></div><div>As you told the below lines are setting the minimum and the maximum angle of the cylinder. But I want to rotate this cylinder around two axis with two different angle. At first rotate around x axis for 90 degree and then rotate it around z axis for 6 degree.<br></div>/gate/Jy6-31/geometry/setPhiStart 9 deg<br>/gate/Jy6-31/geometry/setDeltaPhi 360 deg<br><br><br><br></div>I tried to rotation simultaneously but it is not work properly at all!!!! <br></div>I tried the below lines :<br><br>/gate/Jy6-31/placement/setRotationAxis 1 0 0<br>/gate/Jy6-31/placement/setRotationAngle 90.0 deg<br>/gate/Jy6-31/placement/setRotationAxis 0 0 1<br>/gate/Jy6-31/placement/setRotationAngle 6.0 deg<br><br><br></div>or <br><br><br>/gate/ Jy6-31/placement/alignToY<br>/gate/Jy6-31/placement/setRotationAxis 0 0 1<br>/gate/Jy6-31/placement/setRotationAngle 6.0 deg<br><br><br></div>both of them do not work properly!!!!!!!!!!!!!!!!!<br><br></div><div>I will be thankful if someone can help me in this issue.<br></div><div><br></div><div>Best <br></div><div>Mery <br></div><div><div> <br><div><br> <br><div><div><div><br><br></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Apr 24, 2018 at 5:51 PM John Apostolakis <<a href="mailto:John.Apostolakis@cern.ch" target="_blank">John.Apostolakis@cern.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space">
Dear Mery,
<div><br>
</div>
<div>I believe that what you are setting are the minimum and maximum angle of the cylinder. Not a rotation.</div>
<div><br>
</div>
<div>Is this what you wanted ?</div>
<div><br>
<div><span class="m_-6779846877447673864m_-5986403756919962380Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span class="m_-6779846877447673864m_-5986403756919962380Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span class="m_-6779846877447673864m_-5986403756919962380Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span class="m_-6779846877447673864m_-5986403756919962380Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span class="m_-6779846877447673864m_-5986403756919962380Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<span class="m_-6779846877447673864m_-5986403756919962380Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<div>John</div>
<div>
<div><span class="m_-6779846877447673864m_-5986403756919962380Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><span class="m_-6779846877447673864m_-5986403756919962380Apple-style-span" style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px">
<div style="word-wrap:break-word">
<div>===================================================</div>
<div>John Apostolakis, EP Department, CERN</div>
<div>SFT (SoFTware for Experiments) Group</div>
<div><br>
</div>
</div>
</span></span></div>
</div>
</div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
<div>
<blockquote type="cite">
<div>On 24 Apr 2018, at 09:33, Mery MB <<a href="mailto:mery.mb.mph@gmail.com" target="_blank">mery.mb.mph@gmail.com</a>> wrote:</div>
<br class="m_-6779846877447673864m_-5986403756919962380Apple-interchange-newline">
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div><br>
</div>
Dear Gate user<br>
<br>
</div>
I want to rotate a volume in two direction but the result of rotation is not sth thant I want?<br>
</div>
Is there any special point for this issue?<br>
<br>
For example:<br>
I want to rotate this cylinder at first 90 degree in x axis and then 6 degree in z axis?<br>
</div>
<div>How Can I do this rotation?<br>
<br>
</div>
<div>it is really easy in Geant but I can not found its relation in Gate!!!<br>
</div>
<div><br>
# Jawy 6-3 (y2-head)<br>
/gate/Gantry/daughters/name Jy6-31<br>
/gate/Gantry/daughters/insert cylinder<br>
/gate/Jy6-31/geometry/setRmax 50.9 cm<br>
/gate/Jy6-31/geometry/setRmin 43.1 cm<br>
/gate/Jy6-31/geometry/setHeight 142.35 mm<br>
/gate/Jy6-31/geometry/setPhiStart 9 deg<br>
/gate/Jy6-31/geometry/setDeltaPhi 360 deg<br>
/gate/Jy6-31/placement/setTranslation 0 0 -250 mm<br>
/gate/Jy6-31/placement/setRotationAxis 1 0 0<br>
/gate/Jy6-31/placement/setRotationAngle 90.0 deg<br>
<br>
/gate/Jy6-31/setMaterial MLC<br>
/gate/Jy6-31/vis/forceSolid<br>
/gate/Jy6-31/vis/setColor red<br>
<br>
</div>
Best <br>
</div>
Mery<br>
</div>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote></div>
<pre class="m_-6779846877447673864blue"><hr><br>Gate-users mailing list<br><a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br><a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre></blockquote></div></div></blockquote></div>