Commit a4da1179 authored by Simone Liuzzo's avatar Simone Liuzzo

* instead of /

parent 03b6f1bf
......@@ -9,8 +9,8 @@ tic;
disp(['---- ID ' num2str(idnum,'%.2d') ' -----']);
setpropbump('h','id',rc,idnum,filedata);
setpropbump('v','id',rc,idnum,filedata);
%setpropbump('h','id',rc,idnum,filedata);
%setpropbump('v','id',rc,idnum,filedata);
disp(['---- BM ' num2str(idnum,'%.2d') ' -----']);
setpropbump('h','bm',rc,idnum,filedata);
......@@ -21,8 +21,8 @@ tic;
for bpmnum=1:10
disp(['---- BPM ' num2str(idnum,'%.2d') 'c' num2str(bpmnum,'%.2d') ' -----']);
setpropbump_bpmpos('h',bpmnum,rc,idnum,filedata);
setpropbump_bpmpos('v',bpmnum,rc,idnum,filedata);
% setpropbump_bpmpos('h',bpmnum,rc,idnum,filedata);
% setpropbump_bpmpos('v',bpmnum,rc,idnum,filedata);
end
......@@ -66,18 +66,27 @@ end
switch beamline
case 'id'
D = 5.3028;
% normalized quantities to maximum bump amplitude
shn = sh'./max(h);
hn = h./max(h);
case 'bm'
% normalized quantities to maximum bump amplitude
%shn = sh'./abs(h(bpmupstream-selb(1)+1))*2;
%hn = h./abs(h(bpmupstream-selb(1)+1))*2;
shn = sh'./max(h);
hn = h./max(h);
switch plane
case 'h'
D = 0.9120 / 1.224;
D = 0.9120 * 1.224;
case 'v'
D = 0.9120 / 0.8022;
D = 0.9120 * 0.8022;
end
end
% normalized quantities to maximum bump amplitude
shn = sh'./max(h);
hn = h./max(h);
fullnames= cellfun(@(a)(['srmag/' plane 'st-' a '']),hnames,'un',0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment