source: PSPA/madxPSPA/tests/test-track-5/test-track-5.madx @ 430

Last change on this file since 430 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 907 bytes
Line 
1! Simple tracking test for rectellipse.
2! tstTrack_ap_rectellipse.madx
3
4option,-echo,-info,-warn;
5
6! **********  Apertures introduced **********
7qd:multipole, knl= {0,-0.0}, apertype= rectellipse,
8         aperture= { 0.00175,  0.00155, 0.0020,  0.0017};
9! ----- syntax: {Hhalfwidthrect, Vhalfheightrect, Hhalfaxis, Vhalfaxis}
10endmk:marker;
11
12! ********** Define sequence
13smachd: sequence, l= 2.0;
14  qd, at= 1.00;
15  endmk, at= 2.0;
16endsequence;
17
18! ********** Define beam and use the sequence with it
19beam, sequence= smachd, particle= proton, energy= 450;
20use,  sequence= smachd;
21
22! ********** Track 10000 particles
23! Note the usage of the options
24! 'onepass':
25track, onepass, onetable, file= "out_rellipse", aperture, dump;
26  n=0; 
27  while(n<20) {
28     n= n+1;
29     start, x= -0.002+0.004*ranf(),
30            y= -0.0017+0.0034*ranf(),
31            px= 0, py= 0;
32  }
33  run, turns= 1;
34endtrack;
35
36return;
Note: See TracBrowser for help on using the repository browser.