next up previous contents index
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: 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 up previous contents index
Next: Constraints Up: Element Selection Previous: Element Selection   Contents   Index
MAD User Guide, http://wwwslap.cern.ch/mad/