Home > pubtools > LatticeTuningFunctions > errors > Girders > testerr.m

testerr

PURPOSE ^

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 clear all
0002 close all
0003 addpath('/mntdirect/_machfs/liuzzo/CODE/LatticeTuningFunctions/errors')
0004 addpath('/mntdirect/_machfs/liuzzo/CODE/LatticeTuningFunctions/errors/errordisplayfunctions');
0005 
0006 % load lattice
0007 load ESRF_GirderMarker.mat
0008 
0009 % get indexes
0010 indm=find(atgetcells(ring,'Class','Monitor'));
0011 indg=find(atgetcells(ring,'FamName','GS')); % girders are defined by GS and GE markers (start and end of girder)
0012 
0013 rerr=atsetrandomerrors(...
0014     ring,...
0015     indg,...
0016     indm,...
0017     1,...
0018     1e-5,...
0019     2.5,...
0020     'gpsi');
0021 
0022 figure('units','normalized','position',[0.1 0.4 0.65 0.35])
0023 atplot(rerr,[0,100],'comment',[],@pltmisalignments);
0024 saveas(gca,'GirderErrorsRoll.fig')
0025 export_fig('GirderErrorsRoll.jpg','-r300')
0026 
0027 
0028 
0029 rerr=atsetrandomerrors(...
0030     ring,...
0031     indg,...
0032     indm,...
0033     1,...
0034     1e-5,...
0035     2.5,...
0036     'gx.gy');
0037 
0038 figure('units','normalized','position',[0.1 0.4 0.65 0.35])
0039 atplot(rerr,[0,100],'comment',[],@pltmisalignments);
0040 saveas(gca,'GirderErrorsXY.fig')
0041 export_fig('GirderErrorsXY.jpg','-r300')
0042 
0043 
0044 
0045 rerr=atsetrandomerrors(...
0046     ring,...
0047     indg,...
0048     indm,...
0049     1,...
0050     1e-5,...
0051     2.5,...
0052     'gx.gy.gpsi');
0053 
0054 figure('units','normalized','position',[0.1 0.4 0.65 0.35])
0055 atplot(rerr,[0,100],'comment',[],@pltmisalignments);
0056 saveas(gca,'GirderErrorsXYRoll.fig')
0057 export_fig('GirderErrorsXYRoll.jpg','-r300')
0058 
0059 %%
0060 rerr=atsetrandomerrors(...
0061     ring,...
0062     indg,...
0063     indm,...
0064     1,...
0065     1e-5,...
0066     2.5,...
0067     'gtheta');
0068 
0069 figure('units','normalized','position',[0.1 0.4 0.65 0.35])
0070 atplot(rerr,[0,100],'comment',[],@pltmisalignments);
0071 saveas(gca,'GirderErrorsYaw.fig')
0072 export_fig('GirderErrorsYaw.jpg','-r300')
0073 
0074 
0075 rerr=atsetrandomerrors(...
0076     ring,...
0077     indg,...
0078     indm,...
0079     1,...
0080     1e-5,...
0081     2.5,...
0082     'gphi');
0083 
0084 figure('units','normalized','position',[0.1 0.4 0.65 0.35])
0085 atplot(rerr,[0,100],'comment',[],@pltmisalignments);
0086 saveas(gca,'GirderErrorsPitch.fig')
0087 export_fig('GirderErrorsPitch.jpg','-r300')
0088 
0089

Generated on Thu 24-Aug-2017 18:47:33 by m2html © 2005