<div dir="ltr"><div>Dear Chunhu,</div><div> </div><div>It happened because the amount of yttrium in the Gate materials in very high. </div><div>for example for 10% yttrium you have to make change as below:</div><div> </div>
<div>LYSO: d=7.105 g/cm3; n=4 ; state=Solid<br> +el: name=Lutetium ; f=0.714609801<br> +el: name=Yttrium ; f=0.040381125<br> +el: name=Silicon; f=0.063520871<br> +el: name=Oxygen; f=0.181488203</div>
<div> </div><div> </div><div>Regards,</div><div>Tahereh</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 9, 2014 at 3:33 AM, <span dir="ltr"><<a href="mailto:gate-users-request@lists.opengatecollaboration.org" target="_blank">gate-users-request@lists.opengatecollaboration.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Gate-users mailing list submissions to<br>
<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gate-users-owner@lists.opengatecollaboration.org">gate-users-owner@lists.opengatecollaboration.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Gate-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Unable to use phase space file from IAEA with Gate 6.2<br>
(Stathis Kamperis)<br>
2. Re: Unable to use phase space file from IAEA with Gate 6.2<br>
(Stathis Kamperis)<br>
3. About the performance comparison between LSO ans LYSO (???)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 8 Mar 2014 22:13:46 +0200<br>
From: Stathis Kamperis <<a href="mailto:ekamperi@gmail.com">ekamperi@gmail.com</a>><br>
To: gate-users <<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
Subject: Re: [Gate-users] Unable to use phase space file from IAEA<br>
with Gate 6.2<br>
Message-ID:<br>
<CACYCkUtbj8p9gE72CC2No7B0n03wXrF=3q9BaQ=<a href="mailto:edMbEfKae1Q@mail.gmail.com">edMbEfKae1Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
I'm not sure why Gate can't parse the phase space file. I tried to<br>
extract the information with Mathematica and it seems that the phase<br>
space file is ok (not sure about the header though, especially where<br>
the record contents are declared).<br>
<br>
For example I get only 1,2,3 (gammas, e-, e+) for particles:<br>
<br>
file =<br>
BinaryReadList[<br>
"~/Dropbox/foo",<br>
Join[<br>
Flatten@<br>
{"Byte", PadLeft[{}, 6, ToString@Real32], "Integer32", "Integer32"}],<br>
ByteOrdering -> -1];<br>
<br>
h = HistogramList[file[[All, 1]]]<br>
{{1, 2, 3, 4}, {1543049, 8306, 161}}<br>
<br>
And the ratios seem to be in alignment with what is declared at the header:<br>
<br>
First@Last@h/Total@Last@h // N<br>
0.994543<br>
<br>
125806703/126491813 // N<br>
0.994584<br>
<br>
I've only checked 50 MB worth of data but I doubt that there's a wrong<br>
particle number in the rest (will check though).<br>
<br>
So... has anyone ever successfully used the IAEA phase space files<br>
with Gate 6.2 ?<br>
<br>
Best regards,<br>
Stathis<br>
<br>
<br>
<br>
<br>
On Fri, Mar 7, 2014 at 11:40 PM, Stathis Kamperis <<a href="mailto:ekamperi@gmail.com">ekamperi@gmail.com</a>> wrote:<br>
> Relevant:<br>
><br>
> <a href="http://comments.gmane.org/gmane.comp.science.opengate.user/3115" target="_blank">http://comments.gmane.org/gmane.comp.science.opengate.user/3115</a><br>
><br>
> Best regards,<br>
> Stathis<br>
><br>
> On Fri, Mar 7, 2014 at 11:26 PM, Stathis Kamperis <<a href="mailto:ekamperi@gmail.com">ekamperi@gmail.com</a>> wrote:<br>
>> Greetings everyone,<br>
>><br>
>> I downloaded it from here:<br>
>> <a href="https://www-nds.iaea.org/phsp/photon1/" target="_blank">https://www-nds.iaea.org/phsp/photon1/</a><br>
>><br>
>> ELEKTA_PRECISE_6mv_part1.IAEAphsp and its associated header<br>
>> ELEKTA_PRECISE_6mv_part1.IAEAheader<br>
>><br>
>> When I try to use it from within Gate with:<br>
>><br>
>> /gate/source/addSource mybeam phaseSpace<br>
>> /gate/source/mybeam/addPhaseSpaceFile<br>
>> /home/stathis/Downloads/ELEKTA_PRECISE_6mv_part1.IAEAphsp<br>
>><br>
>> I get the following error:<br>
>> /home/stathis/Downloads/gate_v6.2/source/physics/src/GateSourcePhaseSpace.cc<br>
>> (l.252): Source phase space: particle not available in IAEA phase<br>
>> space format.<br>
>><br>
>> I checked the source code:<br>
>> <a href="http://www.opengatecollaboration.org/lxr/source/6.2.0/source/physics/src/GateSourcePhaseSpace.cc#L231" target="_blank">http://www.opengatecollaboration.org/lxr/source/6.2.0/source/physics/src/GateSourcePhaseSpace.cc#L231</a><br>
>><br>
>> and it appears as if Gate can't recognize some particle type that the<br>
>> header file is including. But,<br>
>> <a href="https://www-nds.iaea.org/phsp/photon1/ELEKTA_PRECISE_6mv_part1.IAEAheader" target="_blank">https://www-nds.iaea.org/phsp/photon1/ELEKTA_PRECISE_6mv_part1.IAEAheader</a><br>
>> has only photons, electrons, positrons that Gate should recognize.<br>
>><br>
>> Any thoughts?<br>
>><br>
>> Best regards,<br>
>> Stathis<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 8 Mar 2014 22:34:36 +0200<br>
From: Stathis Kamperis <<a href="mailto:ekamperi@gmail.com">ekamperi@gmail.com</a>><br>
To: gate-users <<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
Subject: Re: [Gate-users] Unable to use phase space file from IAEA<br>
with Gate 6.2<br>
Message-ID:<br>
<<a href="mailto:CACYCkUuFkakuzc-WGG9%2BfpZsjreKK0oaw7MGgfFbwDZkeiB2HA@mail.gmail.com">CACYCkUuFkakuzc-WGG9+fpZsjreKK0oaw7MGgfFbwDZkeiB2HA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Sat, Mar 8, 2014 at 10:13 PM, Stathis Kamperis <<a href="mailto:ekamperi@gmail.com">ekamperi@gmail.com</a>> wrote:<br>
> I'm not sure why Gate can't parse the phase space file. I tried to<br>
> extract the information with Mathematica and it seems that the phase<br>
> space file is ok (not sure about the header though, especially where<br>
> the record contents are declared).<br>
><br>
> For example I get only 1,2,3 (gammas, e-, e+) for particles:<br>
><br>
> file =<br>
> BinaryReadList[<br>
> "~/Dropbox/foo",<br>
> Join[<br>
> Flatten@<br>
> {"Byte", PadLeft[{}, 6, ToString@Real32], "Integer32", "Integer32"}],<br>
> ByteOrdering -> -1];<br>
><br>
> h = HistogramList[file[[All, 1]]]<br>
> {{1, 2, 3, 4}, {1543049, 8306, 161}}<br>
><br>
> And the ratios seem to be in alignment with what is declared at the header:<br>
><br>
> First@Last@h/Total@Last@h // N<br>
> 0.994543<br>
><br>
> 125806703/126491813 // N<br>
> 0.994584<br>
><br>
> I've only checked 50 MB worth of data but I doubt that there's a wrong<br>
> particle number in the rest (will check though).<br>
><br>
<br>
The whole phase space file is ok. I checked it with the following code snippet:<br>
<br>
[stathis@fedora]~/Downloads% cat read.c<br>
22:32:29<br>
#include <assert.h><br>
#include <stdio.h><br>
<br>
struct rec {<br>
char particle;<br>
char pad[32];<br>
} __attribute__((packed));<br>
<br>
int<br>
main(int argc, char *argv[])<br>
{<br>
FILE *fp;<br>
struct rec r;<br>
int cnt, rv;<br>
<br>
fp = fopen(argv[1], "r");<br>
assert(fp);<br>
<br>
cnt = 0;<br>
do {<br>
++cnt;<br>
<br>
rv = fread(&r, sizeof(struct rec), 1, fp);<br>
assert(rv > 0 || (rv == 0 && feof(fp)));<br>
<br>
if (r.particle != 1 && r.particle != 2 && r.particle != 3) {<br>
printf("Wrong particle = %d at record = %d\n",<br>
r.particle, cnt);<br>
}<br>
} while(!feof(fp) && !ferror(fp));<br>
<br>
fclose(fp);<br>
<br>
return 0;<br>
}<br>
<br>
[stathis@fedora]~/Downloads% gcc -Wall -ansi -pedantic read.c<br>
[stathis@fedora]~/Downloads% ./a.out ELEKTA_PRECISE_6mv_part1.IAEAphsp<br>
[stathis@fedora]~/Downloads%<br>
[stathis@fedora]~/Downloads% echo $?<br>
0<br>
[stathis@fedora]~/Downloads%<br>
<br>
> So... has anyone ever successfully used the IAEA phase space files<br>
> with Gate 6.2 ?<br>
><br>
> Best regards,<br>
> Stathis<br>
><br>
><br>
><br>
><br>
> On Fri, Mar 7, 2014 at 11:40 PM, Stathis Kamperis <<a href="mailto:ekamperi@gmail.com">ekamperi@gmail.com</a>> wrote:<br>
>> Relevant:<br>
>><br>
>> <a href="http://comments.gmane.org/gmane.comp.science.opengate.user/3115" target="_blank">http://comments.gmane.org/gmane.comp.science.opengate.user/3115</a><br>
>><br>
>> Best regards,<br>
>> Stathis<br>
>><br>
>> On Fri, Mar 7, 2014 at 11:26 PM, Stathis Kamperis <<a href="mailto:ekamperi@gmail.com">ekamperi@gmail.com</a>> wrote:<br>
>>> Greetings everyone,<br>
>>><br>
>>> I downloaded it from here:<br>
>>> <a href="https://www-nds.iaea.org/phsp/photon1/" target="_blank">https://www-nds.iaea.org/phsp/photon1/</a><br>
>>><br>
>>> ELEKTA_PRECISE_6mv_part1.IAEAphsp and its associated header<br>
>>> ELEKTA_PRECISE_6mv_part1.IAEAheader<br>
>>><br>
>>> When I try to use it from within Gate with:<br>
>>><br>
>>> /gate/source/addSource mybeam phaseSpace<br>
>>> /gate/source/mybeam/addPhaseSpaceFile<br>
>>> /home/stathis/Downloads/ELEKTA_PRECISE_6mv_part1.IAEAphsp<br>
>>><br>
>>> I get the following error:<br>
>>> /home/stathis/Downloads/gate_v6.2/source/physics/src/GateSourcePhaseSpace.cc<br>
>>> (l.252): Source phase space: particle not available in IAEA phase<br>
>>> space format.<br>
>>><br>
>>> I checked the source code:<br>
>>> <a href="http://www.opengatecollaboration.org/lxr/source/6.2.0/source/physics/src/GateSourcePhaseSpace.cc#L231" target="_blank">http://www.opengatecollaboration.org/lxr/source/6.2.0/source/physics/src/GateSourcePhaseSpace.cc#L231</a><br>
>>><br>
>>> and it appears as if Gate can't recognize some particle type that the<br>
>>> header file is including. But,<br>
>>> <a href="https://www-nds.iaea.org/phsp/photon1/ELEKTA_PRECISE_6mv_part1.IAEAheader" target="_blank">https://www-nds.iaea.org/phsp/photon1/ELEKTA_PRECISE_6mv_part1.IAEAheader</a><br>
>>> has only photons, electrons, positrons that Gate should recognize.<br>
>>><br>
>>> Any thoughts?<br>
>>><br>
>>> Best regards,<br>
>>> Stathis<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sun, 9 Mar 2014 10:07:39 +0800<br>
From: ??? <<a href="mailto:arnoxiaolei86@gmail.com">arnoxiaolei86@gmail.com</a>><br>
To: "<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>"<br>
<<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><br>
Subject: [Gate-users] About the performance comparison between LSO ans<br>
LYSO<br>
Message-ID:<br>
<CAGMGNVN=Rx8YpX=<a href="mailto:Qg5Rq%2ByDbO%2B1YjY0tM47fDDHMYW1bRgVaFA@mail.gmail.com">Qg5Rq+yDbO+1YjY0tM47fDDHMYW1bRgVaFA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello everyone:<br>
I did two experiments using GateV6.2, The conditions of these<br>
two experiments are same with each other except the material of the<br>
crystal (using LSO in first experiment and LYSO in secone one), but<br>
the Coincidences number recorded in the first experiment is treble as<br>
many as that recorded in the second experiment. What a bad performance<br>
of LYSO! Can anyone tell me why? The macros are in the attachment.<br>
Thanks a lot!--Chunhui Zhang<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: PET.zip<br>
Type: application/zip<br>
Size: 113372 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140309/f3829bbd/attachment.zip" target="_blank">http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140309/f3829bbd/attachment.zip</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br>
<br>
End of Gate-users Digest, Vol 94, Issue 15<br>
******************************************<br>
</blockquote></div><br></div>