EUROPEAN ORGANIZATION FOR NUCLEAR RESEARCH

Known Differences to Other Programs

Definitions

MAD uses full 6-by6-matrices to allow coupling effects to be treated, and the canonical variable set (x, px / p0), (y, py / p0), (-ct, delta(E) / p0 c), as opposed to other programs most of which use the set (x, x'), (y, y'), (-delta(s), delta(p)/p0). Like [Dragt], MAD uses the relative energy error py / p0, which is equal the relative momentum error delta = delta(p)/p0 multiplied by beta = v/c.

As from Version 8.13, MAD8 uses an additional constant momentum error deltas in all optical calculations. The transfer maps contain the exact dependence upon this value; therefore the tunes for large deviations can be computed with high accuracy as opposed to previous versions.

The choice of canonical variables in MAD still leads to slightly different definitions of the lattice functions. In MAD the Courant-Snyder invariants in [Courant and Snyder] take the form

Wx = gammax x2 - 2 alphax x px + betax px2

Comparison to the original form

Wx = gammax x2 - 2 alphax x x' + betax x'2

shows that the orbit functions cannot be the same. A more detailed analysis, using

x' = px / (1 + delta)

shows that all formulas can be made consistent by defining the MAD orbit functions as

betaxM = betaxC * (1 + delta), alphaxM = alphaxC, gammaaxM = gammaxC / (1 + delta),

For constant deltas along the beam line and delta = 0, the lattice functions are the same. In a machine where delta varies along the circumference, e.g. in a linear accelerator or in an electron-positron storage ring, the definition of the Courant-Snyder invariants must be generalised. The MAD invariants have the advantage that they remain invariants along the beam line even for variable delta.

With the new method this problem occurs in Twiss module only for non-constant delta.

Treatment of Energy Error in TWISS

It has been noted in [Milutinovic and Ruggiero] that MAD returned tunes which are too low for non-zero delta. The difference was found to be quadratic in delta with a negative coefficient. This problem has been eliminated thanks to the new treatment of momentum errors from MAD8 Version 8.13 onwards.

hansg, January 24, 1997