Message: Re: Identical track data from different simulations Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Identical track data from different simulations 

Forum: Event and Track Management
Re: None Identical track data from different simulations (GaŽlle Angellier)
Re: Idea Re: Identical track data from different simulations (Tom Roberts)
Re: Question Re: Identical track data from different simulations (GaŽlle Angellier)
Date: 31 May, 2009
From: Paul Nicholas Colin Gloster <Paul Nicholas Colin Gloster>

On Fri, 29 May 2009, GaŽlle Angellier wrote:

|--------------------------------------------------------------------------------|
|"Thank you for the quick response !                                             |
|                                                                                |
|I tried to better understand how the PRNG works and I found some                |
|documentation at                                                                |
|http://wwwasd.web.cern.ch/wwwasd/lhc++/clhep/manual/UserGuide/Random/Random.html|
|.                                                                               |
|                                                                                |
|But I am still confused about the different generators available and            |
|particularly the setSeed() and setSeeds() methods.                              |
|                                                                                |
|I tried to find some examples of PRNG seeded with events' ids but I             |
|could'nt find any...                                                            |
|                                                                                |
|Could you give me a quick example on how to implement this within the           |
|GeneratePrimaries method ?                                                      |
|                                                                                |
|Anyway thank you very much for your help !                                      |
|                                                                                |
|Regards,                                                                        |
|GaŽlle Angellier"                                                               |
|--------------------------------------------------------------------------------|

I commend you for your attention to detail. I am not sure that I would
have noticed such repeated pseudorandom numbers.

You could have
void Your_Primary_Generator_Action::GeneratePrimaries(G4Event* anEvent)
{
  some_setSeed_method(anEvent->GetEventID());

  /*...more important statements unrelated to pseudorandom numbers...*/
}

Regards,
N. P. C. G.

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

1 Ok: Re: Identical track data from different simulations   (GaŽlle Angellier - 26 Oct, 2009)
 Add Message Add Message
to: "Re: Identical track data from different simulations"

 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 ]