source: MML/trunk/machine/SOLEIL/Booster/applications/pertes.m

Last change on this file was 17, checked in by zhangj, 10 years ago

To have a stable version on the server.

  • Property svn:executable set to *
File size: 978 bytes
Line 
1%pertes sur chambre
2
3dx=[-12   -8   -3  -2    0  2   3 5 ];
4dr=[0.12  8.2  8.5  8.5  8  3.4 1 0 ];
5dr=dr/8.5;
6
7
8a=10;
9sig=2.8;
10i=0;
11
12for x=-a:0.1:a
13    i=i+1;
14    p(i)=x-4;
15    ax=a-abs(x);
16    r(i)=(1-exp(-0.5*(ax/sig)*(ax/sig)));
17end
18
19plot(dx,dr,'-ob' ,p,r,'-k')
20
21dn= [ 3  5   6   7    8  9     10 11  12  13  14  15  16  17 18   19  20 21];
22dx1=[5   5   5   5    5  3     5  5   5   5   5   5   5   5   4   5   5  5];
23dr1=[5.8 3.3 1.9 3.45 3  0.95  5. 3.8 7.3 2.5 7.3 1.4 6.4 0.2 1.7 5.6 0  4];
24
25x0=9-sig*sqrt(-2*log(1-dr1/8.5));
26if (abs(x0-dx1)<abs(-x0-dx1))
27    dx0=x0-dx1;
28else
29    dx0=-x0-dx1;
30end
31 
32%mesure BPM
33s_bpmx=[14.2382 28.4764 50.2337 64.4719 92.5483 106.7865 128.5438 142.7820];
34Zm=[-0.5356 0.2893  -0.3448 0.1526 -0.096 -0.2161 0.0730 -0.0045];
35 
36%ds1=[1:22]*3.55*2;
37dx=(dn-1)*3.55*2;
38s=[err_beta(:,1) ; err_beta(:,1)+78.31];
39sigz1=[err_beta(:,2) ; err_beta(:,2)]*1000*1.2;
40sigz2=-sigz1;
41figure(2)
42plot(dx,dx0,'-ob',s_bpmx,Zm,'-or',s,sigz1,'-k',s,sigz2,'-k')
43
Note: See TracBrowser for help on using the repository browser.