Next: Control flow
Up: dimad
Previous: Elements
A beamline is a list of elements, which can include other beamlines.
label: line=(member1, member2, member3,.....)
denotes a beamline called label. The members can be elements, other
beamlines, sequences of members, or any of the above preceeded by a
repetition count and/or a minus sign for reflection.
Examples:
df:line = (dq, oo, b, oo qf)
fdstar:line = (qf, sf, b, sd, qd)
arc:line = (df, 64*(fdstar,df))
Beamlines can also have formal arguments. An example is
fdstar(sf,sd):line = (qf, sf, b, sd, qd)
where sf and sd are not defined elements, but variables. So
super:line = (fdstar(sd1,sf1),df,fdstar(sd2,sf2))
is a line in which the elements sd1, sd2, sf1, and sf2 are
substituted for the variables sd and sf in the original definition.
Dobrin Kaltchev
2004-10-20