<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
A quick and dirty fix is to set the randomSeed to some run related
number. I know that in geant people would sometimes start each event
with a seed equal to that event number. Here you only have to do it
run-wise.<br>
<br>
Cheers<br>
<br>
Andrej<br>
<br>
<div class="moz-cite-prefix">surabhi balagopal nair je 2/1/2016 ob
4:40 PM napisal:<br>
</div>
<blockquote
cite="mid:CAAiNk+Vzoj=6gRPVs2bWXE=Y=TyHjGhYCL92Ov3GFykGMm8w9A@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div>Can anyone tell me whether the Virtual Gate is built on
GEANT4 multithread ON or OFF?</div>
<div><br>
</div>
<div>Thank you,</div>
<div>SN</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 1 February 2016 at 10:14, David
Boersma <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:david.boersma@physics.uu.se" target="_blank">david.boersma@physics.uu.se</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
It looks like Thomas Deschler was right: random number
seeding in Gate (current develop version, but I suspect the
conclusions also hold for release 7.1) only works correctly
if the Geant4 10.1 libraries were compiled with
multithreading OFF. By "correctly" we mean: with "auto"
seeding you get a different seed every time you run it, and
therefore statistically independent outputs. If you use a
geant4 installation built with multithreading=ON, then
successive Gate runs will give identical outputs.<br>
<br>
We verified this (on Linux and on MacOSX) by compiling
Geant4 with and without multithreading, and then building
Gate with it. We ran Hediye's minimal RT macro (shoot
electrons on a target foil, and collect a phasespace of the
particles after it, stored in a ROOT output file). We ran
the macro twice (renaming the output directory in between).
"Ekine" histograms of the two runs were numerically
identical when we ran *with* multithreading and they were
clearly different *without* multithreading.<br>
<br>
Short term action item: it would be good to document this
clearly in the README file and/or the 7.1 installation guide
on the wiki.<br>
<br>
Medium/long term action item: fix Gate to work correctly
with multithreaded geant4.<br>
<br>
I have more comments, but they are more technical, will
submit them as "issues" on GitHub.<br>
<br>
HTH,<br>
David B.<span class=""><br>
<br>
<br>
Den 01/02/2016 kl. 11:18, skrev hediye acun:<br>
</span>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">
Hello Loic,<br>
<br>
We tried your recommendations with David Boersma. First
we run main<br>
macro file for 20 particles and stored output in
PhS_new.root file. We<br>
got particle's properties(location and energy) in root
with Scan command<br>
and then we closed root to make sure root will not
remember the first<br>
output file due to the same tree's name. We run main
macro second time<br>
with same particle number(20) to get second output file
which called<br>
PhS_try.root. In root with scan we obtained particle's
properties again<br>
for second run. After that we compared two text files
which include<br>
particle's location and energies and there was no
difference between them.<br>
<br>
David Boersma run same macro file in his computer which
has Geant4<br>
compiled with multithread OFF, and he obtained different
results for<br>
same number of primaries. My Geant4 compiled with
multithread ON. We<br>
are going to try to compile on my computer with
multitherad OFF and on<br>
David's computer multithread ON to investigate whether
it really depends<br>
on the multithreading.<br>
<br>
Best regards.<br>
<br>
Hediye acun<br>
<br>
PS. It looks like the mailing list not working today.
David didn't<br>
receive your reply and we didn't see on the archive
either.<br>
<br>
<br>
</span>
------------------------------------------------------------------------<br>
*From:* Grevillot Loic <<a moz-do-not-send="true"
href="mailto:loic.grevillot@medaustron.at"
target="_blank">loic.grevillot@medaustron.at</a>><br>
*To:* hediye acun <<a moz-do-not-send="true"
href="mailto:acunhediye@yahoo.com" target="_blank">acunhediye@yahoo.com</a>>;<br>
"<a moz-do-not-send="true"
href="mailto:gate-users@lists.opengatecollaboration.org"
target="_blank">gate-users@lists.opengatecollaboration.org</a>"<br>
<<a moz-do-not-send="true"
href="mailto:gate-users@lists.opengatecollaboration.org"
target="_blank">gate-users@lists.opengatecollaboration.org</a>><br>
*Sent:* Monday, February 1, 2016 9:20 AM<br>
*Subject:* RE: [Gate-users] problem with random number
seed?<span class=""><br>
<br>
Hello,<br>
In my experience the command"/gate/random/setEngineSeed
auto"works.<br>
In your example you are looking at histograms, but to
verify that issue<br>
I was thinking about something different:<br>
</span>
-If the seed did not change as you suspect, the physical
properties from<span class=""><br>
every single particle stored in your Phase Space one
after the other<br>
shall be exactly the same (position, direction, energy,
etc.) for 2<br>
simulations.<br>
</span>
-Could you check that on a particle basis for 10 or 20
particles?<span class=""><br>
You could even try a very simple example where you could
randomly sample<br>
10 particles and look if they are the same for 2
simulations.<br>
Let us know!<br>
Thanks<br>
</span>
Image:Uncle_Sam_pointing_finger_small.jpgImage:We-Need-You1-324x500.jpgImage:superdupont-we-need-you.jpgImage:gsam_want_gnu_small.jpg<br>
*//**/GATE is a /**/research community/**/, /**/ please
contribute!/*//<br>
*You just started? You found some errors in the examples
and the<br>
documentation?*<br>
§ You can correct the documentation<br>
<<a moz-do-not-send="true"
href="http://wiki.opengatecollaboration.org/index.php/Main_Page"
rel="noreferrer" target="_blank">http://wiki.opengatecollaboration.org/index.php/Main_Page</a>>
on the wiki<span class=""><br>
web site<br>
§ You can share your experience on the user mailing-list<br>
</span>
<<a moz-do-not-send="true"
href="http://www.opengatecollaboration.org/mailinglist"
rel="noreferrer" target="_blank">http://www.opengatecollaboration.org/mailinglist</a>><br>
**<br>
*You have a few months of experience or more?*<br>
§ You can correct or even propose new examples<br>
<<a moz-do-not-send="true"
href="http://www.opengatecollaboration.org/Examples"
rel="noreferrer" target="_blank">http://www.opengatecollaboration.org/Examples</a>><br>
§ You can propose a new gate actor, it is as easy as a
plug-in!<br>
<<a moz-do-not-send="true"
href="http://wiki.opengatecollaboration.org/index.php/GateActor"
rel="noreferrer" target="_blank">http://wiki.opengatecollaboration.org/index.php/GateActor</a>><br>
*You are now an official Gate addict and you need more?*<br>
§ You can participate in Gate C++ source code development:
debugging,<span class=""><br>
propose new classes, etc.<br>
ðFor new developments, use git<br>
</span>
<<a moz-do-not-send="true"
href="http://www.opengatecollaboration.org/Git"
rel="noreferrer" target="_blank">http://www.opengatecollaboration.org/Git</a>>
and contact the<br>
gate-devel-mailing-list<br>
<<a moz-do-not-send="true"
href="http://www.opengatecollaboration.org/mailinglist"
rel="noreferrer" target="_blank">http://www.opengatecollaboration.org/mailinglist</a>>
to be guided.<br>
*//**/Thanks for your contribution, the OpenGate
collaboration!/*<br>
*From:*<a moz-do-not-send="true"
href="mailto:gate-users-bounces@lists.opengatecollaboration.org"
target="_blank">gate-users-bounces@lists.opengatecollaboration.org</a><br>
[mailto:<a moz-do-not-send="true"
href="mailto:gate-users-bounces@lists.opengatecollaboration.org"
target="_blank">gate-users-bounces@lists.opengatecollaboration.org</a>]
*On Behalf<br>
Of *hediye acun<br>
*Sent:* Friday, January 29, 2016 3:46 PM<br>
*To:* <a moz-do-not-send="true"
href="mailto:gate-users@lists.opengatecollaboration.org"
target="_blank">gate-users@lists.opengatecollaboration.org</a><br>
*Subject:* [Gate-users] problem with random number seed?<span
class=""><br>
Hello All,<br>
I have Gate "develop" version and at the same time
geant4.10.1.0 and<br>
root_v5.34.32 on the GPU. My operating system is Linux
Mint 17.2 .<br>
I am triying to simulate a linac head to get Phase Space
of photons.<br>
Just for an example I run Gate for a basic geometry
which include only<br>
electron beam, target filter and Phase space plane
inside a linac<br>
geometry. When I run Gate two or more times for same
"number of<br>
primaries" I got the exactly the same Phase Space
distributions<br>
(histogram of Ekine completely identical). But I am
using<br>
"/gate/random/setEngineSeed auto" command and according
to the<br>
documentation that should give me the different seed
every time when I<br>
run it. I would expect some random differences between
PhS's from<br>
different runs.<br>
Does anyone have any idea about this issue? Thank you in
advance.<br>
Hediye Acun<br>
</span>
*Disclaimer:*<span class=""><br>
Please notice our E-Mail Disclaimer<br>
<a moz-do-not-send="true"
href="http://www.medaustron.at/email-disclaimer/"
rel="noreferrer" target="_blank">http://www.medaustron.at/email-disclaimer/</a><br>
<br>
<br>
<br>
</span></blockquote>
<div class="HOEnZb">
<div class="h5">
_______________________________________________<br>
Gate-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Gate-users@lists.opengatecollaboration.org"
target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users"
rel="noreferrer" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
</blockquote>
<br>
</body>
</html>