parameter[e_tot] = 15e6 parameter[geometry] = closed parameter[particle] = electron ldl = 0.20 lds = 0.05 lqf = 0.10 lqd = 0.10 ang = pi/21.0 g = 3.5 tdl = 2.0*atan(ldl*sin(0.5*ang)/(lds+ldl*cos(0.5*ang))) tds = 2.0*atan(lds*sin(0.5*ang)/(ldl+lds*cos(0.5*ang))) r = 0.5*ldl/sin(0.5*tdl) dlh: sbend, l=0.5*r*tdl, g=1.0/r, g_err=-1.0/r ds: sbend, l=r*tds, g=1.0/r, g_err=-1.0/r qf: sbend, field_master=t, l=lqf, b_field=0.0, b1_gradient=-g qd: sbend, field_master=t, l=lqd, b_field=0.0, b1_gradient=g, b_field_err=-2.0*sin(0.5*ang)*beginning[p0c]/(c_light*lqd) - g/cos(0.5*ang)*(0.5*lqf*sin(0.5*(tdl-tds))+0.5*lqd*sin(0.5*ang)+r*sin(0.5*tdl)*sin(0.5*tds)) md1 : marker, superimpose, ref=qd, ref_origin=beginning, offset=1*lqd/8 md2 : marker, superimpose, ref=qd, ref_origin=beginning, offset=2*lqd/8 md3 : marker, superimpose, ref=qd, ref_origin=beginning, offset=3*lqd/8 md4 : marker, superimpose, ref=qd, ref_origin=beginning, offset=4*lqd/8 md5 : marker, superimpose, ref=qd, ref_origin=beginning, offset=5*lqd/8 md6 : marker, superimpose, ref=qd, ref_origin=beginning, offset=6*lqd/8 md7 : marker, superimpose, ref=qd, ref_origin=beginning, offset=7*lqd/8 mf1 : marker, superimpose, ref=qf, ref_origin=beginning, offset=1*lqf/8 mf2 : marker, superimpose, ref=qf, ref_origin=beginning, offset=2*lqf/8 mf3 : marker, superimpose, ref=qf, ref_origin=beginning, offset=3*lqf/8 mf4 : marker, superimpose, ref=qf, ref_origin=beginning, offset=4*lqf/8 mf5 : marker, superimpose, ref=qf, ref_origin=beginning, offset=5*lqf/8 mf6 : marker, superimpose, ref=qf, ref_origin=beginning, offset=6*lqf/8 mf7 : marker, superimpose, ref=qf, ref_origin=beginning, offset=7*lqf/8 cell: line=(dlh,qf,ds,qd,dlh)