% From SEED:
goo = beamPath;
goo.addComponent(component.flatMirror(3.,'UPM')); %Up Periscope Mirror
goo.addComponent(component.flatMirror(3.+10*0.0254,'LPM')); %Up Periscope Mirror
goo.addComponent(component.lens(.667,3.+13*0.0254,'L0')); 
% goo.addComponent(component.lens(.334,1.274,'lens2')); 
%goo.addComponent(component.lens(.1112,3.+13*0.0254+2.453,'lens13'));
goo.addComponent(component.flatMirror(3.+24*0.0254,'M13')); 
goo.addComponent(component.flatMirror(3.+34*0.0254,'M14')); 
goo.addComponent(component.flatMirror(3.+13*0.0254+0.95,'BS')); 
goo.addComponent(component.lens(.1112,3.+13*0.0254+1.1,'L14/5'));   % 

goo.seedWaist(560e-06,0);          % lower peri-mirror at 3.                                 

% plot the results
zplot = 2.7:.01:4.8;           
goo.components
figure(10)
goo.plotSummary(zplot);
title('SEED path')
hold on

%% LO:
goo = beamPath;
%goo.addComponent(component.lens(.445,1.2+0.1,'lens12')); 
goo.addComponent(component.flatMirror(1.2,'Fiber Coupler')); 
goo.addComponent(component.lens(.445,1.2+0.15,'L12')); 
goo.addComponent(component.flatMirror(1.2+0.4,'M15')); 
goo.addComponent(component.flatMirror(1.2+0.5,'M16')); 
goo.addComponent(component.lens(-.334,1.2+0.75,'L13'));
goo.addComponent(component.flatMirror(1.2+0.95,'BS')); 
goo.addComponent(component.lens(.1112,1.2+1.135,'L14/5'));

goo.seedWaist(188e-06,0.08);   % fiber coupler at 1.2                                        

% plot the results
zplot = 1:.01:2.6;           
goo.components
figure(30)
goo.plotSummary(zplot);
title('Homo path')
hold on