$)C
<br><font size=2 face="sans-serif">hi, Daniel,</font>
<br>
<br><font size=2 face="sans-serif">I have also spent quite some time on the random engine of GATE(Geant4), so</font>
<br><font size=2 face="sans-serif">maybe I can give my suggestions.</font>
<br>
<br><font size=2 face="sans-serif">1. To solve your problem about the root file output, don't disable the ROOT output,</font>
<br><font size=2 face="sans-serif">instead, set all the related root output option (single, hits, coincidences, etc.) as 0,</font>
<br><font size=2 face="sans-serif">thus there will only be an empty gate.root file with a fixed size of 11kB.</font>
<br>
<br><font size=2 face="sans-serif">2. I have double about your method of modifying one number in the endOfRun.rndm file.</font>
<br><font size=2 face="sans-serif">I remember that there's a talk about this issue in this email list some time ago. Someone</font>
<br><font size=2 face="sans-serif">who has more knowledeg about the random generator engine of Geant4 said you cannot </font>
<br><font size=2 face="sans-serif">get statistically independent randoms by just modify the *.rndm file. So I suggest you</font>
<br><font size=2 face="sans-serif">be careful about your method. You can search the user talk and you can also find</font>
<br><font size=2 face="sans-serif">a small program which can generate a *.rndm file.</font>
<br>
<br><font size=2 face="sans-serif">Best regards</font>
<br>
<br><font size=2 face="sans-serif">Yuxuan</font>
<br>
<br><font size=2 face="sans-serif">below is the email and program by Angela Foudray, July 12, 2006:</font>
<br>
<br>
<br>
<br><font size=3 face="sans-serif">Hey Seyjoon,<br>
<br>
We've got a little program that writes out a file in the format that GATE is looking for. It's not exactly pretty, but it does what you are looking for. Here's a few things about it:<br>
<br>
1) It always writes the output to a file called "test.rndm" (so copy this file to something else before running the program again)<br>
2) It always ends in a segmentation fault, but its really done it's job (been too lazy to change this since it does what you are really looking for it to do - i.e. make a file with GATE random seed syntax)<br>
3) You run it with the seed as a flag passed at the command line, so to use it you run:<br>
<br>
./testRandom 31245<br>
<br>
(exchange 31245 with the random seed of your choice). And voila, a file with a new seed.<br>
<br>
Send all your praise and kisses to Garry Chinn (</font><a href=mailto:gchinn@stanford.edu><font size=3 color=blue face="sans-serif"><u>gchinn@stanford.edu</u></font></a><font size=3 face="sans-serif">).<br>
<br>
Let me know if you have any questions.<br>
Ange<br>
<br>
<br>
<br>
Seyjoon wrote: </font>
<br><font size=3 face="sans-serif">hi</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif">'GATE-USERS Talk' webpage doesn't open in opengatecollaboration site.</font>
<br><font size=3 face="sans-serif">I hope to search for a method of generating random seed file (.rndm)</font>
<br><font size=3 face="sans-serif">but it just shows blank page.</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif">Can anyone tell me how to make it?</font>
<br><font size=3 face="sans-serif"> </font>
<br><font size=3 face="sans-serif">Regards, </font>
<br><font size=3 face="sans-serif">Seyjoon</font>
<p>
<hr>
<br><font size=3 face="Dotum"><b>180!F 4^6sAx >_HD! 8^@O</b><br>
5N5U! </font><a href=http://us.rd.yahoo.com/mail_kr/taglines/mail4/*http://kr.content.mail.yahoo.com/cgland><font size=3 color=blue face="Dotum"><u>;u 7N?n >_HD! 8^@O</u></font></a><font size=3 face="Dotum">?!<-4B 8^=CAv8& ?)1b@z1b 2x>n4Y 3u@; <v @V4d4O4Y.</font>
<p>
<br><font size=3><tt><br>
</tt></font>
<hr><font size=3><tt><br>
_______________________________________________<br>
Gate-users mailing list<br>
</tt></font><a href="mailto:Gate-users@lists.healthgrid.org"><font size=3 color=blue><tt><u>Gate-users@lists.healthgrid.org</u></tt></font></a><font size=3><tt><br>
</tt></font><a href="http://lists.healthgrid.org/mailman/listinfo/gate-users"><font size=3 color=blue><tt><u>http://lists.healthgrid.org/mailman/listinfo/gate-users</u></tt></font></a><font size=3><tt><br>
</tt></font>
<br><font size=2><tt>_______________________________________________<br>
gate-users mailing list<br>
gate-users@lphe1pet1.epfl.ch<br>
http://lphe1pet1.epfl.ch/mailman/listinfo/gate-users<br>
</tt></font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>"Daniel Woodsworth" <danieljw@phas.ubc.ca></b></font>
<br><font size=1 face="sans-serif">Sent by: gate-users-bounces@lists.healthgrid.org</font>
<p><font size=1 face="sans-serif">07/16/2007 06:30 PM</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: gate-users@lists.healthgrid.org</font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Subject: [Gate-users] /gate/output/root/setSaveRndmFlag</font></table>
<br>
<br>
<br><font size=2><tt>Hi,<br>
<br>
I am trying to set up a system to run statistically independent<br>
runs/simulations of a single physical setup (phantom, activity, geometry,<br>
scanner, electronics etc.) The way I am doing this, is I have a little<br>
script that takes an old endOfRun.rndm file and edits one of the numbers,<br>
which (I believe), when the simulation is run from a directory containing<br>
an endOfRun.rndm file causes Gate to produce a new (independent) stream of<br>
random numbers. So the script makes multiple, different, endOfRun.rndm<br>
files and launches a simulation from distinct directories. This all seems<br>
to work fine and yield independent simulations.<br>
<br>
However, if I try and disable the ROOT output (/gate/output/root/disable),<br>
then I no longer get independent runs. I am guessing this is since the<br>
setSaveRndmFlag is part of the /root tree structure. Ie the command<br>
/gate/output/root/disable kills any commands which start with<br>
/gate/output/root, including setSaveRndmFlag.<br>
<br>
At any rate, somehow disabling the ROOT output disrupts the GATE procedure<br>
of using the endOfRun.rndm file as a starting point for the random number<br>
generator.<br>
<br>
I would like to be able to run simulations with just interfile output, as<br>
sometimes I only need projection data, and the root output slows down the<br>
simulation and tends to be very large data files.<br>
<br>
Has anyone come across this? Does anyone know how to force GATE to use<br>
endOfRun.rndm as the starting point for the random number stream, with the<br>
ROOT output disabled?<br>
<br>
Thanks for any help.<br>
<br>
Daniel<br>
<br>
_______________________________________________<br>
Gate-users mailing list<br>
Gate-users@lists.healthgrid.org<br>
http://lists.healthgrid.org/mailman/listinfo/gate-users<br>
</tt></font>
<br>
<br>