Message: Re: Yet another random-seed question -- reproducing event #N Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Yet another random-seed question -- reproducing event #N 

Forum: Event and Track Management
Re: Question Yet another random-seed question -- reproducing event #N (Michael H. Kelsey)
Re: None RE: Yet another random-seed question -- reproducing event #N (Makoto Asai)
Date: 24 Feb, 2010
From: Michael H. Kelsey <Michael H. Kelsey>

Asai, Makoto writes:
> What you need to store is "random number engine status".
> To store it:
>      G4String fileN =3D "currentEvent.rndm";=20
>      HepRandom::saveEngineStatus(fileN);
> To retrive it:
>      HepRandom::restoreEngineStatus(fileN);

Thanks, Makoto!  I'm trying it now.  Pity I can't just capture the
"current seed" and use it as a command line argument...

Hurrah; it worked.  Okay, now I can isolate this d**ned bug I introduced in
the Bertini code...
      -- Mike

 Add Message Add Message
to: "Re: Yet another random-seed question -- reproducing event #N"

 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 ]