Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/advanced/amsEcal/rndmSeed.mac is written in an unsupported language. File is not indexed.

0001 #
0002 # This macro illustrates how to save random number seeds
0003 #
0004 /control/verbose 2
0005 /run/verbose 2
0006 #
0007 /ams/phys/addPhysics  local
0008 /run/setCut 1 mm
0009 #
0010 /run/initialize
0011 #
0012 /ams/gun/setDefault
0013 /gun/particle mu+
0014 /gun/energy 1 GeV
0015 /ams/gun/beam 1 cm
0016 #
0017 # inform the RunManager to systematically save the seed
0018 /random/setSavingFlag 1
0019 #
0020 /control/shell mkdir random
0021 #
0022 /run/beamOn 12
0023 /control/shell mv ./currentRun.rndm ./random/seed0
0024 #
0025 /run/beamOn 23
0026 /control/shell mv ./currentRun.rndm ./random/seed1
0027 #
0028 /run/beamOn 34
0029 /control/shell mv ./currentRun.rndm ./random/seed2
0030 #
0031 /run/beamOn 45
0032 /control/shell mv ./currentRun.rndm ./random/seed3
0033 #
0034 /run/beamOn 56
0035 /control/shell mv ./currentRun.rndm ./random/seed4
0036 #
0037 /run/beamOn 65
0038 /control/shell mv ./currentRun.rndm ./random/seed5
0039 #
0040 /run/beamOn 54
0041 /control/shell mv ./currentRun.rndm ./random/seed6
0042 #
0043 /run/beamOn 43
0044 /control/shell mv ./currentRun.rndm ./random/seed7
0045 #
0046 /run/beamOn 32
0047 /control/shell mv ./currentRun.rndm ./random/seed8
0048 #
0049 /run/beamOn 21
0050 /control/shell mv ./currentRun.rndm ./random/seed9
0051 #
0052 # restart run 1 
0053 #
0054 /random/resetEngineFrom ./random/seed1
0055 /run/beamOn 23