Commit 6b89c347 authored by Simone Liuzzo's avatar Simone Liuzzo

reaodered emittance measurements

parent 01ea265f
......@@ -32,21 +32,21 @@ if largefig
end
Nc = length(dkk);
extracor = mod(Nc,32);
cor_per_cell_quad = squeeze(std(reshape(dkk((1+extracor/2):(Nc-extracor/2)),32,[]),1,2));
bar(ax,[cor_per_cell_quad],'EdgeColor','none');
ylabel(ax,'\DeltaK/K');
grid(ax,'on');
set(ax,'Xlim',[0 32+1],'FontSize',6);
Nc = length(dang_ang);
extracor = mod(Nc,32);
cor_per_cell_dip = squeeze(std(reshape(dang_ang((1+extracor/2):(Nc-extracor/2)),32,[]),1,2));
yyaxis(ax,'right');
bar(ax,[cor_per_cell_dip],'EdgeColor','none');
ylabel(ax,'\Delta\Theta/\Theta');
grid(ax,'on');
set(ax,'Xlim',[0 32+1],'FontSize',6);
Nc = length(dkk);
extracor = mod(Nc,32);
cor_per_cell_quad = squeeze(std(reshape(dkk((1+extracor/2):(Nc-extracor/2)),32,[]),1,2));
yyaxis(ax,'left');
bar(ax,[cor_per_cell_quad],'EdgeColor','none');
ylabel(ax,'\DeltaK/K');
grid(ax,'on');
set(ax,'Xlim',[0 32+1],'FontSize',6);
......
......@@ -73,7 +73,7 @@ if a1 > 1 | a1<0
error('hor. dispersion weigth should be between 0 and 1');
end
a2 = qemres.tuneRDTCorWeigth;
a2 = qemres.tuneRDTcorWeight;
if a2 > 1-a1 | a2<0
error(['tune weigth ' num2str(a2) ' should be between 0 and ' num2str(1-a1)]);
end
......
......@@ -20,8 +20,8 @@ sskew=findspos(qemb.at(:),qemres.skewidx);
spinhole=[qemb.id07data.SPos; qemb.d17data.SPos; qemb.id25data.SPos; qemb.d27data.SPos;qemb.d01data.SPos];
mess={...
sprintf('em. H [nm]: %7.3f %7.3f %7.3f',1.e9*mean(emittances(alllist,1:2:end)));...
sprintf('em. V [pm]: %7.3f %7.3f %7.3f',1.e12*mean(emittances(alllist,2:2:end)));...
sprintf('em. H [nm]: %7.3f %7.3f %7.3f',1.e9*mean(emittances(pinholelist,1:2:end)));...
sprintf('em. V [pm]: %7.3f %7.3f %7.3f',1.e12*mean(emittances(pinholelist,2:2:end)));...
sprintf('V. dispersion [m]: %g',qemb.pm.alpha*std(qemb.frespz,1));...
'pinhole V [pm]:';...
sprintf('ID07:%8.4f',1.e12*emittances(id07,6));...
......
......@@ -3,7 +3,7 @@ function iaxemz = semloadiax(datadir)
iaxemz=NaN(5,1);
try
dest=[5,1:4]; % destination of the values read from file
dest=[1:5]; % destination of the values read from file
iax=load(fullfile(datadir, 'iaxemittance'));
iaxemz(dest)=iax.iax_values; % [m]
catch
......
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