Home > lattice > element_creation > atmarker.m

atmarker

PURPOSE ^

ATMARKER(FAMNAME,PASSMETHOD)

SYNOPSIS ^

function elem=atmarker(fname,varargin)

DESCRIPTION ^

ATMARKER(FAMNAME,PASSMETHOD)
    creates a marker space element

FAMNAME        family name
PASSMETHOD     tracking function, defaults to 'IdentityPass'

ATMARKER(FAMNAME,PASSMETHOD,'FIELDNAME1',VALUE1,...)
   Each pair {'FIELDNAME',VALUE} is added to the element

See also: ATDRIFT, ATQUADRUPOLE, ATSEXTUPOLE, ATSBEND, ATRBEND
          ATMULTIPOLE, ATTHINMULTIPOLE

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function elem=atmarker(fname,varargin)
0002 %ATMARKER(FAMNAME,PASSMETHOD)
0003 %    creates a marker space element
0004 %
0005 %FAMNAME        family name
0006 %PASSMETHOD     tracking function, defaults to 'IdentityPass'
0007 %
0008 %ATMARKER(FAMNAME,PASSMETHOD,'FIELDNAME1',VALUE1,...)
0009 %   Each pair {'FIELDNAME',VALUE} is added to the element
0010 %
0011 %See also: ATDRIFT, ATQUADRUPOLE, ATSEXTUPOLE, ATSBEND, ATRBEND
0012 %          ATMULTIPOLE, ATTHINMULTIPOLE
0013 
0014 
0015 [rsrc,method,~]=decodeatargs({'IdentityPass',''},varargin);
0016 [method,rsrc]=getoption(rsrc,'PassMethod',method);
0017 [cl,rsrc]=getoption(rsrc,'Class','Marker');
0018 elem=atbaselem(fname,method,'Class',cl,rsrc{:});
0019 end

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