SUBROUTINE KVTXCV(NTRK, ITRK, UPDATE, LUSEZ, ZI, VZI, Z, VZ, * CHISQ, LERROR) C C >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> C Performs a vertex fit to several tracks in the KN list using the C position and covariance matrix of another vertex to constrain the fit. C C NTRK integer variable (read) C # of tracks to fit (length of ITRK) C C ITRK integer array (read) C list of tracks in KN list to fit (length = NTRK) C C UPDATE integer variable (read) C 0 ==> do not update input track parameters (just calculate chisq) C 1 ==> update input track parameters only C 2 ==> update input track parameters & covariance matrices and C replace the original unconstrainted parameters by the C new ones. ****** This is a dangerous option. ****** C C LUSEZ logical variable (read) C TRUE ==> use the value of Z as the starting value C FALSE ==> use the value of ZI as the starting value C C ZI real array (read) C Position of known vertex C C VZI real array (read) C 3x3 covariance matrix of known matrix ZI C C *Z real array (read/write) C On input, initial values of (x,y,z) C On output, updated values of (x,y,z) C C *VZ real array (write) C 3x3 covariance matrix of z(1-3) C C *CHISQ real variable (write) C Chisquare of fit C C *LERROR logical variable (write) C TRUE if error during vertex finding C >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>