<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Dear Luc,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">I had the same problem and finally, we decided to create a C++ code to convert IAEA files to .root files.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Z value is read by Gate (not in the header, but in the phsp file) and your particles will be at Z = 24 if you attach your
PSF to this volume. You have to take this distance into account in your simulations.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy">Best regards,
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal" style="text-indent:35.4pt"><b><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;
font-weight:bold">Sylvain Reuzé
</span></font></b><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="text-indent:35.4pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Stagiaire physicien</span></font><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:35.4pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Département de Radiothérapie</span></font><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:35.4pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Service de physique médicale</span></font><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:35.4pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-left:35.4pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Tél. : 01 42 11 54 06</span></font><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:35.4pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><a href="http://www.gustaveroussy.fr">www.gustaveroussy.fr</a></span></font><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-left:35.4pt"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><img border="0" width="300" height="155" id="_x0000_i1026" src="cid:image001.gif@01D088A4.DFDE3440" align="baseline"></span></font><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><o:p></o:p></span></font></p>
</div>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;
font-family:Tahoma;font-weight:bold">De :</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> gate-users-bounces@lists.opengatecollaboration.org
[mailto:gate-users-bounces@lists.opengatecollaboration.org] <b><span style="font-weight:bold">De la part de</span></b> Luc SIMON<br>
<b><span style="font-weight:bold">Envoyé :</span></b> mercredi 6 mai 2015 23:24<br>
<b><span style="font-weight:bold">À :</span></b> gate-users@lists.opengatecollaboration.org<br>
<b><span style="font-weight:bold">Objet :</span></b> [Gate-users] Read a .IAEAphsp file : bug report ?</span></font><o:p></o:p></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Dear Gaters<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">A bug report and a small question<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
I use Gate 7.1 for Radiotherapy<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"> I try to read a .IAEAphsp to use it as a source (TrueBeam) and it doesn't work. I found an old email on this topic on GATE users list from Stathis but it didn't help
me.<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
I finally fixed this problem and would like to share my solution (that is maybe not a robust one but it works for me)<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">For a reason I don't understand, in GateIAEARecord.cc when Gate starts to read particles :<br>
<br>
<i><span style="font-style:italic">if( fread(&ctmp, sizeof(char), 1, p_file) != 1)</span></i><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
the p_file pointer was not at the begining of the IAEAphsp file (but at byte 37).
<o:p></o:p></span></font></p>
<div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">I added the following:<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">// set the pointer at the beginning of the file<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><i><font size="3" face="Times New Roman"><span style="font-size:12.0pt;font-style:italic">fseek(p_file,0,SEEK_SET);</span></font></i><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
just before the fread line and now it works!<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">I don't know if it is a bug or a newbee error... but maybe it could help someone<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Now a small question:<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">My phase space doesn't contains Z coordinates. It is a planar phase space and the z value is constant and stored in the .IAEAheader file:<br>
$RECORD_CONSTANT:<br>
24.0 // Constant Z<br>
1.0000 // Constant Weight<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">My question is: Is this z value in the header read and used by gate (I suppose no)<br>
<br>
And if "yes" where should I attach this phase space ?<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
I mean if I create a box named PhS_Plane at Z = 0<br>
<br>
and use:<br>
/gate/source/MyBeam/attachTo PhS_Plane<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">what is the Z value : 0 or 24 ?<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Thank you for any help.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">Luc SIMON<o:p></o:p></span></font></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><br clear="all">
<o:p></o:p></span></font></p>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><br>
-- <o:p></o:p></span></font></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">___________________<br>
<br>
SIMON Luc, Physicien Médical, PhD<br>
Département d'Ingénierie et de Physique Médicale - IUCT-Oncopole - Toulouse, FRANCE<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">INSERM UMR 1037 (CRCT) - Equipe 15 - Toulouse, FRANCE<o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>