import pylatt as latt BH = latt.bend('BH', L=1.4, angle=0.056099868814, e1=0.028049934407, e2=0.028049934407, K1=-0.220496, K2=0) DB = latt.drif('DB', L=0.125) M1 = latt.drif('M1', L=0) Q1 = latt.quad('Q1', L=0.4, K1=1.10271) Q2 = latt.quad('Q2', L=0.4, K1=1.26667) Q3 = latt.quad('Q3', L=0.4, K1=0.8611387) Q4 = latt.quad('Q4', L=0.4, K1=1.537522) Q5 = latt.quad('Q5', L=0.4, K1=-1.031027) SD = latt.sext('SD', L=0.2, K2=-1.0) SF = latt.sext('SF', L=0.15, K2=1.0) D = latt.drif('D', L=0.0) D1 = latt.drif('D1', L=0.3) D2 = latt.drif('D2', L=0.4) D3 = latt.drif('D3', L=0.6) D4 = latt.drif('D4', L=1.3) D5 = latt.drif('D5', L=1.82) D6 = latt.drif('D6', L=3.0) D7 = latt.drif('D7', L=0.2851669) DL = latt.drif('DL', L=7.95) DD1 = latt.drif('DD1', L=0.15) M2 = latt.drif('M2', L=0) M3 = latt.drif('M3', L=0) M4 = latt.drif('M4', L=0)
import pylatt as latt QM3 = latt.quad('QM3', L=0.1, K1=-4.962) QM2 = latt.quad('QM2', L=0.25, K1=6.266) QM1 = latt.quad('QM1', L=0.15, K1=-6.584737) DMS = latt.drif('DMS', L=2.692) DM2 = latt.drif('DM2', L=0.1) DMON = latt.drif('DMON', L=0.05) DOC = latt.drif('DOC', L=0.05) DM1 = latt.drif('DM1', L=0.1) DME = latt.drif('DME', L=0.3) DNVB = latt.drif('DNVB', L=0.01) DNM1 = latt.drif('DNM1', L=0.05) DXM = latt.drif('DXM', L=0.218) DNM2 = latt.drif('DNM2', L=0.15) OXX_M = latt.drif('OXX_M', L=0) #258.8591) OXY_M = latt.drif('OXY_M', L=0) #340.7881) OYY_M = latt.drif('OYY_M', L=0) #1068.1094) OCXX = latt.drif('OCXX', L=0) #67.4915) OCXX2 = latt.drif('OCXX2', L=0) #141.264) CH = latt.kick('CH', L=0) CV = latt.kick('CV', L=0) MON = latt.moni('MON', L=0) BNOM = latt.drif('BNOM', L=0) SXX_MH = latt.sext('SXX_MH', L=0.05, K2=523.1522179999999) SXY_MH = latt.sext('SXY_MH', L=0.05, K2=-543.428944) SYY_MH = latt.sext('SYY_MH', L=0.05, K2=309.45156) SDX = latt.sext('SDX', L=0.1, K2=-693.055549) SFXH = latt.sext('SFXH', L=0.05, K2=826.834506) SD = latt.sext('SD', L=0.1, K2=-563.1248409999999) SFH = latt.sext('SFH', L=0.05, K2=689.439306)
K2=0.0) b1g5c01b = latt.bend("b1g5c01b", L=2.62, angle=0.10471975512, e1=0.05236, e2=0.05236, K1=0.0, K2=0.0) b1g5c30b = latt.bend("b1g5c30b", L=2.62, angle=0.10471975512, e1=0.05236, e2=0.05236, K1=0.0, K2=0.0) D0001 = latt.drif("D0001", L=0.0) D0002 = latt.drif("D0002", L=0.661071) D0003 = latt.drif("D0003", L=1.23) D0004 = latt.drif("D0004", L=0.659416) D0005 = latt.drif("D0005", L=0.166) D0006 = latt.drif("D0006", L=0.1485) D0007 = latt.drif("D0007", L=0.1255) D0008 = latt.drif("D0008", L=0.328) D0009 = latt.drif("D0009", L=0.184) D0010 = latt.drif("D0010", L=0.186) D0011 = latt.drif("D0011", L=0.166) D0012 = latt.drif("D0012", L=0.1137) D0013 = latt.drif("D0013", L=0.4663) D0014 = latt.drif("D0014", L=0.9765) D0015 = latt.drif("D0015", L=0.2015) D0016 = latt.drif("D0016", L=0.654)
K2=0.0) b2g3c03a = latt.bend("b2g3c03a", L=2.62, angle=0.10471975512, e1=0.05236, e2=0.05236, K1=0.0, K2=0.0) b2g5c03b = latt.bend("b2g5c03b", L=2.62, angle=0.10471975512, e1=0.05236, e2=0.05236, K1=0.0, K2=0.0) D0001 = latt.drif("D0001", L=0.0) D0002 = latt.drif("D0002", L=0.661071) D0003 = latt.drif("D0003", L=1.23) D0004 = latt.drif("D0004", L=0.659416) D0005 = latt.drif("D0005", L=0.166) D0006 = latt.drif("D0006", L=0.1485) D0007 = latt.drif("D0007", L=0.1255) D0008 = latt.drif("D0008", L=0.328) D0009 = latt.drif("D0009", L=0.184) D0010 = latt.drif("D0010", L=0.186) D0011 = latt.drif("D0011", L=0.166) D0012 = latt.drif("D0012", L=0.1137) D0013 = latt.drif("D0013", L=0.4663) D0014 = latt.drif("D0014", L=0.9765) D0015 = latt.drif("D0015", L=0.2015) D0016 = latt.drif("D0016", L=0.654)
# === Element definition: hscraper1n = latt.aper("hscraper1n",L=0.0,aper=[-0.05,1.0,-1.0,1.0]) hscraper1p = latt.aper("hscraper1p",L=0.0,aper=[-1.0,0.05,-1.0,1.0]) hscraper2n = latt.aper("hscraper2n",L=0.0,aper=[-0.05,1.0,-1.0,1.0]) hscraper2p = latt.aper("hscraper2p",L=0.0,aper=[-1.0,0.05,-1.0,1.0]) hscraperxn = latt.aper("hscraperxn",L=0.0,aper=[-0.05,1.0,-1.0,1.0]) hscraperxp = latt.aper("hscraperxp",L=0.0,aper=[-1.0,0.05,-1.0,1.0]) vscraper1n = latt.aper("vscraper1n",L=0.0,aper=[-1.0,1.0,-0.0125,1.0]) vscraper1p = latt.aper("vscraper1p",L=0.0,aper=[-1.0,1.0,-1.0,0.0125]) vscraper2n = latt.aper("vscraper2n",L=0.0,aper=[-1.0,1.0,-0.0125,1.0]) vscraper2p = latt.aper("vscraper2p",L=0.0,aper=[-1.0,1.0,-1.0,0.0125]) b1g3c01a = latt.bend("b1g3c01a",L=2.62,angle=0.10471975512,e1=0.05236,e2=0.05236,K1=0.0,K2=0.0) b1g3c30a = latt.bend("b1g3c30a",L=2.62,angle=0.10471975512,e1=0.05236,e2=0.05236,K1=0.0,K2=0.0) b1g5c01b = latt.bend("b1g5c01b",L=2.62,angle=0.10471975512,e1=0.05236,e2=0.05236,K1=0.0,K2=0.0) b1g5c30b = latt.bend("b1g5c30b",L=2.62,angle=0.10471975512,e1=0.05236,e2=0.05236,K1=0.0,K2=0.0) D0001 = latt.drif("D0001",L=0.0) D0002 = latt.drif("D0002",L=0.661071) D0003 = latt.drif("D0003",L=1.23) D0004 = latt.drif("D0004",L=0.325206) D0005 = latt.drif("D0005",L=0.33421) D0006 = latt.drif("D0006",L=0.085) D0007 = latt.drif("D0007",L=0.081) D0008 = latt.drif("D0008",L=0.1485) D0009 = latt.drif("D0009",L=0.1255) D0010 = latt.drif("D0010",L=0.328) D0011 = latt.drif("D0011",L=0.184) D0012 = latt.drif("D0012",L=0.186) D0013 = latt.drif("D0013",L=0.07602) D0014 = latt.drif("D0014",L=0.08998) D0015 = latt.drif("D0015",L=0.1137) D0016 = latt.drif("D0016",L=0.2848)
import pylatt as latt IDAP = latt.aper('IPAP', L = 0) AP = latt.aper('AP', L = 0) PAAP = latt.aper('PAAP', L = 0) D11 = latt.drif('D11', L = 2.908094200746698) PAND = latt.drif('PAND', L = -0.002) PAPD = latt.drif('PAPD', L = 0.002) D12 = latt.drif('D12', L = 0.3269356957774605) D12N = latt.drif('D12N', L = -0.1634678478887303) SQNL = latt.drif('SQNL', L = -0.025) D12P = latt.drif('D12P', L = 0.1634678478887303) D13 = latt.drif('D13', L = 0.05000118923799313) D21A = latt.drif('D21A', L = 0.09156467538992034) D21B = latt.drif('D21B', L = 0.1252693874278959) D24 = latt.drif('D24', L = 0.2268144480683415) D25 = latt.drif('D25', L = 0.2051282413324639) D26 = latt.drif('D26', L = 0.2012262139391736) D27 = latt.drif('D27', L = 0.2436039821972246) D27N = latt.drif('D27N', L = -0.1218019910986123) D27P = latt.drif('D27P', L = 0.1218019910986123) D28 = latt.drif('D28', L = 0.1275492814241052) D29 = latt.drif('D29', L = 0.05162992911127093) D51 = latt.drif('D51', L = 0.06969128373406024) D52 = latt.drif('D52', L = 0.2207281062566084) D53 = latt.drif('D53', L = 0.1258463755224618) D54 = latt.drif('D54', L = 0.2760649948176322) D55A = latt.drif('D55A', L = 0.0630324974088161) WIGH = latt.drif('WIGH', L = 0.075) D55B = latt.drif('D55B', L = 0.0630324974088161) S01A_P0 = latt.moni('S01A_P0', L = 0)
import pylatt as latt DCAV = latt.drif('DCAV', L=1.5) DA1AW = latt.drif('DA1AW', L=0.6792386) DA1B = latt.drif('DA1B', L=0.12406665) DA2A = latt.drif('DA2A', L=0.11530525) DCOR = latt.drif('DCOR', L=0.075) DA2B = latt.drif('DA2B', L=0.11773445) DA3A = latt.drif('DA3A', L=0.20889925) DA3B = latt.drif('DA3B', L=0.05414045) DM4 = latt.drif('DM4', L=0.21584572) DA5A = latt.drif('DA5A', L=0.11397747) DA5B = latt.drif('DA5B', L=0.108563) DA6A = latt.drif('DA6A', L=0.1266) DA6B = latt.drif('DA6B', L=0.90476828) DA7A = latt.drif('DA7A', L=0.1106966) DA7B = latt.drif('DA7B', L=0.06311325) DM7 = latt.drif('DM7', L=0.17380985) DA6C = latt.drif('DA6C', L=0.096) DA6D = latt.drif('DA6D', L=0.93537) DA5C = latt.drif('DA5C', L=0.051845) DA5D = latt.drif('DA5D', L=0.17069547) DA8A = latt.drif('DA8A', L=0.33735947) DA8B = latt.drif('DA8B', L=0.12848625) DA9A = latt.drif('DA9A', L=0.10930525) DA9B = latt.drif('DA9B', L=0.13730525) DA10A = latt.drif('DA10A', L=0.12393965) DA10B1 = latt.drif('DA10B1', L=0.847) DA10B2 = latt.drif('DA10B2', L=0.858) DA10B3 = latt.drif('DA10B3', L=0.311) DA10B4 = latt.drif('DA10B4', L=0.2599863)