Geant4 Cross Reference |
1 # test01 1 # test01 2 # 2 # 3 /run/initialize 3 /run/initialize 4 # 4 # 5 /gps/particle proton 5 /gps/particle proton 6 6 7 /gps/pos/type Point 7 /gps/pos/type Point 8 /gps/pos/centre 1. 2. 1. cm 8 /gps/pos/centre 1. 2. 1. cm 9 # the above two can be replaced by a single co 9 # the above two can be replaced by a single command 10 # /gps/position 1. 2. 1. cm 10 # /gps/position 1. 2. 1. cm 11 # 11 # 12 /gps/ang/type iso 12 /gps/ang/type iso 13 /gps/energy 2. MeV 13 /gps/energy 2. MeV 14 14 15 # commands below are independent of gps 15 # commands below are independent of gps 16 # 16 # 17 /analysis/setFileName test01 17 /analysis/setFileName test01 18 /analysis/h1/set 3 110 -1.1 1.1 none #cos(the 18 /analysis/h1/set 3 110 -1.1 1.1 none #cos(theta) 19 /analysis/h1/set 4 130 -15 375 deg #phi 19 /analysis/h1/set 4 130 -15 375 deg #phi 20 /analysis/h2/setX 4 120 0 360 deg << 20 /analysis/h2/set 4 120 0 360 deg none linear 100 -1 1 none none linear 21 /analysis/h2/setY 4 100 -1 1 none << 22 # 21 # 23 ###/control/execute vis.mac 22 ###/control/execute vis.mac 24 # 23 # 25 /run/printProgress 10000 24 /run/printProgress 10000 26 # 25 # 27 /run/beamOn 100000 26 /run/beamOn 100000