Commit 11c38622 authored by Simone Liuzzo's avatar Simone Liuzzo

message and normalization by length

parent d76392e3
......@@ -25,12 +25,13 @@ else
[rx,~]=qemdispderiv(mach,qemres.ct,@setk,1.e-3,...
[qemres.qcoridx],qemres.bpmidx); % h dispersion derivative resepct to quadrupoles
rx=rx./qemres.qcorl(:,ones(1,size(rx,1)))'; % as in semskewresp
qemres.quadhdispresponse = rx;
end
rx=rx./qemres.qcorl(:,ones(1,size(rx,1)))'; % as in semskewresp
function elem=setk(elem,dk)
k=elem.PolynomB(2)+dk;
elem.K=k;
......@@ -72,9 +73,9 @@ if a1 > 1 | a1<0
error('hor. dispersion weigth should be between 0 and 1');
end
a2 = qemres.tuneRDTcorWeight;
a2 = qemres.tuneRDTCorWeigth;
if a2 > 1-a1 | a2<0
error(['tune weigth should be between 0 and ' num2str(1-a1)]);
error(['tune weigth ' num2str(a2) ' should be between 0 and ' num2str(1-a1)]);
end
disp('start correction');
......
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