# Script file: tmag.s # # Script file for testing particles in magnets. One GeV protons (with # momentum spread of 0.1) travel through equal and opposite dipoles, where # they are spread out, but emerge along the x-axis. They then enter a tilted # cylinder, where they are trapped inside. # Define universe: # col mat xmin xmax ymin ymax zmin zmax u 99 00 -10. +10. -10. +10. -10. +10. # Define objects: # num/name shp col mat det bty/mg pos-(x,y,z) siz-(1,2,3) ang-(a,b,c) o 01 det1 box 01 00 1 d -0.2 -5 0 0 2. 5. 2. 0 0 0 o 02 det2 box 01 00 1 d +0.2 -1 0 0 2. 5. 2. 0 0 0 o 03 det3 cyl 01 00 1 d 2.0 +5 1 1 0. 2. 5. 0 70 0 # Define generator: # num prt flg pos-(x,y,z) mom-(x,y,z) delmom g 01 10 0 -9.0 -1.0 +0.0 1.00 0.00 0.00 0.10