Warning, /geant4/examples/extended/electromagnetic/TestEm4/rndmSeed.mac is written in an unsupported language. File is not indexed.
0001 #
0002 # This macro illustrates how to save and reset the random number seed
0003 #
0004 # inform the RunManager to systematically save the seed
0005 #
0006 /random/setSavingFlag 1
0007 #
0008 /run/printProgress 1
0009 #
0010 # run 0
0011 #
0012 /run/beamOn 7
0013 #look at what is saved
0014 /control/shell ls
0015 #
0016 # run 1
0017 #
0018 /run/beamOn
0019 #save the seed of this current run
0020 /random/saveThisRun
0021 /control/shell ls
0022 #
0023 # run 2
0024 #
0025 /run/beamOn 4
0026 #
0027 # run3 : restart run 2
0028 #
0029 /random/resetEngineFrom currentRun.rndm
0030 /run/beamOn 4
0031 #
0032 # run4 : restart run 1
0033 #
0034 /random/resetEngineFrom run1.rndm
0035 /run/beamOn