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