label: RFCAVITY, L=real,VOLT=real,LAG=real,HARMON=integer,FREQ=real;An RFCAVITY has eight real attributes and one integer attribute:
delta(E) = VOLT * sin(2 pi * (LAG - HARMON * f0 t)).
Transverse focussing effects are typically ignored in the cavity in MAD-X or even PTC. This effect is being calculated to order n_bessel, with n_bessel=0 disregarding this effect and with a correct treatment when n_bessel goes to infinty.
flag to choose if in a cavity the transit time factor is considered (no_cavity_totalpath=false) or if the particle is kept on the crest of RF voltage (no_cavity_totalpath=true).
Example:
BEAM,PARTICLE=ELECTRON,ENERGY=50.0; CAVITY: RFCAVITY,L=10.0,VOLT=150.0,LAG=0.0,HARMON=31320;The straight reference system for a cavity is a cartesian coordinate system.
hansg, January 24, 1997