<br><font size=2 face="sans-serif">hi,</font>
<br>
<br><font size=2 face="sans-serif">Recently I've written another coincidence sorting program from the ASCII output</font>
<br><font size=2 face="sans-serif">of the singles.dat file because I need</font>
<br><font size=2 face="sans-serif">get some other information that GATE coincidence sorter can not provide. </font>
<br><font size=2 face="sans-serif">After I finished the program, I compared the results from my program and the</font>
<br><font size=2 face="sans-serif">results from GATE, then I noticed thare were some differences between them.</font>
<br><font size=2 face="sans-serif">Especially under the high activity condition (large amount of random coincidence).</font>
<br><font size=2 face="sans-serif">For example, with one model, using GATE output of the coincidences are:</font>
<br>
<br><font size=2 face="sans-serif"> Total True Random Scatter NECR</font>
<br><font size=2 face="sans-serif"> 21761 4014 15056 2691 740</font>
<br>
<br><font size=2 face="sans-serif">the output from my program:</font>
<br>
<br><font size=2 face="sans-serif"> Total Ture Random Scatter NECR</font>
<br><font size=2 face="sans-serif"> 22600 4011 15833 2756 712</font>
<br>
<br><font size=2 face="sans-serif">Though the differences of the NECR is only 3%~4%, but still I wanted to find out the causes.</font>
<br>
<br><font size=2 face="sans-serif">After I compared each event that was different in these two outputs and checked the original</font>
<br><font size=2 face="sans-serif">singles data file, I found out in which condition this will happen.</font>
<br>
<br><font size=2 face="sans-serif">Usually there are two kinds of situation:</font>
<br>
<br><font size=2 face="sans-serif">example 1, there are some enevts in the single events list:</font>
<br>
<br><font size=2 face="sans-serif">ID_of_enevt Time_Stamp </font>
<br><font size=2 face="sans-serif">8243 4.42524487908583266e-05</font>
<br><font size=2 face="sans-serif">8249 4.42824325537103663e-05</font>
<br><font size=2 face="sans-serif">8250 4.42823796782774862e-05</font>
<br><font size=2 face="sans-serif">8257 4.43126886297442500e-05</font>
<br>
<br><font size=2 face="sans-serif">in this case, if we set the timewindow as 10 ns, event 8249 and 8250 should be a coincidence,</font>
<br><font size=2 face="sans-serif">but from the GATE output, there's no this coincidence.</font>
<br>
<br><font size=2 face="sans-serif">example 2, for these events:</font>
<br>
<br><font size=2 face="sans-serif">10593 5.66959683503792577e-05 </font>
<br><font size=2 face="sans-serif">10595 5.66958859230306874e-05 </font>
<br><font size=2 face="sans-serif">10595 5.66959047255570771e-05 </font>
<br><font size=2 face="sans-serif">10610 5.67960969563888841e-05 </font>
<br>
<br><font size=2 face="sans-serif">there are three events 10593, 10595 and 10595 in the timewindow, according the sorting criterion,</font>
<br><font size=2 face="sans-serif">if there are more 2 events within the timewindow, all these events should be rejected. However, </font>
<br><font size=2 face="sans-serif">GATE program give a coincidence for 10595 and 10595.</font>
<br>
<br><font size=2 face="sans-serif">So we can see that in both cases, the sequence of the events appears in the singles data file is not</font>
<br><font size=2 face="sans-serif">exactly according to the time that the events was detected (time_stamp). Sometimes, a single event with</font>
<br><font size=2 face="sans-serif">a larger time_stamp (later one) can be in front of another event with a smaller time_stamp</font>
<br><font size=2 face="sans-serif">(early one). It seems that when this happans, the GATE sorting program just ignores the first</font>
<br><font size=2 face="sans-serif">events. </font>
<br>
<br><font size=2 face="sans-serif">Hope this bug can be fixed in the next generation of GATE. And then GATE will provide more accurate results.</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Yuxuan</font>
<br>