MARK elements play special rolls in FFS:
(1) The first element of the beam line must be a MARK element to be used by FFS. In this case the MARK element contains the parameters of the incoming beam (see optical-functions, special-variables EMITX, EMITY, DP).
(2) The calculated optical parameters at a MARK command is saved by SAVE or STOP commands, then it can be used as the incoming condition of other beam lines which have the same MARK element.
Example:
MARK P1 = (EMITX = .. EMITY = .. DP = ..);
LINE A = ( .. P1 ..)
B = (P1 .. );
FFS USE = A;
... do mathing on LINE A
SAVE P1 save the parameters at P1
USE B; switch to LINE B
... do matching of LINE B whose entrance is to be
matched P1.
(3) If a MARK element has keyword GEO nonzero, this MARK element becomes the origin of the geometric rotation after the last SOL element.
(4) The values of optical-functions of the MARK element at the beginning of the beam line can be specified as matching variables by the FREE command.
(1) LINE A = ( ... QF PQFC ... );
QUAD QF = (L=0.3 K1=0.2);
MARK PQFC = (OFFSET = -0.5);
Here PQFC represents the center of QF.
(2) LINE A = ( ... PQFC QF ... );
QUAD QF = (L=0.3 K1=0.2);
MARK PQFC = (OFFSET = 1.5);
(1) Function TrackParticles does not take OFFSET into account if the start or stop location is in the midst of a beamline and a Mark with nonzero OFFSET, in the current version. Tracking for entire beam line or MEASURE(MEA) command supports OFFSET.
(2) The outputs by DISPLAY(DISP) outside of the narrowed region by OFFSET are meaningless.