Message: Re: Default value for /random/setSeeds Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Default value for /random/setSeeds 

Forum: Run Management
Re: Question Default value for /random/setSeeds (Stefan E. Mueller)
Re: Feedback Re: Default value for /random/setSeeds (Gumplinger Peter)
Date: 17 Mar, 2014
From: Stefan E. Mueller <Stefan E. Mueller>

Hi Peter,

actually, I do not have a line like  

G4Random::setTheSeed(myseed); 

in my main, even though it is based on the examples. Is "myseed" the 'default seed'? What does it correspond to? 

Instead I use /random/setSeeds RND1 RND2 with the two random values RND1 and RND2 in a macro to obtain statistically 
independent runs. A perl script is used to find the two values using perl's rand()-function. The perl script builds 
a new macro from a template macro file. I thought it would be worthwhile if in the template,
 /random/setSeeds would take some default values (then to be 
overwritten by the perl script for multiple job submission in parallel), such that for testing reasons 
I can always have identical 'default' conditions. Of course, the default values can be any values (at 
the moment I have /random/setSeeds 0 1), but if there are some "official" defaults, I'd like to put those.

By the way, what is the range of the values /random/setSeeds takes? 

Stefan

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: Default value for /random/setSeeds   (Gumplinger Peter - 17 Mar, 2014)
 Add Message Add Message
to: "Re: Default value for /random/setSeeds"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]