Message: Re: Question about saving Random Number Status Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Question about saving Random Number Status 

Keywords: random number
Forum: Run Management
Re: Question Question about saving Random Number Status (Ioannis Sechopoulos)
Re: Question Re: Question about saving Random Number Status (Emanuele Leonardi)
Date: 12 Jun, 2006
From: michel maire <michel maire>

User Emanuele Leonardi wrote:

>> I have some additional questions on the same subject.
>> 
>> According to the novice example N03, if I enable saving the random
>> number by calling
>> 
>>   G4RunManager::GetRunManager()->SetRandomNumberStore(true);
>> 
>> inside BeginOfRunAction, the random generator status is saved at the
>> beginning of each run to currentRun.rndm and of each event to
>> currentEvent.rndm.
>> 
>> If I then use the final version of the currentEvent.rndm coming from an
>> old run to initialize the seed of a new run using the
>> 
>>   /random/resetEngineFrom  currentEvent.rndm
>> 
>> command, the first event of the new run will be identical to the last
>> event of the old run. Is this correct? Is there any way to save to final
>> state of the random engine just before the program exits, so that the
>> new run will be the natural continuation of the old one?
>>  
>>             Emanuele Leonardi
>> 

 I do not know 'natural' answer on this.
 A trick is to add a new run to your job :

 /run/beamOn 0 

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

 Add Message Add Message
to: "Re: Question about saving Random Number Status"

 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 ]