This routine fits the primary vertex by calling PXFVTX and checking the probability of the fit. If it is bellow PCUT, the worst track is removed from the fit and a new attempt is done. The routine returns the of the fit, the position of the vertex with covariance matrix, and a list of tracks used in the fit.
TYPE : CHARACTER type of fit : 'BSPOT' : Just return the beamspot (cov-mat is diagonal, with beamspot uncertainties) 'BSCONSTR' : Full fit with beam-spot constraint anything else : Full fit without beam-spot constraint MTRK : total number of tracks PAR & WGT : TKR parameters with weight matrix at the perigee for each track INVTX : LOGICAL array flagging which tracks should initially be considered in the fit PCUT : Xi^2 probability when track rejection should stop NSIGM : SFACT, the scale factor for observed errors (rather than calculated) is such that the probability contents inside +-SFACT*NSIGM is the same as that inside +-NSIGM if the errors would have been gaussian.
XYZ : position of primary vertex. VCOV : Covariance matrix of XYZ calculated from track errors. VCOVS : " " " " " from observed spread of tracks around XYZ. TRWT : Contribution of each track to the fit (makes 'de-fitting' possible. SFACT : number to scale the diagonal elements of VCOVS with so that the probability contents inside W +- SFACT*NSIGN*sqrt(VCOVS_w,w) ( where w is x,y, or z) the same as within +-NSIGN for a standardized Gaussian CHI2VX : Xi^2 of the fit. INVTX : LOGICAL array flagging which tracks were used in the fit NVTRK : Number of tracks used in the fit ERROR : error flag.
From /PXCPRO/ : BEAMOY average beam position, and SIGBE beam-spread
none