Message: some clarifications regarding primary generator and random numbers Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question some clarifications regarding primary generator and random numbers 

Forum: Event and Track Management
Date: 12 May, 2012
From: Athreya Shankar <Athreya Shankar>

Hello all,

I have some questions regarding the role played by the random number generator in generating primaries. I'm sorry if they are too fundamental.

1. If the same initial seed is given to every run, will the output for every run with N events be identical?

2. Also, now, if I change the seed for every run by incorporating the following lines in the main(),

CLHEP::HepRandom::setTheSeeds(seeds);

then, will the program automatically move to the next random number for successive events or should I incorporate some other lines? And, will the same random number, irrespective of the sequence that it came from, always result in the same output (track data, energy deposited,etc) (assuming no changes to simulation setup)?

3. I also read that if we assign the event ID as the random seed for every event, then, as long as we ensure different disjoint sets of event IDs, we can run statistically independent multiple jobs. How do we set the initial event ID? Also, once the data is obtained from these multiple jobs, how do we combine the data into one file?

Thanking you in advance,

Athreya

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

1 Feedback: Re: some clarifications regarding primary generator and random numbers   (Gumplinger Peter - 14 May, 2012)
 Add Message Add Message
to: "some clarifications regarding primary generator and random numbers"

 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 ]