range=position; range=position1/position2;In the first case, only one element is selected; in the second case, one or several elements are selected. NOTE: position1 must not be behind position2 in the sequence.
"position" is composed of the element name and an optional occurrence count in the sequence:
mq.ir5.l6..1 ! no occurrence count given mb[17] ! occurrence count givenThere are two predefined MAD indices: If, in the USE statement, only a range is selected:
use,period=lhcb1,range=ir1/ir5;then "#s" and "#e" refer to the start and end of the expanded range, of course.
Examples for ranges:
..,range=#s; ! first element ..,range=#s/#e; ! full expansion range ..,range=mb[5]/#e; ! from mb 5 to end ..,range=mq.ir5.l6..1; ! first occurrence of element mq.ir5.l6..1
mq:quadrupole; q1:mq; q2:mq; q1..a:q1; q2..b:q2;makes classes from mq, q1, and q2. Selection class="mq" will actually select q1, q2, q1..a, and q2..b in the above example. hansg, June 17, 2002