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

Question Question about saving Random Number Status 

Keywords: random number
Forum: Run Management
Date: 29 Mar, 2006
From: Ioannis Sechopoulos <Ioannis Sechopoulos>

I want to save the random status every 100 thousand events in case something goes wrong so that the simulation can be re-started. I found that I can save the random number status file by setting:

runManager->SetRandomNumberStore(true);

in the BeginOfRunAction and then calling:

runManager->rndmSaveThisEvent();

every 100 thousand events in BeginOfEventAction. But I noticed that this saves 'currentEvent.rndm' for EVERY event. I would prefer this didn't happen to save time. Is there some way to get around this?

Also, if I have to re-start the simulation, after restoring the random status, is there a way to set the Event ID number to a specific one? I found that the Run ID number can be set using G4RunManager, but I did not find an equivalent one for the Event ID number.

Thanks.

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

1 Question: Re: Question about saving Random Number Status   (Emanuele Leonardi - 18 May, 2006)
1 None: Re: Question about saving Random Number Status   (michel maire - 12 Jun, 2006)
3 More: Re: Question about saving Random Number Status   (Gabriele Cosmo - 12 Jun, 2006)
 Add Message Add Message
to: "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 ]