Message: Unique Events Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Unique Events 

Forum: Multithreading
Date: 05 Aug, 2016
From: <herr_apa>

At the start of a run, Geant4 randomly generates a queue of event seeds. At the start of each event, a seed is popped from the queue and used to initialize the RNG. It is my understanding that Geant4 guarantees strong reproducibility. That is, given that I use a particular RNG and that I initialize in a particular way at the start of my program, I should always get the same output. It should not depend on the number of threads I run. From what I figure, the only way to guarantee this is to make sure that the output of a given event only depends on the event seed that was popped from the queue. Is this correct?

If so, then the number of outcomes is limited. If I use an unsigned 32 bit integer as the seed, I can get at most 2^32 unique events. Is this the case? What type does Geant4 use to store its seeds?


// Anders

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

1 Note: Re: Unique Events   (Andrea Dotti - 06 Aug, 2016)
(_ None: Re: Unique Events   (herr_apa - 08 Aug, 2016)
 Add Message Add Message
to: "Unique Events"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews