GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Seed in /macro/master/sim_complete.C
Seed in /macro/master/sim_complete.C [message #19335] Thu, 16 June 2016 14:33 Go to next message
Jennifer Pütz is currently offline  Jennifer Pütz
Messages: 47
Registered: April 2015
Location: FZ Juelich
continuous participant
From: *ikp.kfa-juelich.de
Hi everyone,

I tested the new master macros today. When I run sim_complete.C with a dec-file, the seed is always changed from -1 to 4357.
After I added the line
gRandom->SetSeed();

to sim_complete.C the seed is set properly Smile . It seems that this line is missing somewhere.

Cheers,
Jenny
Re: Seed in /macro/master/sim_complete.C [message #19336 is a reply to message #19335] Thu, 16 June 2016 17:30 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
gRandom->SetSeed() is to have a random seed each time you run a simulation. If you do not write the line, the seed is always the same.
The line has to be added only if needed.
Previous Topic: pandaroot installation on ubuntu16.04
Next Topic: Problems with macros
Goto Forum:
  


Current Time: Thu Nov 28 05:55:01 CET 2024

Total time taken to generate the page: 0.00582 seconds