<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi again everyone,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
As it turns out, the ARF only works with the detector in the YZ plane. I was able to get the ARF working for my own application but the functionality is still not clear to me so any information on the following would be greatly appreciated.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ol>
<li>Is the ARF data best generated with a rectangular source? According to "Implementation of angular response function modeling in SPECT simulations with GATE" by Descourt et al., the ARF tables are generated with a rectangular source but no rationale is provided.
<br>
<br>
</li><li>Furthermore, once the ARF is tabulated and computed for a given collimator/detector pair and energy window, the ARF table may be used for any simulation involving the collimator/detector pair. Therefore, can the ARF tables be used in any simulation with
 any source definition? I would assume that the ARF tables should be generated under the same conditions for which they will be used (i.e. identical sources and detector placement in the generation and use of ARF tables) but this doesn't appear to be the case.</li></ol>
<div>Regards,</div>
<div>Matthew<br>
</div>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Gate-users <gate-users-bounces@lists.opengatecollaboration.org> on behalf of Matthew Strugari <matthew.strugari@dal.ca><br>
<b>Sent:</b> November 29, 2019 5:34 PM<br>
<b>To:</b> gate-users@lists.opengatecollaboration.org <gate-users@lists.opengatecollaboration.org><br>
<b>Subject:</b> [Gate-users] ARF fails to produce output</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi everyone,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Do any of you have a working example of the angular response functions from the ARF or SPECT_FFD examples in the GateContrib folders?
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I could also use some clarification on a couple of things. First, the ARF example contains some errors/unclear settings such as the generation of the ARF tables using 364.5 keV photons and then the computation of the ARF tables using a reference energy of 140.
 keV. I assume this is a typo and 364.5 keV should be the reference energy but this discrepancy is present in both the readthedocs and the ARF macro files. Second, the readthedocs doesn't instruct users to set
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ul>
<li>/gate/systems/SPECThead/setProjectionPlane <> <Unit></li></ul>
where <> <Unit> "sets the YZ projection plane relative to the ARF device center". Is this line no longer required and does ARF only work with detectors in the YZ plane? My setup places my detector in the ZX plane and I cannot get any output to be produced.
 In all cases, the analog simulation produces output but the ARF simulation does not. I have attached the terminal output following execution of the SPECT_FFD angularResponseFunctionSPECT.mac simulation. It appears as though the ARF tables are not being loaded
 correctly.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Regards,<br>
</div>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<span style="font-family:Calibri,Helvetica,sans-serif">Matthew</span></p>
<span style="font-family:Calibri,Helvetica,sans-serif"></span>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
</p>
<span style="font-family:Calibri,Helvetica,sans-serif"></span>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<span style="font-size:10.5pt; color:black; font-family:Calibri,Helvetica,sans-serif"><br>
</span></p>
<span style="font-family:Calibri,Helvetica,sans-serif"></span>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<span style="font-size:10.5pt; color:black; font-family:Calibri,Helvetica,sans-serif">--</span></p>
<span style="font-family:Calibri,Helvetica,sans-serif"></span>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<span style="font-size:10.5pt; color:black; font-family:Calibri,Helvetica,sans-serif">Matthew Strugari</span><span style="font-size:10.5pt; color:black"></span></p>
<span style="font-family:Calibri,Helvetica,sans-serif"></span><span style="font-size:10.5pt; color:black" lang="EN-US"><span style="font-family:Calibri,Helvetica,sans-serif">Biomedical Translational Imaging Centre -
</span><span class="x_markcp47xw9my" style="background-color:rgb(255,255,255); color:black; font-family:Calibri,Helvetica,sans-serif">BIOTIC</span><span style="font-family:Calibri,Helvetica,sans-serif">,</span><br>
<span style="font-family:Calibri,Helvetica,sans-serif">5890 University Ave, </span><br>
<span style="font-family:Calibri,Helvetica,sans-serif">Halifax, NS, B3K 6R8</span></span><br>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
</p>
</div>
</div>
</div>
</div>
</body>
</html>