Coordinate System in Cheetah¶
In Cheetah, the coordinates of the particles are defined by a 7-dimensional vector
The first 6 values are the canonical variables in the phase space. The trailing \(1\) is augmented as in affine transformation, for convenient calculations of thin-lens kicks, misalignmenents, etc.
The phase space coordinates are defined in the curvelinear coordinate system with respect to a reference particle at a position \(s\) along the beamline:
\(x\) is the horizontal position in m
\(y\) is the vertical position in m
\(px\) is the normalized horizontal momentum, dimensionless
\(py\) is the normalized vertical momentum, dimensionless
\(\tau\) is approximately the longitudinal offset with respect to the reference particle in m
\(\delta\) is the energy offset over the reference momentum, dimensionless
The new variables are
\(P_x\) is the horizontal momentum and \(p_0\) is the reference momentum.
\(s\) is the independent variable, denoting the position of the reference particle. \(t\) is the time when the particle arrives at position \(z\). In this notation, bunch head (particles arriving earlier than the reference particle) would have \(\tau<0\) as \(t<t_0\). The reference particle will have \(\tau=0\).
Here, \(E\) is the energy of a particle. \(E_0\) is the energy of the reference particle, i.e. reference energy. \(p_0\) is the reference momentum.
Relation with coordinates in other simulation tools¶
OCELOT¶
https://github.com/ocelot-collab/ocelot
The coordinates are identical as the ones used in OCELOT.
Note that in OCELOT the energy has the unit of GeV, while in Cheetah the energy is in eV.
Bmad¶
https://www.classe.cornell.edu/bmad/
The transverse coordinates \((x, px, y, py)\) are identical to the Bmad coordinates.
The longitudinal coordinate in Bmad is defined as
In Bmad, the sixth dimension (longitudinal momentum) is defined as the momentum offset over the reference momentum
Mad-X¶
https://madx.web.cern.ch/madx/
The longidutinal coordinate has an opposite sign
The longitudinal momentum is identical
Conversion to trace space notation¶
In many literatures, the trace space, or slope notation is used.
In paraxial approximation, they are approximately the same \(px \sim x'\).
In general
Note that \(p_s := \sqrt{p^2 - p_x^2 - p_y^2}\) is the longitudinal momentum, \(g = 1/\rho\) is the curvature of the trajectory.