<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);">
After doing a little bit of digging, I found that the GateNoise.cc file sets the position of the noise according to the command:</div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
pulse->SetGlobalPos(system->ComputeObjectCenter(volID));</div>
</blockquote>
<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);">
If anyone has a trivial solution or any suggestions on how to easily correct this to obtain random positions throughout the crystal, it would be greatly appreciated.</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);">
Thank you,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Matthew<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</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> Matthew Strugari<br>
<b>Sent:</b> August 16, 2019 3:13 PM<br>
<b>To:</b> gate-users@lists.opengatecollaboration.org <gate-users@lists.opengatecollaboration.org><br>
<b>Subject:</b> Background noise source</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 all,</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 am interested in modelling background noise in my SPECT images and I have included the lines below in my macro. Is there a way to include a random spatial distribution for the noise? I expected that the background noise would appear randomly throughout the
 crystal but all of the counts associated with background noise are located directly in the center of my crystal.<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)">
<span># N O I S E<br>
</span>
<div>/gate/distributions/name                                  energy_distrib<br>
</div>
<div>/gate/distributions/insert                                  Flat<br>
</div>
<div>/gate/distributions/energy_distrib/setMin         30 keV<br>
</div>
<div>/gate/distributions/energy_distrib/setMax        300 keV<br>
</div>
<div><br>
</div>
<div>/gate/distributions/name                                  dt_distrib<br>
</div>
<div>/gate/distributions/insert                                  Gaussian<br>
</div>
<div>/gate/distributions/dt_distrib/setMean              12.5 ms<br>
</div>
<div>/gate/distributions/dt_distrib/setSigma             1.4 ms<br>
</div>
<div><br>
</div>
<div>/gate/digitizer/Singles/insert                                     noise<br>
</div>
<div>/gate/digitizer/Singles/noise/setEnergyDistribution  energy_distrib<br>
</div>
<span>/gate/digitizer/Singles/noise/setDeltaTDistribution   dt_distrib</span></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)">
Cheers,<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>