Example #1
0
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)
BN00 = latt.bend('BN00',
                 L=0.021832,
                 angle=0.005454,
                 e1=0,
                 e2=0.005454,
                 K1=0,
                 K2=0)
BN01 = latt.bend('BN01',
                 L=0.022967,
Example #2
0
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)
CH = latt.kick('CH', L=0)
Example #3
0
qh3g6c01b = latt.quad("qh3g6c01b", L=0.268, K1=-1.75355042529)
ql1g2c01a = latt.quad("ql1g2c01a", L=0.268, K1=-1.61785473561)
ql1g6c30b = latt.quad("ql1g6c30b", L=0.268, K1=-1.61785473561)
ql2g2c01a = latt.quad("ql2g2c01a", L=0.46, K1=1.76477357129)
ql2g6c30b = latt.quad("ql2g6c30b", L=0.46, K1=1.76477357129)
ql3g2c01a = latt.quad("ql3g2c01a", L=0.268, K1=-1.51868267756)
ql3g6c30b = latt.quad("ql3g6c30b", L=0.268, K1=-1.51868267756)
qm1g4c01a = latt.quad("qm1g4c01a", L=0.247, K1=-0.812234822773)
qm1g4c01b = latt.quad("qm1g4c01b", L=0.247, K1=-0.812234822773)
qm1g4c30a = latt.quad("qm1g4c30a", L=0.247, K1=-0.812234822773)
qm1g4c30b = latt.quad("qm1g4c30b", L=0.247, K1=-0.812234822773)
qm2g4c01a = latt.quad("qm2g4c01a", L=0.282, K1=1.22615465959)
qm2g4c01b = latt.quad("qm2g4c01b", L=0.282, K1=1.22615465959)
qm2g4c30a = latt.quad("qm2g4c30a", L=0.282, K1=1.22615465959)
qm2g4c30b = latt.quad("qm2g4c30b", L=0.282, K1=1.22615465959)
sh1 = latt.sext("sh1", L=0.2, K2=19.8329120997)
sh3 = latt.sext("sh3", L=0.2, K2=-5.85510841147)
sh4 = latt.sext("sh4", L=0.2, K2=-15.8209007067)
sl1 = latt.sext("sl1", L=0.2, K2=-13.2716060547)
sl2 = latt.sext("sl2", L=0.2, K2=35.6779214531)
sl3 = latt.sext("sl3", L=0.2, K2=-29.4608606061)
sm1a = latt.sext("sm1a", L=0.2, K2=-23.6806342393)
sm1b = latt.sext("sm1b", L=0.2, K2=-25.9460354618)
sm2 = latt.sext("sm2", L=0.25, K2=28.6431546915)

