If the data read by the analysing program did not contain track-parameters (only pxpypz + track start point), this routine follows the track through the detector and determines the track parameters at the perigee with error-matrix (including measurement precision and multiple scattering). Optionally the parameters and errors at other places in the detector can also be calculated.
If the data read did contain track parameters, this routine only copies them from /ZATRA/ to /ZATRS/
ERROR : error-flag
From /ZATRA/ : PSMEAR, smeared momentum; XSTART, point where PSMEAR is given; CDG, code of particle; CHAG, charge of particle; ALLTRK, the current overall track number. From /ZATRS/ : TRACK, the current seen track number. From /ZADTG/ : RVD, radii of detector layers where hits were produced. From /ZASTE/ : TYPE, type of data on tracks (TKR or pxpypz); IGEOM, current detector geometry. METHOD, hit or not, and how to process them.
To /ZATRS/ : PAR and WGT, perigee parameters with weight-matrix; TKR, extrapolations with cov-matrix to radius=TKR(1...); PVEC, seen pxpypz at the perigee; To /ZADTH/ : ER, error code for extrapolations in each layer.
(To TRAcK a particle through the detector)
(To calculate ERRor Matrix)
(To transform Track parameters on Cylinder to PXpypz)