Geant4 Cross Reference |
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 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 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 cente 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 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 66 /analysis/h2/set 2 100 -5 5 mm none linear 100 67 /analysis/h2/set 3 100 -5 5 mm none linear 100 68 /analysis/h2/set 5 120 0 360 deg none linear 6 69 # 70 ##/control/execute vis.mac 71 ##/tracking/verbose 1 72 # 73 /run/printProgress 10000 74 # 75 /run/beamOn 100000