Message: Seed for Random Engines Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Seed for Random Engines 

Forum: Run Management
Date: 14 Jul, 2011
From: <Mike>

Dear all,

I still have some problems in understanding the setting of the seed for the Random Engines. If I set a seed=35678 for an engine in the main of the example.cc this seed is used by the engine for each run (/run/beamOn ) I start, so that every run produces the same results. Doing more than one run by calling /run/beamOn several times, the seed has to be changed for each run. I hope that I am right up to here? What is the easiest way to change the seed for each run, by not changing the code and recompiling the example? I know that the RanecuEngine takes the seeds from a table with 255 entries. But I search a solution for more than 255 runs.

Another point is: If I want to produce more than one event, e.g. 1000 events, during a run (/run/beamOn 1000). Are these 1000 events statistically independent, by setting the seed in the way described above?

Thanks for your help.

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

1 None: Re: Seed for Random Engines   (=?UTF-8?Q?Nicholas_Collin_Paul_de_Glouce=C5=BFter?= - 14 Jul, 2011)
1 Question: Re: Seed for Random Engines   (Mike - 16 Jul, 2011)
(_ None: Re: Seed for Random Engines   (=?UTF-8?Q?Nicholas_Collin_Paul_de_Glouce=C5=BFter?= - 18 Jul, 2011)
2 More: Re: Seed for Random Engines   (Gabriele Cosmo - 05 Aug, 2011)
1 Question: Re: Seed for Random Engines   (Asja Pfaffenberger - 05 Aug, 2011)
1 Idea: Re: Seed for Random Engines   (Tom Roberts - 05 Aug, 2011)
... 1 Message(s)
2 More: Re: Seed for Random Engines   (Gabriele Cosmo - 05 Aug, 2011)
... 2 Message(s)
 Add Message Add Message
to: "Seed for Random Engines"

 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 ]