SUBROUTINE  : FTCHKH(PS,PI,RS,RI,II,JJ,KK,CHID)
 
AUTHOR : I.O. Skillicorn
 
DATE : 18/08/93
 
LANGUAGE : FORTRAN
 
SHORT SUMMARY of PURPOSE:                                                
                                                                                
          Fit radial-based tracks to straight lines                             
          in phi-z, r-z. Determine chi**2 of fit.                               
          For chi**2 use a parabola for 3-module                                
          tracks. Otherwise use a straight line                                 
          in the helix frame.                                                   
                                                                                
LIST and DESCRIPTION of INPUT VARIABLES/ARGUMENTS:                       
                                                                                
 Radial track segments:                                                         
          Hits/drift sign         :- IRPT/SDRFT                                 
                                                                                
                                                                                
LIST and DESCRIPTION of OUTPUT VARIABLES/ARGUMENTS:                      
                                                                                
          Parameters(phi',phi0)   :- PS,PI                                      
          Parameters(R',R0)       :- RS,RI                                      
          Chi**2 drift            :- CHID                                       
                                                                                
 
CALLING TREE from FTCHKH :
 
  CALL FTLFTW      == tree ==>
 
FUNCTIONS USED :
 
FPARAB                                                                            
 
KEEP SEQUENCES USED :
 
 FRDIMS FH1WORK FDIFLG                                                                                        
 

Comments from FTCHKH