1 | |
---|
2 | call, file="../share/LEIR/LEIR.seqx"; |
---|
3 | |
---|
4 | |
---|
5 | eg := 0.938272+0.0042+10000; ! ... in GeV |
---|
6 | |
---|
7 | eg := 0.938272*2.8385; ! ... in GeV on transition |
---|
8 | eg := 0.938272*1.1547; ! ... in GeV beta = 0.5 |
---|
9 | |
---|
10 | beam, particle = proton, energy = eg; |
---|
11 | |
---|
12 | use, period=LEIR; |
---|
13 | |
---|
14 | |
---|
15 | select,flag=twiss,clear; |
---|
16 | select, flag=twiss, column=name,s,betx,bety,alfx,alfy,mux,muy,dx,dpx, |
---|
17 | re11,re12,re13,re14,re15,re16, |
---|
18 | re21,re22,re23,re24,re25,re26, |
---|
19 | re31,re32,re33,re34,re35,re36, |
---|
20 | re41,re42,re43,re44,re45,re46, |
---|
21 | re51,re52,re53,re54,re55,re56, |
---|
22 | re61,re62,re63,re64,re65,re66; |
---|
23 | |
---|
24 | |
---|
25 | twiss, rmatrix, chrom, save; |
---|
26 | |
---|
27 | write, table=summ, file="leir.summ.twiss"; |
---|
28 | write, table=twiss, file="leir.twiss"; |
---|
29 | |
---|
30 | plot, haxis=s, vaxis=betx,bety, colour=100; |
---|
31 | plot, haxis=s, vaxis=dx, colour=100; |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | select,flag=twiss,clear; |
---|
36 | select, flag=twiss, column=name,s,beta11,beta22,alfa11,alfa22,mu1,mu2,disp1,disp2, |
---|
37 | re11,re12,re13,re14,re15,re16, |
---|
38 | re21,re22,re23,re24,re25,re26, |
---|
39 | re31,re32,re33,re34,re35,re36, |
---|
40 | re41,re42,re43,re44,re45,re46, |
---|
41 | re51,re52,re53,re54,re55,re56, |
---|
42 | re61,re62,re63,re64,re65,re66; |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | ptc_create_universe; |
---|
47 | ptc_create_layout, model=1, method=6, nst=5, exact=true, closed_layout=true; |
---|
48 | |
---|
49 | |
---|
50 | ptc_printframes, file="leir.C", format=rootmacro;!this prints my visualisation with ROOT |
---|
51 | |
---|
52 | !!!!! T I M E F A L S E, T O T P A T H F A L S E |
---|
53 | ptc_setswitch, debuglevel=0, exact_mis=true, time=false, totalpath=false; |
---|
54 | |
---|
55 | |
---|
56 | ptc_twiss, table=twiss, icase=5, no=2, closed_orbit; |
---|
57 | write, table=twiss, file="leir.5d.ptc.twiss"; |
---|
58 | write, table=ptc_twiss_summary, file="leir.5d.ptc.summ.twiss"; |
---|
59 | |
---|
60 | ptc_end; |
---|
61 | |
---|
62 | |
---|
63 | plot, haxis=s, vaxis=beta11,beta22, colour=100; |
---|
64 | plot, haxis=s, vaxis=disp1, colour=100; |
---|
65 | plot, haxis=s, vaxis=x, colour=100; |
---|
66 | |
---|