[Gate-users] problem with random number seed?

hediye acun acunhediye at yahoo.com
Mon Feb 1 11:18:17 CET 2016


Hello Loic,
We tried your recommendations with David Boersma.  First we run main macro file for 20 particles and stored output in PhS_new.root file. We got particle's properties(location and energy) in root with Scan command and then we closed root to make sure root will not remember the first output file due to the same tree's name. We run main macro second time with same particle number(20) to get second output file which called PhS_try.root.  In root with scan we obtained particle's properties again for second run. After that we compared two text files which include particle's location and energies and there was no difference between them. 
David Boersma run same macro file in his computer which has Geant4 compiled with multithread OFF, and he obtained different results for same number of primaries. My Geant4 compiled with multithread ON.  We are going to try to compile on my computer with multitherad OFF and on David's computer multithread ON to investigate whether it really depends on the multithreading.
Best regards.
Hediye acun
PS. It looks like the mailing list not working today. David didn't receive your reply and we didn't see on the archive either. 

      From: Grevillot Loic <loic.grevillot at medaustron.at>
 To: hediye acun <acunhediye at yahoo.com>; "gate-users at lists.opengatecollaboration.org" <gate-users at lists.opengatecollaboration.org> 
 Sent: Monday, February 1, 2016 9:20 AM
 Subject: RE: [Gate-users] problem with random number seed?
   
#yiv9306514893 #yiv9306514893 -- _filtered #yiv9306514893 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv9306514893 {font-family:Wingdings;panose-1:5 0 0 0 0 0 0 0 0 0;} _filtered #yiv9306514893 {font-family:Wingdings;panose-1:5 0 0 0 0 0 0 0 0 0;} _filtered #yiv9306514893 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv9306514893 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} _filtered #yiv9306514893 {font-family:Aharoni;panose-1:2 1 8 3 2 1 4 3 2 3;}#yiv9306514893 #yiv9306514893 p.yiv9306514893MsoNormal, #yiv9306514893 li.yiv9306514893MsoNormal, #yiv9306514893 div.yiv9306514893MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv9306514893 a:link, #yiv9306514893 span.yiv9306514893MsoHyperlink {color:blue;text-decoration:underline;}#yiv9306514893 a:visited, #yiv9306514893 span.yiv9306514893MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv9306514893 p.yiv9306514893MsoAcetate, #yiv9306514893 li.yiv9306514893MsoAcetate, #yiv9306514893 div.yiv9306514893MsoAcetate {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;}#yiv9306514893 p.yiv9306514893MsoListParagraph, #yiv9306514893 li.yiv9306514893MsoListParagraph, #yiv9306514893 div.yiv9306514893MsoListParagraph {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv9306514893 span.yiv9306514893EmailStyle17 {color:#1F497D;}#yiv9306514893 span.yiv9306514893BalloonTextChar {}#yiv9306514893 .yiv9306514893MsoChpDefault {font-size:10.0pt;} _filtered #yiv9306514893 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv9306514893 div.yiv9306514893WordSection1 {}#yiv9306514893 _filtered #yiv9306514893 {} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {font-family:Wingdings;} _filtered #yiv9306514893 {} _filtered #yiv9306514893 {margin-left:.75in;font-family:Wingdings;} _filtered #yiv9306514893 {margin-left:1.25in;} _filtered #yiv9306514893 {margin-left:1.75in;font-family:Wingdings;} _filtered #yiv9306514893 {margin-left:2.25in;font-family:Symbol;} _filtered #yiv9306514893 {margin-left:2.75in;} _filtered #yiv9306514893 {margin-left:3.25in;font-family:Wingdings;} _filtered #yiv9306514893 {margin-left:3.75in;font-family:Symbol;} _filtered #yiv9306514893 {margin-left:4.25in;} _filtered #yiv9306514893 {margin-left:4.75in;font-family:Wingdings;} _filtered #yiv9306514893 {} _filtered #yiv9306514893 {margin-left:20.25pt;} _filtered #yiv9306514893 {margin-left:56.25pt;} _filtered #yiv9306514893 {margin-left:92.25pt;font-family:Wingdings;} _filtered #yiv9306514893 {margin-left:128.25pt;font-family:Symbol;} _filtered #yiv9306514893 {margin-left:164.25pt;} _filtered #yiv9306514893 {margin-left:200.25pt;font-family:Wingdings;} _filtered #yiv9306514893 {margin-left:236.25pt;font-family:Symbol;} _filtered #yiv9306514893 {margin-left:272.25pt;} _filtered #yiv9306514893 {margin-left:308.25pt;font-family:Wingdings;}#yiv9306514893 ol {margin-bottom:0in;}#yiv9306514893 ul {margin-bottom:0in;}#yiv9306514893 Hello,    In my experience the command"/gate/random/setEngineSeed auto" works. In your example you are looking at histograms, but to verify that issue I was thinking about something different: -         If the seed did not change as you suspect, the physical properties from every single particle stored in your Phase Space one after the other shall be exactly the same (position, direction, energy, etc.) for 2 simulations. -         Could you check that on a particle basis for 10 or 20 particles? You could even try a very simple example where you could randomly sample 10 particles and look if they are the same for 2 simulations.    Let us know! Thanks                                                           GATE is a research community, please contribute!    You just started? You found some errors in the examples and the documentation? §  You can correct thedocumentation on the wiki web site §  You can share your experience on the usermailing-list    You have a few months of experience or more? §  You can correct or even propose newexamples  §  You can propose anew gate actor, it is as easy as a plug-in!  You are now an official Gate addict and you need more? §  You can participate in Gate C++ source code development: debugging, propose new classes, etc. ð For new developments,use git and contact thegate-devel-mailing-list to be guided.                                                Thanks for your contribution, the OpenGate collaboration!          From: gate-users-bounces at lists.opengatecollaboration.org [mailto:gate-users-bounces at lists.opengatecollaboration.org]On Behalf Of hediye acun
Sent: Friday, January 29, 2016 3:46 PM
To: gate-users at lists.opengatecollaboration.org
Subject: [Gate-users] problem with random number seed?    Hello All,    I have Gate "develop" version and at the same time geant4.10.1.0 and root_v5.34.32 on the GPU. My operating system is Linux Mint 17.2 .     I am triying to simulate a linac head to get Phase Space of photons. Just for an example I run Gate for a basic geometry which include only electron beam, target filter and Phase space plane inside a linac geometry. When I run Gate two or more times for same "number of primaries" I got the exactly the same Phase Space distributions (histogram of Ekine completely identical). But I am using "/gate/random/setEngineSeed auto" command and according to the documentation that should give me the different seed every time when I run it. I would expect some random differences between PhS's from different runs.    Does anyone have any idea about this issue? Thank you in advance.    Hediye Acun Disclaimer:
Please notice our E-Mail Disclaimer http://www.medaustron.at/email-disclaimer/   


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160201/3d8b0b08/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 16312 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160201/3d8b0b08/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 12857 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160201/3d8b0b08/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 13062 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160201/3d8b0b08/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 11086 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160201/3d8b0b08/attachment-0007.jpg>


More information about the Gate-users mailing list