Warning, /geant4/examples/extended/eventgenerator/exgps/macros/test31.mac is written in an unsupported language. File is not indexed.
0001 # test31 : two beams in a generator
0002 #
0003 /run/initialize
0004 #
0005 # beam 1
0006 # default intensity is 1 now change to 5.
0007 /gps/source/intensity 5.
0008 #
0009 /gps/particle proton
0010 /gps/pos/type Beam
0011 #
0012 # the incident surface is in the y-z plane
0013 /gps/pos/rot1 0 1 0
0014 /gps/pos/rot2 0 0 1
0015 #
0016 # the beam spot is centered at the origin
0017 # it is 1D gaussian shape with a 1 mm central plateau
0018 /gps/pos/shape Circle
0019 /gps/pos/centre 0. 0. 0. mm
0020 /gps/pos/radius 1. mm
0021 /gps/pos/sigma_r .2 mm
0022 #
0023 # the beam is travelling along the x_axis with 5 degrees dispersion
0024 /gps/ang/rot1 0 0 1
0025 /gps/ang/rot2 0 1 0
0026 /gps/ang/type beam1d
0027 /gps/ang/sigma_r 5. deg
0028 #
0029 # the beam energy is in gaussian profile centered at 400 MeV
0030 /gps/ene/type Gauss
0031 /gps/ene/mono 400 MeV
0032 /gps/ene/sigma 50. MeV
0033
0034 # beam 2
0035 # twice the instensity of beam 1
0036 /gps/source/add 10.
0037 #
0038 # this is a electron beam
0039 /gps/particle e-
0040 /gps/pos/type Beam
0041 #
0042 # the beam spot is 2D gaussian profile with a 1x2 mm2 central plateau
0043 # it is in the x-y plane centred at the orgin
0044 /gps/pos/centre 0. 0. 0. mm
0045 /gps/pos/halfx 0.5 mm
0046 /gps/pos/halfy 1. mm
0047 /gps/pos/sigma_x 0.1 mm
0048 /gps/pos/sigma_y 0.2 mm
0049 #
0050 # the beam is travelling along -z_axis
0051 /gps/ang/type beam2d
0052 /gps/ang/sigma_x 2. deg
0053 /gps/ang/sigma_y 1. deg
0054 #
0055 # gaussian energy profile
0056 /gps/ene/type Gauss
0057 /gps/ene/mono 600 MeV
0058 /gps/ene/sigma 50. MeV
0059
0060 #
0061 # commands below are independent of gps
0062 #
0063 /analysis/setFileName test31
0064 /analysis/h1/set 1 100 200 800 MeV
0065 /analysis/h2/set 1 100 -5 5 mm none linear 100 -5 5 mm none linear #x-y
0066 /analysis/h2/set 2 100 -5 5 mm none linear 100 -5 5 mm none linear #y-z
0067 /analysis/h2/set 3 100 -5 5 mm none linear 100 -5 5 mm none linear #z-x
0068 /analysis/h2/set 5 120 0 360 deg none linear 60 60 120 deg none linear
0069 #
0070 ##/control/execute vis.mac
0071 ##/tracking/verbose 1
0072 #
0073 /run/printProgress 10000
0074 #
0075 /run/beamOn 100000