Next: Constraints
Up: Element Selection
Previous: Element Selection
  Contents
  Index
Range Selection
A range in a beam line is selected
by the following syntax:
range ::= place |
place "/" place
This denotes the range of elements from the firstplace to
the second place. Both positions are included.
A few special cases are worth noting:
- When place1 refers to a LINE.
the range starts at the beginning of this line.
- When place2 refers to a LINE.
the range ends at the ending of this line.
- When both place specifications refer to the same object,
then the second can be omitted.
In this case, and if place refers to a
LINE the range contains the whole of the line.
Examples: Assume the following definitions:
M: MARKER;
S: LINE=(C,M,D);
L: LINE=(A,M,B,2*S,A,M,B);
The line L is equivalent to the sequence of elements
A,M,B,C,M,D,C,M,D,A,M,B
Examples for range selections:
- #S/#E
- The full range or L.
- A[1]/A[2]
- A[1] through A[2], both included.
- S::M/S[2]::M
- From the marker M nested in the first occurrence of
S,
to the marker M nested in the second occurrence of
S.
- S[1]/S[2]
- Entrance of first occurrence of S through
exit of second occurrence of S.
Next: Constraints
Up: Element Selection
Previous: Element Selection
  Contents
  Index
MAD User Guide, http://wwwslap.cern.ch/mad/