Units and conventions

Todo

Consistency between font size of normal text and math text. Not aesthetic when I have text and units side to side.

Todo

General units: MeV etc

Beam parameters

The beam parameters are defined in core.beam_parameters and stored in the BeamParameters object. We use the same units and conventions as TraceWin.

RMS emittances

In LightWin

In TraceWin

Units

Normalized?

eps_x

\(\epsilon_{xx'}\)

\(\pi\mathrm{.mm.mrad}\)

eps_y

\(\epsilon_{yy'}\)

\(\pi\mathrm{.mm.mrad}\)

eps_z

\(\epsilon_{zn}\)

\(\pi\mathrm{.mm.mrad}\)

eps_zdelta

\(\epsilon_{z\delta}\)

\(\pi\mathrm{.mm.\%}\)

eps_phiw

\(\epsilon_{\phi W}\)

\(\pi\mathrm{.deg.MeV}\)

Warning

In TraceWin’s output files partran.out and tracewin.out, eps_zdelta is expressed in \(\pi\mathrm{.mm.mrad}\), not in \(\pi\mathrm{mm.\%}\)! The conversion is: \(1\pi\mathrm{.mm.mrad} = 10\pi\mathrm{.mm.\%}\)

Twiss

In LightWin

In TraceWin

Units

alpha_z

\(\alpha_{zz'}\)

\(1\)

alpha_zdelta

\(\alpha_{z\delta}\)

\(1\)

alpha_phiw

\(\alpha_{\phi W}\)

\(1\)

beta_z

\(\beta_{zz'}\)

\(\mathrm{mm}/(\pi.\mathrm{mrad})\)

beta_zdelta

\(\beta_{z\delta}\)

\(\mathrm{mm}/(\pi.\%)\)

beta_phiw

\(\beta_{\phi W}\)

\(\mathrm{deg}/(\pi.\mathrm{MeV})\)

gamma_z

\(\gamma_{zz'}\)

\(\mathrm{mrad}/(\pi.\mathrm{mm})\)

gamma_zdelta

\(\gamma_{z\delta}\)

\(\mathrm{\%}/(\pi.\mathrm{mm})\)

gamma_phiw

\(\gamma_{\phi W}\)

\(\mathrm{MeV}/(\pi.\mathrm{deg})\)

Note that beta_kin, gamma_kin are the Lorentz factors.

Envelopes

In LightWin

In TraceWin

Units

x.envelope_pos

\(\mathrm{mm}\)

x.envelope_energy

\(\mathrm{mrad}\)

y.envelope_pos

\(\mathrm{mm}\)

y.envelope_energy

\(\mathrm{mrad}\)

z.envelope_pos

\(\mathrm{mm}\)

z.envelope_energy

\(\mathrm{mrad}\)

zdelta.envelope_pos

\(\mathrm{mm}\)

zdelta.envelope_energy

\(\mathrm{\%}\)

phiw.envelope_pos

\(\mathrm{deg}\)

phiw.envelope_energy

\(\mathrm{MeV}\)

Note

Envelopes are at \(1\sigma\) in LightWin, while they are plotted at \(6\sigma\) by default in TraceWin.

Note

Envelopes are calculated with un-normalized emittances in the \([z-\delta]\) and \([z-z']\) planes, but they are calculated with normalized emittance in the \([\phi-W]\) plane.

\(\sigma\) beam matrix

We save this matrix in SI units, i.e. in \(\mathrm{m}\) and \(\mathrm{rad}\). When given in the .ini configuration file, it must also be in SI units.