Warning, /geant4/examples/extended/eventgenerator/exgps/macros/test34.mac is written in an unsupported language. File is not indexed.
0001 # test34 : two simultaneous sources in one generator
0002 #
0003 /run/initialize
0004 #
0005 # Source 1
0006 /gps/particle proton
0007 #
0008 # the incident surface is a disc in the y-z plane at -10 cm
0009 /gps/pos/type Plane
0010 /gps/pos/rot1 0 1 0
0011 /gps/pos/rot2 0 0 1
0012 /gps/pos/shape Circle
0013 /gps/pos/centre -10. 0. 0. cm
0014 /gps/pos/radius 10. cm
0015 #
0016 # angular distribution
0017 /gps/ang/type cos
0018 #
0019 # the proton energy is in gaussian profile centered at 2.5 MeV
0020 /gps/ene/type Gauss
0021 /gps/ene/mono 2.5 MeV
0022 /gps/ene/sigma 0.5 MeV
0023 #
0024 #
0025 # source #2
0026 /gps/source/add 1
0027 #
0028 # this is gamma source
0029 /gps/particle gamma
0030 #
0031 # the incident surface is a square in the x-y plane at 10 cm
0032 /gps/pos/type Plane
0033 /gps/pos/centre 0. 0. 10. cm
0034 /gps/pos/shape Square
0035 /gps/pos/halfx 2 cm
0036 /gps/pos/halfy 2 cm
0037 #
0038 # normal incident
0039 /gps/direction 0 0 -1
0040 #
0041 # mono energy
0042 /gps/energy 1 MeV
0043 #
0044 # both guns will be fired at the same time
0045 /gps/source/multiplevertex true
0046 #
0047 #
0048 # commands below are independent of gps
0049 #
0050 #
0051 /analysis/setFileName test34
0052 /analysis/h1/set 1 100 0 5 MeV
0053 /analysis/h2/set 1 100 -10 10 cm none linear 100 -10 10 cm none linear #x-y
0054 /analysis/h2/set 2 100 -10 10 cm none linear 100 -10 10 cm none linear #y-z
0055 /analysis/h2/set 3 100 -10 10 cm none linear 100 -10 10 cm none linear #z-x
0056 /analysis/h2/set 5 120 0 360 deg none linear 60 60 120 deg none linear
0057 #
0058 ##/control/execute vis.mac
0059 ##/tracking/verbose 1
0060 #
0061 /run/printProgress 10000
0062 #
0063 /run/beamOn 100000