Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/eventgenerator/exgps/macros/test30.mac is written in an unsupported language. File is not indexed.

0001 # test30 : 1D accelerator beam
0002 #
0003 /run/initialize
0004 #
0005 /gps/particle proton
0006 
0007 # source
0008 /gps/pos/type Beam
0009 # the incident surface is in the y-z plane
0010 /gps/pos/rot1 0 1 0
0011 /gps/pos/rot2 0 0 1
0012 #
0013 # the beam spot is centered at the origin and is 
0014 # of 1d gaussian shape with a 3mm central plateau
0015 /gps/pos/shape Circle 
0016 /gps/pos/centre 0. 0. 0. mm
0017 /gps/pos/radius 3. mm
0018 /gps/pos/sigma_r .2 mm
0019 
0020 # angular distribution
0021 # the beam is travelling along the x-axis with 5 degrees dispersion
0022 /gps/ang/rot1 0 0 1
0023 /gps/ang/rot2 0 1 0
0024 /gps/ang/type beam1d  
0025 /gps/ang/sigma_r 5. deg
0026 
0027 # energy distribution  
0028 # the beam energy is in gaussian profile centered at 400 MeV
0029 /gps/ene/type Gauss
0030 /gps/ene/mono 400 MeV
0031 /gps/ene/sigma 50. MeV
0032 
0033 #
0034 # commands below are independent of gps
0035 #
0036 /analysis/setFileName test30
0037 /analysis/h1/set 1 100 200 800 MeV
0038 /analysis/h2/set 1 100 -5 5 mm none linear 100 -5 5 mm none linear #x-y
0039 /analysis/h2/set 2 100 -5 5 mm none linear 100 -5 5 mm none linear #y-z
0040 /analysis/h2/set 3 100 -5 5 mm none linear 100 -5 5 mm none linear #z-x
0041 /analysis/h2/set 5 120 0 360 deg none linear 60 60 120 deg none linear
0042 #
0043 #/control/execute vis.mac
0044 #/tracking/verbose 1
0045 #
0046 /run/printProgress 10000
0047 #
0048 /run/beamOn 100000