GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Event Generators » simpleEvtGen default EvtRandomEngine
Re: simpleEvtGen default EvtRandomEngine - PndMTRandomEngine Suggestion [message #9232 is a reply to message #9231] Wed, 26 August 2009 14:00 Go to previous messageGo to previous message
Marius Mertens is currently offline  Marius Mertens
Messages: 55
Registered: January 2009
continuous participant
From: *ikp.kfa-juelich.de
Hi Stefano,

basically you just create an instance of it (seed is mandatory) and then pass it to the EvtGen constructor like this:

PndMTRandomEngine myRandomEngine(seed);

//Initialize the generator - read in the decay table and particle properties
EvtGen myGenerator("DECAY.DEC","evt.pdl", &myRandomEngine);

(this is an excerpt from the simpleEvtGen source)
 
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EvtGen Output Fixed Point Precision
Next Topic: Meaning of fSeed for dpm_gen__ in PndDpmDirect
Goto Forum:
  


Current Time: Sun Nov 28 00:16:34 CET 2021

Total time taken to generate the page: 0.02657 seconds