Message: Re: getting always same output. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: getting always same output. 

Forum: Analysis
Re: Question getting always same output. (shaksbeer)
Re: None Re: getting always same output. (Ivana Hrivnacova)
Date: 09 Dec, 2015
From: shaksbeer <shaksbeer>

Thank you for replying ,

So, If i need to do simulation for more thank 100K events , I should change random number generator or not .as I saw in main file of some examples

  // Choose the Random engine
  G4Random::setTheEngine(new CLHEP::RanecuEngine);

it it ok for run Million of photons or I need to set different random number generator before. I mean I can set this following line in the main file ,... or there is a way to do so ?

G4Random::setTheEngine(new CLHEP::RanecuEngine);
G4int index=n;
      G4long seeds[2];
      HepRandom::setTheSeeds(seeds,index);

Thank you so much.

 Add Message Add Message
to: "Re: getting always same output."

 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 ]