// This function returns the track momentum
// Results for (nearly) straight tracks are meaningless !
//---------------------------------------------------------------------
- if (TMath::Abs(fP[4])<=0) return kVeryBig;
+ if (TMath::Abs(fP[4])<=kAlmost0) return kVeryBig;
return TMath::Sqrt(1.+ fP[3]*fP[3])/TMath::Abs(fP[4]);
}
fP0= -x*sa + fP0*ca;
fP2= sf*ca - cf*sa;
+ if (TMath::Abs(cf)<kAlmost0) {
+ AliError(Form("Too small cosine value %f",cf));
+ cf = kAlmost0;
+ }
+
Double_t rr=(ca+sf/cf*sa);
fC00 *= (ca*ca);