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

Question Yet another random-seed question -- reproducing event #N 

Forum: Event and Track Management
Date: 24 Feb, 2010
From: Michael H. Kelsey <Michael H. Kelsey>

I have a standalone executable that drives its own event loop, directly calling <process>->PostStepDoIt() to exercise a particular chunk of GEANT4 code. In my development work, I've caused an abort() at event #632 (loop==631) in this test job. I would really like to try to reproduce exactly that event (i.e., starting from the same random seed) with the production version of GEANT4.9.3.

I have tried doing "CLHEP::HepRandom::getTheSeed()" inside the event loop, but it reports exactly the same value on each event. Consequently, I don't have any way to restart at a particular arbitrary event in the job.

Is there a way to query the active random engine for the _current_ seed? And then to feed in that seed on another job to reproduce the particular event of interest to me?

Neither the ToolKit nor Application book seems to cover this issue.

       -- Michael Kelsey

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

1 None: RE: Yet another random-seed question -- reproducing event #N   (Asai, Makoto - 24 Feb, 2010)
1 None: Re: Yet another random-seed question -- reproducing event #N   (Mike Kelsey - 24 Feb, 2010)
2 None: Re: Yet another random-seed question -- reproducing event #N   (Tom Roberts - 24 Feb, 2010)
3 None: Re: Yet another random-seed question -- reproducing event #N   (michel maire - 26 Feb, 2010)
 Add Message Add Message
to: "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 ]