double precision function kget_track_err_theta(ktrk) * * begin_doc * * Returns the theta error of a track to the caller. * * Input Parameters: * ktrk integer variable * Track number * * Output Parameters: * None * * Return value: * Error on mass * * Other routines: * * Notes: * * The equation for theta can be written as * * cos(theta) = Pz / sqrt(Px**2 + Py**2 + Pz**2) * * so dtheta = (Px*Pz*dPx + Py*Pz*dPy - Pt**2*dPz) / (P**2*Pt) * * The covariance matrix of the momentum is then * * sig**2 = A*Vx0*A(t) * * where A = (Px*Pz, Py*Pz, -Pt**2, 0) / (P**2*Pt) * * Author: Paul Avery Created: Tue Aug 26 19:35:08 EDT 1997 * * Major revisions: * * * end_doc