Line | |
---|
1 | ! Simple tracking test for LHC racetrack type element. |
---|
2 | ! tstTrack_ap_racetrack.madx |
---|
3 | |
---|
4 | option,-echo,-info,-warn; |
---|
5 | |
---|
6 | ! ********** Apertures introduced ********** |
---|
7 | qd:multipole, knl={0,-0.0}, apertype= racetrack, aperture={0.002,0.0005,0.001};! H |
---|
8 | !-------------------------------------------- syntax : hlimit,vlimit,radius |
---|
9 | endmk:marker; |
---|
10 | |
---|
11 | ! ********** Define sequences |
---|
12 | smachd: sequence, l= 2.0; |
---|
13 | qd, at= 1.00; |
---|
14 | endmk, at= 2.0; |
---|
15 | endsequence; |
---|
16 | |
---|
17 | |
---|
18 | ! ********** Define beam and use the sequence with it |
---|
19 | beam, sequence= smachd, particle= proton, energy= 450; |
---|
20 | use, sequence= smachd; |
---|
21 | |
---|
22 | ! ********** Track 10000 particles |
---|
23 | track, onepass, onetable, file= "out_d", aperture, dump; |
---|
24 | n=0; |
---|
25 | while(n<20) { |
---|
26 | n= n+1; |
---|
27 | start, x= -0.003+0.006*ranf(), |
---|
28 | y= -0.0015+0.003*ranf(), |
---|
29 | px= 0, py= 0; |
---|
30 | } |
---|
31 | run, turns= 1; |
---|
32 | endtrack; |
---|
33 | |
---|
34 | |
---|
35 | return; |
---|
Note: See
TracBrowser
for help on using the repository browser.