# === Beam Line sequence:
BL = [
    D0001, issp1d, D0002, isbu3, D0003, isbu4, D0004, sh1, D0005, qh1g2c30a,
    D0006, sqhg2c30a, sqhg2c30a, D0007, D0008, qh2g2c30a, D0009, sh3, D0010,
    qh3g2c30a, D0011, sh4, D0012, D0013, b1g3c30a, D0014, qm1g4c30a, D0015,
    sm1a, D0016, qm2g4c30a, D0017, sm2, D0018, qm2g4c30b, D0019, D0020, sm1b,
Example #4
0
File: p1.py Project: mpyliyj/sqmat
pl1g6c30b = latt.moni("pl1g6c30b",L=0.0)
pl2g2c01a = latt.moni("pl2g2c01a",L=0.0)
pl2g6c30b = latt.moni("pl2g6c30b",L=0.0)
pm1g4c01a = latt.moni("pm1g4c01a",L=0.0)
pm1g4c01b = latt.moni("pm1g4c01b",L=0.0)
pm1g4c30a = latt.moni("pm1g4c30a",L=0.0)
pm1g4c30b = latt.moni("pm1g4c30b",L=0.0)
qh1 = latt.quad("qh1",L=0.268,K1=-0.641957314648)
qh2 = latt.quad("qh2",L=0.46,K1=1.43673057073)
qh3 = latt.quad("qh3",L=0.268,K1=-1.75355042529)
ql1 = latt.quad("ql1",L=0.268,K1=-1.61785473561)
ql2 = latt.quad("ql2",L=0.46,K1=1.76477357129)
ql3 = latt.quad("ql3",L=0.268,K1=-1.51868267756)
qm1 = latt.quad("qm1",L=0.247,K1=-0.812234822773)
qm2 = latt.quad("qm2",L=0.282,K1=1.22615465959)
sh1 = latt.sext("sh1",L=0.2,K2=25.45121)
sh3 = latt.sext("sh3",L=0.2,K2=-12.88647)
sh4 = latt.sext("sh4",L=0.2,K2=-13.83242)
sl1 = latt.sext("sl1",L=0.2,K2=-0.4375179)
sl2 = latt.sext("sl2",L=0.2,K2=32.92057)
sl3 = latt.sext("sl3",L=0.2,K2=-27.11628)
sm1a = latt.sext("sm1a",L=0.2,K2=-26.21867845)
sm1b = latt.sext("sm1b",L=0.2,K2=-28.01658206)
sm2 = latt.sext("sm2",L=0.25,K2=30.69679902)
sqhg2c30a = latt.skew("sqhg2c30a",L=0.1,K1=0.0,tilt=0.785398163397)
sqmg4c01a = latt.skew("sqmg4c01a",L=0.1,K1=0.0,tilt=0.785398163397)

# === Beam Line sequence:
BL = [D0001, issp1d, D0002, isbu3, D0003, isbu4, D0004, fh2g1c30a, D0005, 
   sh1, D0006, ph1g2c30a, D0007, qh1, D0008, sqhg2c30a, ch1xg2c30a, ch1yg2c30a, 
   sqhg2c30a, D0009, hscraperxp, hscraperxn, D0010, qh2, D0011, sh3, D0012, 
Example #5
0
MS01A_Q7 = latt.drif('MS01A_Q7', L = 0)
MBPA = latt.drif('MBPA', L = 0)
MS01A_Q8 = latt.drif('MS01A_Q8', L = 0)
WIGM = latt.drif('WIGM', L = 0)
MS01B_Q8 = latt.drif('MS01B_Q8', L = 0)
MS01B_Q7 = latt.drif('MS01B_Q7', L = 0)
MS01B_Q6 = latt.drif('MS01B_Q6', L = 0)
MS01B_S3 = latt.drif('MS01B_S3', L = 0)
MS01B_Q5 = latt.drif('MS01B_Q5', L = 0)
MS01B_S2 = latt.drif('MS01B_S2', L = 0)
MS01B_Q4 = latt.drif('MS01B_Q4', L = 0)
MS01B_S1 = latt.drif('MS01B_S1', L = 0)
MS01B_Q3 = latt.drif('MS01B_Q3', L = 0)
MS01B_Q2 = latt.drif('MS01B_Q2', L = 0)
MS01B_Q1 = latt.drif('MS01B_Q1', L = 0)
S01A_S1 = latt.sext('S01A_S1', L = 0.128125958009351, K2 = -156.5339622001489)
S01A_S2 = latt.sext('S01A_S2', L = 0.128125958009351, K2 = 229.6667532942277)
S01A_S3 = latt.sext('S01A_S3', L = 0.128125958009351, K2 = -156.5339622001489)
S01B_S3 = latt.sext('S01B_S3', L = 0.128125958009351, K2 = -156.5339622001489)
S01B_S2 = latt.sext('S01B_S2', L = 0.128125958009351, K2 = 229.6667532942277)
S01B_S1 = latt.sext('S01B_S1', L = 0.128125958009351, K2 = -156.5339622001489)
S02A_S1 = latt.sext('S02A_S1', L = 0.128125958009351, K2 = -156.5339622001489)
S02A_S2 = latt.sext('S02A_S2', L = 0.128125958009351, K2 = 229.6667532942277)
S02A_S3 = latt.sext('S02A_S3', L = 0.128125958009351, K2 = -156.5339622001489)
S02B_S3 = latt.sext('S02B_S3', L = 0.128125958009351, K2 = -156.5339622001489)
S02B_S2 = latt.sext('S02B_S2', L = 0.128125958009351, K2 = 229.6667532942277)
S02B_S1 = latt.sext('S02B_S1', L = 0.128125958009351, K2 = -156.5339622001489)
S01A_Q1 = latt.quad('S01A_Q1', L = 0.2380672529059152, K1 = 3.600743379)
S01A_FS1 = latt.quad('S01A_FS1', L = 0.05, K1 = 0)
S01A_Q2 = latt.quad('S01A_Q2', L = 0.2380672529059152, K1 = -2.786797084)
S01A_Q3 = latt.quad('S01A_Q3', L = 0.2380672529059152, K1 = -2.25581057)
Example #6
0
MMM = latt.drif('MMM', L=0)
SEPTUM = latt.drif('SEPTUM', L=0)
BL7 = latt.drif('BL7', L=0)
BL10 = latt.drif('BL10', L=0)
BL9 = latt.drif('BL9', L=0)
MME = latt.drif('MME', L=0)
MIPBE = latt.drif('MIPBE', L=0)
MIPAE = latt.drif('MIPAE', L=0)
BL6 = latt.drif('BL6', L=0)
BL5 = latt.drif('BL5', L=0)
BL11 = latt.drif('BL11', L=0)
BL4 = latt.drif('BL4', L=0)
BL13 = latt.drif('BL13', L=0)
W1 = latt.drif('W1', L=0)
MALIN = latt.drif('MALIN', L=0)
SDI = latt.sext('SDI', L=0.21, K2=-17)
SFI = latt.sext('SFI', L=0.21, K2=15)
SD2MS = latt.sext('SD2MS', L=0.25, K2=-44.1426)
SF2MS = latt.sext('SF2MS', L=0.21, K2=33.3758)
SD3MS = latt.sext('SD3MS', L=0.25, K2=-45.2098)
SF3MS = latt.sext('SF3MS', L=0.21, K2=34.0518)
SD4MS = latt.sext('SD4MS', L=0.25, K2=-45.2098)
SF4MS = latt.sext('SF4MS', L=0.21, K2=34.0518)
SD5MS = latt.sext('SD5MS', L=0.25, K2=-44.1426)
SF5MS = latt.sext('SF5MS', L=0.21, K2=33.3758)
QDXW = latt.quad('QDXW', L=0.3533895, K1=-1.248532863)
QFXW = latt.quad('QFXW', L=0.6105311, K1=1.937029021)
QDYW = latt.quad('QDYW', L=0.3533895, K1=-1.667447301)
QFYW = latt.quad('QFYW', L=0.5123803, K1=1.449410506)
QDZW = latt.quad('QDZW', L=0.3533895, K1=-1.55825539)
QFZW = latt.quad('QFZW', L=0.3533895, K1=1.883402159)