GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Monte Carlo Engines » Random seed in Geant4?
Random seed in Geant4? [message #12201] Tue, 05 July 2011 13:39 Go to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Hi,
launching some Geant4 simulations have noticed the following message:

Adding SpecialPhysicsList stepLimiter+specialCuts+
Visualization Manager instantiating with verbosity "warnings (3)"...
Geant4 has been created.
 -I g4Config() using g4conf  macro: /home/spataro/may11/pandaroot/gconfig/g4config.in
***** COMMAND NOT FOUND </random/SetSeeds 1309865603  1309865603 > *****
SetCuts Macro: Setting Processes..
SetCuts Macro: Setting cuts..
++++  TG4Warning:  ++++
    TG4G3CutVector::CheckCutValue:
    PPCUTM cut value 1 MeV is lower than 2*e_mass.
    The cut will be ignored.
+++++++++++++++++++++++


I suppose something has changed with the new G4 version, that should be fixed in the code.
Re: Random seed in Geant4? [message #13186 is a reply to message #12201] Tue, 13 March 2012 11:04 Go to previous messageGo to next message
Ivana Hrivnacova
Messages: 6
Registered: March 2012
occasional visitor
From: 134.158.93*
The command is not:
/random/SetSeeds 1309865603 1309865603
but
/random/setSeeds 1309865603 1309865603

Ivana
Re: Random seed in Geant4? [message #13189 is a reply to message #13186] Tue, 13 March 2012 15:28 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Dear Ivana,
thanks for taking a look. I have fixed it.

Meanwhile I have also the following message:

 -I g4Config() using g4conf  macro: /home/spataro/jan12/pandaroot/gconfig/g4config.in
***** Illegal application state </run/particle/dumpCutValues> *****

***** Batch is interrupted!! *****


Coming from a:

/run/particle/dumpCutValues


line of the g4config.in. Is this the line making load the cuts a-la-geant3 into g4? What is wrong there?
Thanks in advance.
Re: Random seed in Geant4? [message #13192 is a reply to message #13189] Tue, 13 March 2012 16:01 Go to previous message
Ivana Hrivnacova
Messages: 6
Registered: March 2012
occasional visitor
From: 134.158.93*
Hi Stefano,

The allowed application states for this command were changed in Geant4 9.5, you can now call it only in Idle state, what means after initialization of MC.
So if you want to keep this command in your configuration file, you have to call it after
yourApplication->InitMC();

See geant4_vmc/example/E06 and g4config2.in macro, which is called at Idle state of Geant4.

Best regards,

Ivana
Previous Topic: dipole field in Geant4
Next Topic: How to setup random seed?
Goto Forum:
  


Current Time: Tue Nov 26 00:22:34 CET 2024

Total time taken to generate the page: 0.00807 seconds