<div dir="ltr">Hello, <div><br></div><div>(please, keep posting on the mailing list)<br><div><br></div><div>currently it is not possible to score dose in other types of volume (sphere or cylinder), sorry. </div><div><br></div><div>One (a bit tedious) workaround is to attach a DoseActor to (say) a sphere, such as the DoseActor has one unique voxel **larger** than the sphere. All depositing energy hits inside the sphere will be accumulated in the doseactor. However, only the total edep will be correct, not the dose in Gy because the mass will be the one of the cubic voxel not the one of the sphere. It is then easy to compute the final dose according to the mass of the sphere. </div></div><div><br></div><div>Cheers, </div><div>David</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 20, 2022 at 10:07 AM MohammadAli Moeini <<a href="mailto:ali92.moeini@gmail.com">ali92.moeini@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px"><font color="#222222"><font face="Times New Roman, serif"><font style="font-size:14pt">Hi Dear <font color="#000000">David</font></font></font></font></p><p style="background:transparent;margin-bottom:0in;line-height:17.8px"><font style="font-size:14pt"><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">I am an MSc student in medical radiation. I have some problems calculating the dose and energy deposited in a volume that </font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">its</font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman"> shape is not a box </font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">in the GATE code</font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">. As I noticed Dose Actor calculates dose and energy deposited </font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">only </font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">in a </font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">cubic region</font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">. But the problem is that I want to attach the Dose Actor to a volume like a sphere, cylinder, </font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">or other shapes</font></font></span><span style="font-variant-numeric:normal;font-variant-east-asian:normal"><font color="#000000"><font face="Times New Roman">. </font></font></span></font><font color="#000000" style="font-size:14pt;background-color:transparent"><font face="Times New Roman">So </font></font><font color="#000000" style="font-size:14pt;background-color:transparent"><font face="Times New Roman">could you please guide me that</font></font><font color="#000000" style="font-size:14pt;background-color:transparent"><font face="Times New Roman"> </font></font><font color="#000000" style="font-size:14pt;background-color:transparent"><font face="Times New Roman">w</font></font><font color="#000000" style="font-size:14pt;background-color:transparent"><font face="Times New Roman">hat should I do?</font></font></p><p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px"><font color="#222222"><font face="Arial, Helvetica, sans-serif"><font style="font-size:14pt"><font color="#000000"><font face="Times New Roman">F</font></font><font color="#000000"><font face="Times New Roman">or example, I want to calculate the dose and energy deposited in a cylinder with this geometry, but the output of the Dose Actor is not correct.</font></font></font></font></font></p><p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px"><span style="font-size:14pt;font-family:"Times New Roman",serif;background-color:transparent;color:rgb(0,0,0);white-space:pre-wrap">Thank you in advance for your time</span></p><pre style="white-space:pre-wrap;color:rgb(0,0,0)"></pre><p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px"><br></p><p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px"></p><p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px"><font color="#222222"><font face="Times New Roman, serif"><font style="font-size:14pt">#Phantom</font></font></font></p><p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px">
</p><pre style="margin-bottom:0.2in;font-variant-numeric:normal;font-variant-east-asian:normal;font-family:"Liberation Mono",monospace;font-size:10pt;background:transparent"><font face="Times New Roman, serif"><font style="font-size:14pt"><font color="#222222"><font face="Times New Roman, serif">/gate/world/daughters/name phantom</font></font><font color="#000000"><font face="Times New Roman, serif">
</font></font><font color="#222222"><font face="Times New Roman, serif">/gate/world/daughters/insert box</font></font><font color="#000000"><font face="Times New Roman, serif">
</font></font><font color="#222222"><font face="Times New Roman, serif">/gate/phantom/geometry/setXLength 0.3 m</font></font><font color="#000000"><font face="Times New Roman, serif">
</font></font><font color="#222222"><font face="Times New Roman, serif">/gate/phantom/geometry/setYLength 0.3 m</font></font><font color="#000000"><font face="Times New Roman, serif">
</font></font><font color="#222222"><font face="Times New Roman, serif">/gate/phantom/geometry/setZLength 0.3 m</font></font><font color="#000000"><font face="Times New Roman, serif">
</font></font><font color="#222222"><font face="Times New Roman, serif">/gate/phantom/setMaterial Water</font></font><font color="#000000"><font face="Times New Roman, serif">
</font></font><font color="#222222"><font face="Times New Roman, serif">/gate/phantom/vis/setColor gray</font></font><font color="#000000"><font face="Times New Roman, serif">
</font></font><font color="#222222"><font face="Times New Roman, serif">/gate/phantom/vis/forceWireframe</font></font><font color="#000000"><font face="Times New Roman, serif">
</font></font><font color="#222222"><font face="Times New Roman, serif">/gate/phantom/vis/setVisible 1</font></font><font color="#000000"><font face="Times New Roman, serif">
</font></font><font color="#222222"><font face="Times New Roman, serif">/gate/geometry/rebuild</font></font></font></font></pre><pre style="white-space:pre-wrap;font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;font-family:"Liberation Mono",monospace;font-size:10pt"><font color="#000000"><font face="Arial, Helvetica, sans-serif"><font style="font-size:14pt"><font face="Times New Roman">#</font></font></font></font><font color="#222222" style="font-size:14pt;font-family:"Times New Roman";background-color:transparent"><font face="Times New Roman, serif">C</font></font><font color="#222222" style="font-size:14pt;font-family:"Times New Roman";background-color:transparent"><font face="Times New Roman, serif">ylinder</font></font></pre>
<p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px">
</p><pre style="margin-bottom:0.2in;font-variant-numeric:normal;font-variant-east-asian:normal;font-family:"Liberation Mono",monospace;font-size:10pt;background:transparent"><font face="Times New Roman, serif"><font style="font-size:14pt">/gate/phantom/daughters/name Ring_0.5cm
/gate/phantom/daughters/
/gate/Ring_0.5cm/geometry/<font color="#222222">setRmin</font> 0.5 cm
/gate/Ring_0.5cm/geometry/<font color="#222222">setRmax</font> 0.6 cm
/gate/Ring_0.5cm/setMaterial Water
/gate/<font color="#222222">Ring_0</font>.<font color="#222222">5cm</font>/geometry/<font color="#222222">setHeight</font> 0.1 cm
/gate/<font color="#222222">Ring_0</font>.<font color="#222222">5cm</font>/geometry/<font color="#222222">setPhiStart</font> 0 deg
/gate/<font color="#222222">Ring_0</font>.<font color="#222222">5cm</font>/geometry/<font color="#222222">setDeltaPhi</font> 360 deg
/gate/Ring_0.5cm/vis/setColor yellow
/gate/Ring_0.5cm/vis/
/gate/Ring_0.5cm/vis/
/gate/geometry/rebuild</font></font></pre><p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px"><br></p><pre style="white-space:pre-wrap;font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;font-family:"Liberation Mono",monospace;font-size:10pt"><font color="#000000"><font face="Arial, Helvetica, sans-serif"><font style="font-size:14pt"><font face="Times New Roman">#DOSE ACTOR</font></font></font></font></pre><p style="font-variant-numeric:normal;font-variant-east-asian:normal;background:transparent;margin-bottom:0in;line-height:17.8px"></p><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">/gate/actor/addActor DoseActor ring_0.5</span><br><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">/gate/actor/ring_0.5/save output/ring_0.5cm.txt</span><br><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">/gate/actor/ring_0.5/attachTo Ring_0.5cm</span><br><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">/gate/actor/ring_0.5/</span><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">stepHitType random</span><br><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">/gate/actor/ring_0.5/</span>enableEdep<span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt"> true</span><br><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">/gate/actor/ring_0.5/</span>enableUncertaintyEdep<span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt"> true</span><br><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">/gate/actor/ring_0.5/</span><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">enableDose true</span><br><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">/gate/actor/ring_0.5/</span><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">enableUncertaintyDose true</span><br><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">/gate/actor/ring_0.5/</span><span style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:14pt">enableNumberOfHits true</span><br><p></p><br></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="color:rgb(0,0,0)">David Sarrut, Phd</span><br></div><div><font color="#000000">Directeur de recherche CNRS</font></div><div><font color="#000000">CREATIS, UMR CNRS 5220, Inserm U1294</font></div><div><font color="#000000">Centre de lutte contre le cancer Léon Bérard</font></div><div><font color="#000000">28 rue Laënnec, 69373 Lyon cedex 08</font></div><div><font color="#000000">Tel : 04 78 78 51 51 / 06 74 72 05 42</font></div><div><font color="#000000"><a href="http://dsarrut.github.io" target="_blank">http://dsarrut.github.io</a></font></div><div><font color="#000000">_________________________________</font></div><div><font color="#000000"> "2 + 2 = 5, for extremely large values of 2"</font></div><div><font color="#000000">_________________________________</font></div></div></div>