utransport title test first arc ds0: drift, l=1 ds1: drift, l=3 ds2: drift, l=0.5 bs1: sbend, l=1, angle=20, e1=0, e2=20, tilt=180 bs2: sbend, l=1, angle=20, e1=0, e2=0 bs3: sbend, l=1, angle=20, e1=0, e2=0 bs4: sbend, l=1, angle=20, e1=20, e2=0, tilt=180 dm1: drift, l=0.5 dm2: drift, l=1 qm1: quadrupole, l=0.5, k1= 1 qm2: quadrupole, l=0.5, k1=-1 qm3: quadrupole, l=0.5, k1= 1 qm4: quadrupole, l=0.5, k1=-1 qm5: quadrupole, l=0.5, k1= 1 qm6: quadrupole, l=0.5, k1=-1 mq1: quadrupole, l=0.5, k1= 1 mq2: quadrupole, l=0.5, k1=-1 mq3: quadrupole, l=0.5, k1= 1 mq4: quadrupole, l=0.5, k1=-1 mq5: quadrupole, l=0.5, k1= 1 mq6: quadrupole, l=0.5, k1=-1 m1: line=(dm1, qm1, dm2, & qm2, dm2, & qm3, dm2, & qm4, dm2, & qm5, dm2, & qm6, dm1) m2: line=(dm1, mq6, dm2, & mq5, dm2, & mq4, dm2, & mq3, dm2, & mq2, dm2, & mq1, dm1) q1a: quadsext, l=0.25, k1= 0.25, k2= 0.0001 q1b: quadsext, l=0.25, k1= 0.25, k2= 0.0001 q1c: quadsext, l=0.25, k1= 0.25, k2= 0.0001 q1d: quadsext, l=0.25, k1= 0.25, k2= 0.0001 q1e: quadsext, l=0.25, k1= 0.25, k2= 0.0001 q2a: quadsext, l=0.25, k1=-0.25, k2=-0.0001 q2b: quadsext, l=0.25, k1=-0.25, k2=-0.0001 q2c: quadsext, l=0.25, k1=-0.25, k2=-0.0001 d1: drift, l=0.25 b1: sbend, l=1, angle=5, e1=2.5, e2=2.5 cell(qa,qb,qc): line=(qa, d1, b1, d1, qb, qb, d1, b1, d1, qc) fit1: marker fit2: marker arc: line=(fit1, cell(q1b,q2a,q1a), fit2, & cell(q1a,q2b,q1a),& cell(q1a,q2a,q1d),& cell(q1d,q2a,q1a),& cell(q1a,q2b,q1a),& cell(q1a,q2a,q1b),& cell(q1b,q2a,q1a),& cell(q1a,q2b,q1a),& cell(q1a,q2a,q1d),& cell(q1d,q2a,q1a),& cell(q1a,q2b,q1a),& cell(q1a,q2a,q1b),& cell(q1b,q2a,q1a),& cell(q1a,q2b,q1a),& cell(q1a,q2a,q1d),& cell(q1d,q2a,q1a),& cell(q1a,q2b,q1a),& cell(q1a,q2a,q1b)) sprd: line=(ds0, bs1, ds1, bs2, ds2) recm: line=(ds2, bs3, ds1, bs4, ds0) recirc: line=(sprd, m1, arc, m2, recm) use, cell(q1a,q2a,q1a) dimat matrix 2 -1, machine 1 2 1 0 1 1 1 0 0 0 0 0 0 0 0 0, least 3 2 2 2 10 0 0 0 5 0 0 0 q1a k1 0.001 q2a k1 0.001 2 0.1666666666666667 1 12 0.1666666666666667 1 2 q1a 4 q1b k1 1 q1c k1 1 q1d k1 1 q1e k1 1 q2a 2 q2b k1 1 q2c k1 1, matrix 2 -1, machine 1 2 1 0 1 1 1 0 0 0 0 0 0 0 0 0; use, recirc newbeam matrix 2 -1, machine 1 2 1 0 1 1 1 5 0 0 0 10 0 0 0 0, set fit points 2 fit1 fit2 least 3 2 8 8 5 0 0 0 10 0 0 0 qm1 k1 0.001 qm2 k1 0.001 qm3 k1 0.001 qm4 k1 0.001 qm5 k1 0.001 qm6 k1 0.001 bs2 e1 1 ds1 l 1 160 0 1 260 0 1 1033 0 1 34 0 1 1031 0 1 1032 0 1 1036 0 1 1037 0 1 7 bs2 3 bs2 e2 1 bs3 e1 1 bs3 e2 1 qm1 1 mq1 k1 1 qm2 1 mq2 k1 1 qm3 1 mq3 k1 1 qm4 1 mq4 k1 1 qm5 1 mq5 k1 1 qm6 1 mq6 k1 1, matrix 2 -1, machine 1 2 1 0 1 1 1 5 0 0 0 10 0 0 0 0, least 3 2 10 11 5 0 0 0 10 0 0 0 mq1 k1 0.001 mq2 k1 0.001 mq3 k1 0.001 mq4 k1 0.001 mq5 k1 0.001 mq6 k1 0.001 q1a k1 0.001 q1b k1 0.001 q2a k1 0.001 q2b k1 0.001 160 0 1 260 0 1 560 1.45 1 21 5 1 22 0 1 23 0 1 24 0 1 26 10 1 27 0 1 160 0 1 260 0 1 1 q1b 1 q1d k1 1, matrix 2 -1, machine 1 2 1 0 1 1 1 5 0 0 0 10 0 0 0 0, least 3 2 4 6 5 0 0 0 10 0 0 0 q1a k2 0.001 q1b k2 0.001 q1d k2 0.001 q2a k2 0.001 166 0 1 266 0 1 566 0 1 166 0 1 266 0 1 566 0 1 0, matrix 2 -1, beam definition 0 5 0 0 0 50e-6 10 0 0 0 50e-6 0.04 0.03 1000, detailed analysis 1 1 2 0 0 0 0 1.0e-06 1.0e-06 1.0e-06 1.0e-06 5 0 0 0 10 0 0 0 13 0 -0.06 -0.05 -0.04 -0.03 -0.02 -0.01 0 0.01 0.02 0.03 0.04 0.05 0.06 -1, line geometric aberrations 5 0 10 0 0 0 0 0 0.06 1 50 1 1 -1 0 50 50, line geometric aberrations 5 0 10 0 0 0 0 0 0 1 50 1 1 -1 0 50 50, line geometric aberrations 5 0 10 0 0 0 0 0 -0.06 1 50 1 1 -1 0 50 50, seed 123456789, generate throngs of particles 3 3 3 3 3 3 3 1 10000 0 0 0 0 0 0, particle distribution analysis for the masses 3, tracking of throngs of particles 1 -2 0 1 0 14 -0.10 0.10 -0.005 0.005 -0.10 0.10 -0.005 0.005 101 51, particle distribution analysis for the masses 3; stop