+//_________________________________________________________________________
+Double_t AliTOFtrack::GetYat(Double_t xk, Bool_t skip) const {
+//-----------------------------------------------------------------
+// This function calculates the Y-coordinate of a track at the plane x=xk.
+// Needed for matching with the TOF (I.Belikov)
+//-----------------------------------------------------------------
+ skip=kFALSE;
+ Double_t c1=fC*fX - fE, r1=TMath::Sqrt(TMath::Abs(1.- c1*c1));
+ Double_t c2=fC*xk - fE, r2=TMath::Sqrt(TMath::Abs(1.- c2*c2));
+ if( ((1.- c2*c2)<0) || ((1.- c1*c1)<0) ) skip=kTRUE;
+ return fY + (xk-fX)*(c1+c2)/(r1+r2);
+}