BESIII track fitting algorithm

A track fitting algorithm based on the Kalman filter method has been developed for BESIII of BEPCII. The effects of multiple scattering and energy loss when the charged particles go through the detector, non-uniformity of magnetic field (NUMF) and wire sag, etc., have been carefully handled. This algorithm works well and the performance satisfies the physical requirements tested by the simulation data.