source: PSPA/madxPSPA/tests/test-track/test-track.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: 937 bytes
Line 
1! Simple tracking test for collimator with aper definition.
2! tstTrack_ap_collimator.madx
3
4option,-echo,-info,-warn;
5
6! **********  Apertures introduced **********
7col:rcollimator, l= 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  col, 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 20 particles
23! Note the usage of the options
24! 'onepass':
25track, onepass, onetable, file= "out_test-track_ap_collimator", 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
36
37return;
Note: See TracBrowser for help on using the repository browser.