GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PANDA - Computing » Grid and Infrastructure » Upcoming DC
Re: random number generator for DPMgen [message #6388 is a reply to message #6385] Fri, 11 April 2008 19:44 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *dip.t-dialin.net
Hallo Johan,


Quote:

Will the instruction
gRandom->SetSeed(<my favorite seednumber>);
in the macro do the job for me?



Not really, because dpm do not know anything about root and gRandom.

in the PndDpmDirect, the seed is set using:

 Long_t Time = time(NULL);
int a = Time/100000;
seed = Time - a*100000 + a/100000.;
 


which is the same as it was in the executable, except that it is changed for each event, so each call to the next event will set the seed again. It is simple but I think it is enough, with the executable you set the seed once for all events and here you change it for each event! Any way if you think this is not enough we can change it and take the seed for example from gRandom, this should be straight forward!

regards

Mohammad

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon3.gif
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: vmplayer and Grid
Next Topic: Please run the MonALISA Toolbar
Goto Forum:
  


Current Time: Tue Dec 03 03:16:47 CET 2024

Total time taken to generate the page: 0.00943 seconds