[Gate-users] "/gate/random/setEngineSeed auto" always generates the same results

Uwe Pietrzyk u.pietrzyk at fz-juelich.de
Thu Aug 19 16:16:34 CEST 2010

Hi Franck,

I could reproduce your results, but also found a kind of temporary
It seems to be related to the "imageCT" option, since when I
disable this option by issuing : " /gate/output/imageCT/disable"
and only use the "/gate/random/setEngineSeed auto"
the files are different!
I am sure, that you can get the same information of imageCT by
writing the data out of a root-programm, although I haven't done so yet
by myself.

Hope this helps.

Kind regards,

On 19.08.2010, at 00:47, Franck P. Vidal wrote:

Hi there,

I set the random number generator as follows:
   /gate/random/setEngineName MersenneTwister
   /gate/random/setEngineSeed auto
   /gate/random/verbose 1

Every time I run my simulation, the output is always identical (e.g.
when I enable the ASCII output in "example_CT/fast"
benchmarkFastCTHits.dat, or the raw data benchmarkFastCT_000.dat),
whereas the initial seeds are different.

Even with   /gate/random/setEngineSeed   567489   I get the same output.

Is there any reason for that?
I was expecting the results to be different.

Best Regards,


Dr Franck P. Vidal
Postdoctoral Research Fellow

Department of Radiation Oncology
University of California, San Diego
Moores Cancer Center, Rm 1410
3855 Health Sciences Dr. #0843
La Jolla, CA 92093-0843
Tel: (858)822-7499
Fax: (858)822-6078
Homepage: http://pagesperso-orange.fr/f-p.v/

Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>

Prof. Dr. Uwe Pietrzyk
Institut für Neurowissenschaften und Medizin / INM-1
Forschungszentrum Jülich GmbH
52425 Jülich
Tel: +49-2461-61 4763
Fax: +49-2461-61 2820 + 8229
Mobil: +49-162-103-4871
eMail: U.Pietrzyk at fz-juelich.de<mailto:U.Pietrzyk at fz-juelich.de>
Bergische Universität Wuppertal
Fachbereich C - Physik / D.08.01
Gaußstr. 20
42097 Wuppertal
Tel: +49-(0)202-439-3523
Fax: +49-(0)202-439-2811
eMail: Uwe.Pietrzyk at physik.uni-wuppertal.de<mailto:Uwe.Pietrzyk at physik.uni-wuppertal.de>

Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt

More information about the Gate-users mailing list