function modelbeamsize
% function modelbeamsize - get beam sizes along the ring
%
%

%% Written by Laurent S. Nadolski
global THERING

[emit sigmas] = modelemit;
spos = findspos(THERING,1:length(THERING)+1);

figure
[A, H1, H2] = plotyy(spos,sigmas(1,:),spos,sigmas(2,:));

set(H1,'Marker','.')
set(A(1),'XLim',[0 spos(end)])
set(H2,'Marker','.')
set(A(2),'XLim',[0 spos(end)])
title('Principal axis of the beam ellipse [m]');
xlabel('s - position [m]');