Message: GPS random seed Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question GPS random seed 

Keywords: GPS, general particle source, HEPrandom, random seed
Forum: Particles
Date: 19 Sep, 2007
From: Ben Loer <bloer@princeton.edu>

Hi all, I'm having a problem using the GPS. I set a "Para" volume distribution which is confined to a portion of my detector. The particles are showing up in the right distribution, but they are not really randomized: the first vertex is always at the same point. I set the random seed in my main() in the standard way:

CLHEP::HepRandom::setTheEngine(new CLHEP::RanluxEngine); CLHEP::HepRandom::setTheSeed(time(0));

But this doesn't seem to have any effect. Does GPS get its random seed from some other source? Or do I need to manually set it somewhere via gps commands?

Thanks!

Ben

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

1 None: Re: GPS random seed   (Fan Lei - 02 Nov, 2007)
 Add Message Add Message
to: "GPS random seed"

 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 ]