GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Event Generators » Random Seed of BoxGenerator
Random Seed of BoxGenerator [message #10066] Sat, 30 January 2010 14:54 Go to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *dip.t-dialin.net
Dear Collegues,

I'm trying to produce some event with box generator.
I want to produce two output files from one macro, which have different events.

How can I set some random seed for box generator.
For example, each output files have to have 100 events.
output_mc_sim_1.root
output_mc_sim_2.root

Is there some option?

Thanks,
Donghee



Re: Random Seed of BoxGenerator [message #10067 is a reply to message #10066] Sat, 30 January 2010 15:00 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *56-82-r.retail.telecomitalia.it
You should add the following line at the beginning:

gRandom->SetSeed(1234);

wher 1234 is your random seed number.
Previous Topic: Splitting of output file with random generator in pythia macro
Next Topic: New DPMgen results disagree with earlier simulations
Goto Forum:
  


Current Time: Thu Nov 28 23:56:31 CET 2024

Total time taken to generate the page: 0.00901 seconds