Message: Re: Non-symetrical distribution of randomly generated particles Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Non-symetrical distribution of randomly generated particles 

Forum: Particles
Re: None Non-symetrical distribution of randomly generated particles (A.T.)
Date: 24 Sep, 2015
From: A.T. <A.T.>

Hi,

With the help of Gabriele Cosmo, I figure out to solve this strange issue. Several causes are possible:

- If the installation is multi-threaded, the use of G4RandFlat::shoot() instead of CLHEP signature should be privileged.

- On a 64 bits machine RanecuEngine is not recommended as it works in lower precision. You may want to use Ranlux64Engine or MTwistEngine instead.

- It is a good practice to instantiate engine with a seed. I choose to use the system time. Many threads talk about the way to set the seed. This one help me to understand a bit more what happens with the random generator engine http://hypernews.slac.stanford.edu/HyperNews/geant4/get/runmanage/310.html?inline=-1

Cheers

Arnault

 Add Message Add Message
to: "Re: Non-symetrical distribution of randomly generated particles"

 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 ]