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.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

  1 # test31 : two beams in a generator
  2 #
  3 /run/initialize
  4 #
  5 # beam 1
  6 # default intensity is 1 now change to 5.
  7 /gps/source/intensity 5.
  8 #
  9 /gps/particle proton
 10 /gps/pos/type Beam
 11 #
 12 # the incident surface is in the y-z plane
 13 /gps/pos/rot1 0 1 0
 14 /gps/pos/rot2 0 0 1
 15 #
 16 # the beam spot is centered at the origin 
 17 # it is 1D gaussian shape with a 1 mm central plateau
 18 /gps/pos/shape Circle 
 19 /gps/pos/centre 0. 0. 0. mm
 20 /gps/pos/radius 1. mm
 21 /gps/pos/sigma_r .2 mm
 22 #
 23 # the beam is travelling along the x_axis with 5 degrees dispersion
 24 /gps/ang/rot1 0 0 1
 25 /gps/ang/rot2 0 1 0
 26 /gps/ang/type beam1d  
 27 /gps/ang/sigma_r 5. deg
 28 #  
 29 # the beam energy is in gaussian profile centered at 400 MeV
 30 /gps/ene/type Gauss
 31 /gps/ene/mono 400 MeV
 32 /gps/ene/sigma 50. MeV
 33 
 34 # beam 2
 35 # twice the instensity of beam 1
 36 /gps/source/add 10.
 37 #
 38 # this is a electron beam
 39 /gps/particle e-
 40 /gps/pos/type Beam
 41 #
 42 # the beam spot is  2D gaussian profile with a 1x2 mm2 central plateau
 43 # it is in the x-y plane centred at the orgin
 44 /gps/pos/centre 0. 0. 0. mm
 45 /gps/pos/halfx 0.5 mm
 46 /gps/pos/halfy 1. mm
 47 /gps/pos/sigma_x 0.1 mm
 48 /gps/pos/sigma_y 0.2 mm
 49 #
 50 # the beam is travelling along -z_axis
 51 /gps/ang/type beam2d
 52 /gps/ang/sigma_x 2. deg
 53 /gps/ang/sigma_y 1. deg
 54 #
 55 # gaussian energy profile 
 56 /gps/ene/type Gauss
 57 /gps/ene/mono 600 MeV
 58 /gps/ene/sigma 50. MeV
 59 
 60 #
 61 # commands below are independent of gps
 62 #
 63 /analysis/setFileName test31
 64 /analysis/h1/set 1 100 200 800 MeV
 65 /analysis/h2/set 1 100 -5 5 mm none linear 100 -5 5 mm none linear #x-y
 66 /analysis/h2/set 2 100 -5 5 mm none linear 100 -5 5 mm none linear #y-z
 67 /analysis/h2/set 3 100 -5 5 mm none linear 100 -5 5 mm none linear #z-x
 68 /analysis/h2/set 5 120 0 360 deg none linear 60 60 120 deg none linear
 69 #
 70 ##/control/execute vis.mac
 71 ##/tracking/verbose 1
 72 #
 73 /run/printProgress 10000
 74 #
 75 /run/beamOn 100000