<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;}
@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:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Tahoma",sans-serif;
color:#200498;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498">Hello Meriem,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498">Sorry for the delay I lost my script somewhere. Here is how I calculated the statistical uncertainty, you can adapt it to read multiple files on the cluster, you
have to put your number of primary emitted particles:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% This program calculates the statistical uncertainty for Monte Carlo</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% simulations and plot the DVH for the dose and statistical uncertainties.</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600"></span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% Mahdjoub Hamdi, P.h.D.</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% Washington University in Saint Louis.</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600"></span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">N=180000000;
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% Number of primary photons</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600"></span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">d1=analyze75read(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'000000_main-Dose.hdr'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% Read the dose matrix</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">u1=analyze75read(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'000000_main-Dose-Squared.hdr'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% Read the uncertainty matrix</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600"></span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600"> </span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">sdk1 = sqrt(1/(N-1).*(((u1)./N)-((d1/N).^2)));
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% equation 2 Chetty et al
</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600"> </span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">d2=analyze75read(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'000090_main-Dose.hdr'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">u2=analyze75read(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'000090_main-Dose-Squared.hdr'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">sdk2 = sqrt(1/(N-1).*(((u2)./N)-((d2/N).^2)));
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% equation 2 Chetty et al
</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600"> </span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">d3=analyze75read(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'000315_main-Dose.hdr'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">u3=analyze75read(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#A020F0">'000315_main-Dose-Squared.hdr'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">sdk3 = sqrt(1/(N-1).*(((u3)./N)-((d3/N).^2)));
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#666600">% equation 2 Chetty et al</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"></span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">sdk=sqrt((1/3.*sdk1)+(1/3.*sdk2)+(1/3.*sdk3));
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#666600"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:#666600"> </span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">d = d1+d2+d3;</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">err=100*(sdk./d); % statistical uncertainty</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498">Good luck,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498">Mahdjoub<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Tahoma",sans-serif;color:#200498"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> meryem fiak <fiakmeryem.13@gmail.com>
<br>
<b>Sent:</b> Wednesday, August 28, 2019 9:21 AM<br>
<b>To:</b> mahdjoub.hamdi@hotmail.fr<br>
<b>Subject:</b> Dose Uncertainty<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Bonjour,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Je suis doctorante en physique nucléaire, mon travail porte sur la simulation des linac en radiothérapie à l'aide du code MC GATE. J'ai calculé les fontions dosimétriques du linac opérant à 18 MeV (PDD et Profiles) en laçant plusieurs jobs
et je les merge vers la fin. (Output: Root)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Je rencontre un problème au niveau du calcul de l'incertitude statistique sur la dose. Je voudrais savoir qu'est ce que dois je faire afin d'obtenir l'incertitude sur la totalité des jobs. A titre d'exemple, j'ai lancé 1.4E11 particules
primaires réparties sur 140 jobs. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">J'ai consulté pas mal d'articles qui recommendent en cas de calcul en parallèl de calculer l'incertitude statistique relative pour chaque job d'une manière retrospective à partir de la formule proposé par [chetty,2006], chose que j'ai pas
su comment l'appliquer.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Je vous saurais gré de bien vouloir m'apporter de l'aide dans ce sens.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Cordialement.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt">Ms</span></b><span style="font-size:9.5pt">.<b><i><span style="color:#38761D">FIAK Meriem</span></i></b><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">-------------------------------------------------------------------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt">Job Title: <i><span style="color:#38761D">Phd Student</span></i><span style="color:#38761D"> </span></span></b><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">--------------------------------------------------------------------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt;color:#0B5394">Hassan II University of Casablanca</span></b><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt;color:#0B5394">Faculty of sciences Ben M'sik</span></b><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt;color:#0B5394">Department of physics</span></b><span style="font-size:9.5pt;color:#0B5394"> </span><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#6FA8DC">Laboratory of the Physics of Condensed Matter
<i>(LPMC)</i></span><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;color:#6FA8DC">Team of Subatomic and Applications Research
<i>(ERSA)</i></span><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">---------------------------------------------------------------------<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.5pt;color:black">E-mail: </span>
</b><b><u><span style="font-size:9.5pt;color:#38761D;background:#F3F3F3"><a href="mailto:fiakmeryem.13@gmail.com" target="_blank">fiakmeryem.13@gmail.com</a></span></u></b><span style="font-size:9.5pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>