class interface TRACK exported features {NONE} compute_residual_and_derivatives_for_cluster (barrel, pixel: BOOLEAN x, y, z, rho, sigf, sigr, sigz, s_stereo, s_tilt: REAL n: INTEGER) -- IFDERIV -- Given a measured track coordinate, this routine computes -- the track-fit residual and derivative vector of these -- coordinates wrt the fit parameters. Barrel and disk type -- measurements are foreseen, with the track approximated by a -- local vector i.e. its direction at the corresponding r or z -- coordinate of the fit trajectory. -- Analytic derivatives omitted for now. s0,s1,s2,s3,s4,s5,s6: TRACKED_PARTICLE row_hit,sup_hit: ARRAY [INTEGER] pix_hit: ARRAY [BOOLEAN] radius: ARRAY [REAL] fi_scat,th_scat: ARRAY [REAL] vertexin_fit,road_fit,brem_fit,seed_fit: BOOLEAN chi_squared: REAL oldsum: REAL deg_of_freedom: INTEGER fitcode: INTEGER accuracy: INTEGER option: STRING ip_worst,ip_brem: REAL valid,pt_fixed,cut_step,cut_allowed,convergence,after_brem: BOOLEAN n_iter,n_sup,n_cuts,n_scat,scat_par,nfithit: INTEGER vert_row,road_row,seed_row,brem_row: INTEGER n_row,n_param: INTEGER pt_inv_1,ao: REAL Ok,No_seed,Few_measurements,Low_dimensions,No_convergence,No_valid_fit: INTEGER is unique -- for fitcode Accurate,Approximate: INTEGER is unique -- for accuracy ... Infinity: REAL is 10000000000 Mx_meas: INTEGER is 600 ... Delta_a0: REAL is 0.001 ... N_sigma: REAL is 2.5 end interface -- class TRACK