[gate-users] splitting a GATE simulation by TIME

Sophie Kerhoas skerhoas at cea.fr
Fri Nov 26 16:24:02 CET 2004


Hello Qianmei,
   I attach the file Combine.C and a Combine-root.pdf which is the mail
that Dirk send me to explain how to use the C program in root.

For the explanation of the random file, sorry but I never use the
command resetEngineFrom. I simply put the command 
 /gate/output/root/setSaveRndmFlag 1
in my macro.
I am sure that other gaters using cluster of PC can give you precise
answers on the meaning of all the numbers in the .rndm files.

bye
sophie

 Thu, 2004-11-25 at 18:47, Qianmei Zhang wrote:
> Thanks Sophie,
> 
> I haven't got the code yet, so could i ask you send it to me?
> 
> What i want to do is, i want run the Gate with the same macro input file 
> except the time slices on different computers at the same time.  Such as: 
> 
> job1 to computer one
> /gate/application/setTimeStart 0 s
> /gate/application/setTimeStop 120 s
> 
> job2 to computer two
> /gate/application/setTimeStart 120 s
> /gate/application/setTimeStop 240 s
> 
> 
> job3 to comuter two
> /gate/application/setTimeStart 240 s
> /gate/application/setTimeStop 360 s
> 
> ......
> 
> to make sure that the results from different jobs are independed, what should i do?
> 
> I tried to use the command 
> /random/resetEngineFrom endOFRun1.rndm  in job1
> /random/resetEngineFrom endOFRun2.rndm  in job1
> /random/resetEngineFrom endOFRun3.rndm  in job1
> .....
> so that the random number will be called from the different files. Then i changed the random numbers (from the second number in the endOfRun.rndm) in each file to make sure that random numbers in different file are different. My question is: Am i right to doing so. If yes, how many random numbers i should change? I tried to change one random number and found out the random numbers from the endOfRun have changed completely from a short run.
> 
> Can you explain the meaning of the first and last four numbers(c, cd,cm etc) in the endOfRun.rndm file to me, such as
> 
> 9876
> 0.5340437222388168 0.237095993106945 0.9010642875552599 0.7182339021151375 0.04671893085107159 0.6747511619345737 .....
> 
> 0.7930237054824829 0.5623308420181274 0.9999998211860657
> 92
> 
> It seems that index of the random number is from 0, that is, u(0)=0.5340437222388168
> 
> Thank you again.
> 
> Qianmei
> 
> 
> 
> Sophie Kerhoas wrote:
> 
> >hello,
> >  of course, you can use the combine.C program. Do you want I send the
> >files to you or have you already the code from Dirk?
> >Concerning the random seed, to make sure that two successive identical
> >(I mean same conditions for your simulation) jobs are independent, you
> >just have to put in your macro the line :
> > /gate/output/root/setSaveRndmFlag 1
> >and 0 if you want to generate the same events.
> >hope this help,
> >sophie
> >
> >On Wed, 2004-11-24 at 01:07, Qianmei Zhang wrote:
> >  
> >
> >>Hello Sophie,
> >>
> >>I meet the same problem as Mutang had. Could i use the combile.c program 
> >>by myself as well?  Another quesion is, am i right that i just modify 
> >>the seed in the endOfRun.rndm(such as change 9876 to 4382 or whatever) 
> >>for each job to make sure that each run is independent? Thanks!
> >>
> >>Best wishes,
> >>
> >>Qianmei
> >>
> >>
> >>g
> >>
> 
> 
> _______________________________________________
> gate-users mailing list
> gate-users at lphe1pet1.epfl.ch
> http://lphe1pet1.epfl.ch/mailman/listinfo/gate-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Combine.C
Type: text/x-c++
Size: 5665 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20041126/d2a73995/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combine-root.pdf
Type: application/pdf
Size: 132217 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20041126/d2a73995/attachment.pdf>


More information about the Gate-users mailing list