atidtable
PURPOSE
atidtable(FAMNAME,Nslice,filename,Energy,method)
SYNOPSIS
function Elem = atidtable(fname, Nslice, filename, Energy, method)
DESCRIPTION
CROSS-REFERENCE INFORMATION
This function calls:
This function is called by:
SOURCE CODE
0001 function Elem = atidtable(fname, Nslice, filename, Energy, method)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 if nargin < 5, method='IdTablePass'; end
0026 Elem.FamName=fname;
0027 Elem.Nslice=Nslice;
0028 Elem.PassMethod=method;
0029
0030
0031 factor=1/((Energy/0.299792458)^2);
0032 factor1=-1/((Energy/0.299792458));
0033
0034
0035
0036
0037
0038 D=load(filename);
0039 xtable=(D.xtable)';
0040 ytable=(D.ytable)';
0041 xkick1=factor1*D.xkick1;
0042 ykick1=factor1*D.ykick1;
0043 xkick=factor*D.xkick;
0044 ykick=factor*D.ykick;
0045 L=D.Len;
0046
0047
0048 [xtable indx]=sort(xtable);
0049 [ytable indy]=sort(ytable);
0050
0051 xkick=xkick(indx,indy);
0052 ykick=ykick(indx,indy);
0053
0054 xkick=xkick';
0055 ykick=ykick';
0056 xkick1=xkick1';
0057 ykick1=ykick1';
0058
0059
0060 Elem.Length= L;
0061 Elem.xtable = xtable;
0062 Elem.ytable = ytable;
0063 Elem.xkick = xkick;
0064 Elem.ykick = ykick;
0065 Elem.xkick1 = xkick1;
0066 Elem.ykick1 = ykick1;
0067
0068 Elem.Class = 'KickMap'
Generated on Thu 24-Aug-2017 18:47:33 by m2html © 2005