<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>RE: [Gate-users] Some news about the strange behaviour</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Thank Simon for thorough investigation.<BR>
However, it seems that the thing does not become clearer but even more confusing. See below.<BR>
<BR>
Simon Stute wrote:<BR>
> Hi all,<BR>
><BR>
> I dug more to find the reason of the strange behaviour in energy spectra<BR>
> and found those results :<BR>
><BR>
> - I first installed Gate3.0.0, 3.1.0, 3.1.1 and 3.1.2 on both 32 and 64<BR>
> bits architectures,and both cluster and single PC.<BR>
> - I ran PET and SPECT benchmark on all configurations and compared both<BR>
> energy spectra and results from benchmark.C with root : everything was<BR>
> identical between all different config.<BR>
<BR>
1, It suggests that either no significant difference between GATE versions or<BR>
benchmark configuration is not able to reveal any difference.<BR>
<BR>
> - Then I ran the single_layer.mac simulation on all config and obtained<BR>
> the same difference in energy spectra as Irene and Jasmine reported.<BR>
<BR>
2, different behaviors come from different comfigurations.<BR>
I found that major differences between benchmarkPET.mac and single_layer.mac are:<BR>
<BR>
1) physics list,<BR>
benchmarkPET:<BR>
<BR>
# EM P R O C E S S<BR>
/gate/physics/gamma/selectRayleigh lowenergy<BR>
/gate/physics/gamma/selectPhotoelectric standard<BR>
/gate/physics/gamma/selectCompton standard<BR>
<BR>
# I N A C T I V E S E C O N D A R Y E L E C T R O N S<BR>
/gate/physics/setElectronCut 30. cm<BR>
<BR>
# I N A C T I V E X - R A Y S<BR>
/gate/physics/setXRayCut 1. GeV<BR>
/gate/physics/setDeltaRayCut 1. GeV<BR>
<BR>
/gate/physics/verbose 2<BR>
<BR>
single_layer:<BR>
<BR>
/gate/physics/gamma/selectPhotoelectric standard<BR>
/gate/physics/gamma/selectCompton standard<BR>
/gate/physics/gamma/selectRayleigh inactive<BR>
<BR>
# High cuts for fast simulation<BR>
<BR>
/gate/physics/setElectronCut 3. m<BR>
/gate/physics/setXRayCut 1. GeV<BR>
/gate/physics/setDeltaRayCut 1. GeV<BR>
<BR>
/gate/physics/verbose 0<BR>
<BR>
2), setDepth 1 for benchmarkPET and 5 for single_layer.<BR>
<BR>
> Then I found that the change in energy spectra occurs between Gate3.0.0<BR>
> and 3.1.0. Results from 3.1.0, 3.1.1 and 3.1.2 were the same. (see<BR>
> attached images)<BR>
> - I realised then that between Gate3.0.0 and 3.1.0, the associated<BR>
> Geant4 versions are 8.0.p01 and 8.1.p02. And between these two different<BR>
> Geant4 versions one of the main changes was the upgrade of the most<BR>
> important data package G4EMLOW, that move from 3.0 to 4.0, and that<BR>
> includes major changes.<BR>
<BR>
3, G4EMLOW is a data lib used by EM Low Energy model in Geant4.<BR>
As we can see, only benchmarkPET used low energy Rayleigh and single_layer used<BR>
all standard model physics processes for PE and Compton. Any change in G4EMLOW<BR>
should only affect benchmarkPET not single_layer.<BR>
<BR>
Any major change of standard EM model between Geant4 8.0.p01 and 8.1.p02?<BR>
<BR>
> - I decided then to run the single_layer.mac simulation with Gate3.1.0,<BR>
> Geant4.8.1.p02 and to change the G4EMLOW4.0 package with G4EMLOW3.0<BR>
> package from the older version. Then the energy spectra obtained was<BR>
> more similar than this obtained with Gate3.0.0, but still different (see<BR>
> energy_3.1.0.EMLOW3.0.jpg image). So I think this little difference is<BR>
> due to other main changes between Geant4.8.0.p01 and Geant4.8.1.p02, it<BR>
> is statistical I think.<BR>
<BR>
4, This is really confusing!<BR>
<BR>
> - The change in behaviour do not come from any digitizer module (adder,<BR>
> readout, any blurring ...), they are still the same since Gate3.0.0 and<BR>
> even before, I compared all files and algorithms.<BR>
<BR>
5, This may be true. But as parameter setDepth is different, the function of multiple pulses<BR>
per rsector in readout module may not be tested thoroughly in different configurations.<BR>
<BR>
> - For me it is not possible too to have such differences only due to gcc<BR>
> version or stdlib version. But here I ask myself a question : MJ, you<BR>
> said you get results with 3.1.2 similar to 3.0.0 but what G4 data<BR>
> packages do you use ?? Then if you use the good packages version, I do<BR>
> not understand anything anymore ... Let me know your thoughts about that.<BR>
<BR>
6, That is still the first thing we should know:<BR>
Is the strange behavior from physics basis (Geant4 etc) or from coding?<BR>
Since MJ is the only one reported no difference, we do need a definite answer from you!<BR>
<BR>
> - I will now try to reproduce the problem in intersector coincidences<BR>
> with the Gate coincidence sorter to see where this problem come from and<BR>
> to see if it is relative to the energy spectra problem too.<BR>
><BR>
<BR>
7, Good.<BR>
<BR>
> But now, it is time to go on holidays :-)<BR>
> Dig, dig, dig and dig more as say MJ !<BR>
<BR>
8. More homework for Irene and Jasmine:<BR>
<BR>
Always set bluring to 0.01:<BR>
<BR>
1) set the exact physics from benchmarkPET in your single_layer (even verbose level); run to see ?<BR>
<BR>
2) setDepth 1; same as benchmarkPET now?<BR>
<BR>
3) other assignments yesterday.<BR>
<BR>
<BR>
Have a wonderful holidays!<BR>
<BR>
> Cheers,<BR>
> Simon<BR>
><BR>
> PS : sorry but I send the images in different mails due the size limitation.<BR>
><BR>
> ------------------------------------------------------------------------<BR>
><BR>
><BR>
> ------------------------------------------------------------------------<BR>
><BR>
> _______________________________________________<BR>
> Gate-users mailing list<BR>
> Gate-users@lists.healthgrid.org<BR>
> <A HREF="http://lists.healthgrid.org/mailman/listinfo/gate-users">http://lists.healthgrid.org/mailman/listinfo/gate-users</A><BR>
<BR>
<BR>
Yu Chen, Ph.D.<BR>
University of Massachusetts Medical School<BR>
Division of Nuclear Medicine<BR>
55 Lake Avenue North<BR>
Worcester, MA 01655-0243<BR>
Phone: (508) 856-6123<BR>
Fax: (508) 856-4572<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: gate-users-bounces@lists.healthgrid.org on behalf of Simon Stute<BR>
Sent: Fri 12/21/2007 6:15 AM<BR>
To: gate-users<BR>
Subject: [Gate-users] Some news about the strange behaviour<BR>
<BR>
Hi all,<BR>
<BR>
I dug more to find the reason of the strange behaviour in energy spectra and<BR>
found those results :<BR>
<BR>
- I first installed Gate3.0.0, 3.1.0, 3.1.1 and 3.1.2 on both 32 and 64 bits<BR>
architectures,and both cluster and single PC.<BR>
- I ran PET and SPECT benchmark on all configurations and compared both<BR>
energy spectra and results from benchmark.C with root : everything was<BR>
identical between all different config.<BR>
- Then I ran the single_layer.mac simulation on all config and obtained the<BR>
same difference in energy spectra as Irene and Jasmine reported. Then I<BR>
found that the change in energy spectra occurs between Gate3.0.0 and 3.1.0.<BR>
Results from 3.1.0, 3.1.1 and 3.1.2 were the same. (see attached images)<BR>
- I realised then that between Gate3.0.0 and 3.1.0, the associated Geant4<BR>
versions are 8.0.p01 and 8.1.p02. And between these two different Geant4<BR>
versions one of the main changes was the upgrade of the most important data<BR>
package G4EMLOW, that move from 3.0 to 4.0, and that includes major changes.<BR>
- I decided then to run the single_layer.mac simulation with Gate3.1.0,<BR>
Geant4.8.1.p02 and to change the G4EMLOW4.0 package with G4EMLOW3.0 package<BR>
from the older version. Then the energy spectra obtained was more similar<BR>
than this obtained with Gate3.0.0, but still different (see<BR>
energy_3.1.0.EMLOW3.0.jpg image). So I think this little difference is due<BR>
to other main changes between Geant4.8.0.p01 and Geant4.8.1.p02, it is<BR>
statistical I think.<BR>
- The change in behaviour do not come from any digitizer module (adder,<BR>
readout, any blurring ...), they are still the same since Gate3.0.0 and even<BR>
before, I compared all files and algorithms.<BR>
- For me it is not possible too to have such differences only due to gcc<BR>
version or stdlib version. But here I ask myself a question : MJ, you said<BR>
you get results with 3.1.2 similar to 3.0.0 but what G4 data packages do you<BR>
use ?? Then if you use the good packages version, I do not understand<BR>
anything anymore ... Let me know your thoughts about that.<BR>
- I will now try to reproduce the problem in intersector coincidences with<BR>
the Gate coincidence sorter to see where this problem come from and to see<BR>
if it is relative to the energy spectra problem too.<BR>
<BR>
But now, it is time to go on holidays :-)<BR>
Dig, dig, dig and dig more as say MJ !<BR>
Cheers,<BR>
Simon<BR>
<BR>
PS : sorry but I send the images in different mails due the size limitation.<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>