A realistic approach to calculate the transport matrix in RF cavities is
developed. It is based on joint solution of equations of longitudinal and
transverse motion of a charged particle in an electromagnetic field of the
linac. This field is a given by distribution (measured or calculated) of the
component of the longitudinal electric field on the axis of the linac. New
approach is compared with other matrix methods to solve the same problem. The
comparison with code ASTRA has been carried out. Complete agreement for
tracking results for a TESLA-type cavity is achieved. A corresponding algorithm
will be implemented into the MARS15 code.Comment: 4 pp. Particle Accelerator, 24th Conference (PAC'11) 2011. 28 Mar - 1
Apr 2011. New York, US