GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Monte Carlo Engines » Geant4: problem with set seed and cuts
Re: Geant4: problem with set seed and cuts [message #9527 is a reply to message #9516] Wed, 07 October 2009 16:58 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

Can you try to use:

/random/setSeeds myseed myseed ((G4 setSeeds requires at least two long values))

where myseed is the seed number you like.

the other method is normally used to restore the status of the random generator and need an input file which should contain the about 98 numbers presenting the HepJamesRandom engine status (it is a CLHEp package).


With the cuts, did you change anything in the g4Config.C? because the cuts will be used if your configuration has the option "stepLimiter+specialCuts+specialControls" setted in the TG4RunConfiguration. I tested the trunk version and using the macro/qa/QAmacro_sim_G4.C and get the following:

as it is:

-I- PndStack: Number of primaries = 23
Total number of particles = 11514
Number of tracks in output = 1938


now set the cutb in SetCuts.C to 1.0E-5

-I- PndStack: Number of primaries = 23
Total number of particles = 22269
Number of tracks in output = 3967



so it seems to work! can you please control your g4Config.C ?

regards

Mohammad






 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GEANT3: of energy loss and delta rays
Next Topic: elastic neutron scattering in Geant3
Goto Forum:
  


Current Time: Sat Jun 15 22:21:03 CEST 2024

Total time taken to generate the page: 0.00980 seconds