<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Hi Mohammad Ali,
<div><br>
</div>
<div>“Attaching” the DoseActor to various shapes should be straightforward as outlined in the documentation, and should not yield incorrect results as you suggest. It sounds like you’re after a dose scoring volume that conforms to the shape of the volume you’re
attaching the DoseActor to, i.e., concentric shells for a spherical volume or stacked concentric rings for a cylinder. You can emulate this with the default cubic scoring volume by assessing the dose along the cardinal axes which would closely align with such
concentric scoring volumes.<br>
<br>
Hope this helps.</div>
<div><br>
</div>
<div>Best,<br>
<div dir="ltr">Matthew</div>
<div dir="ltr"><br>
<blockquote type="cite">On May 23, 2022, at 3:27 AM, David Sarrut <david.sarrut@creatis.insa-lyon.fr> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr"><!-- START CAUTION Box Code -->
<table align="center" border="0" cellpadding="0" cellspacing="0" style="padding:10px 0 10px 0" width="100%">
<tbody>
<tr>
<td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
<table align="center" border="0" cellpadding="0" cellspacing="0" style="background:#707372;background-color:#707372;width:100%;border-radius:5px;overflow:hidden;">
<tbody>
<tr>
<td style="border-top:solid 8px #fbe122;padding:4px 8px;text-align:left;vertical-align:top;">
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="left">
<div style="font-family:Arial,sans-serif;font-size:12px;line-height:16px;text-align:left;color:#ffffff;">
<span style="font-weight:bold;font-size:12px;">CAUTION:</span> The Sender of this email is not from within Dalhousie.</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!-- END CAUTION Box Code -->
<div>
<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>
</div>
<span>_______________________________________________</span><br>
<span>Gate-users mailing list</span><br>
<span>Gate-users@lists.opengatecollaboration.org</span><br>
<span>http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</span></div>
</blockquote>
</div>
</body>
</html>