Additional protection (Yu.Belikov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Oct 2004 08:04:18 +0000 (08:04 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Oct 2004 08:04:18 +0000 (08:04 +0000)
STEER/AliESDtrack.cxx

index 5aebecced40576b311be210501d5438026e30de8..7f7ba25d275a77af52bdee6d7206e392bb244404 100644 (file)
@@ -328,16 +328,16 @@ Bool_t AliESDtrack::UpdateTrackParams(const AliKalmanTrack *t, ULong_t flags) {
 
   case kTRDout:
     //requested by the PHOS/EMCAL  ("temporary solution")
-    fOalpha=t->GetAlpha();
-    fOx=460.;
-    rc=GetExternalParametersAt(fOx,fOp);
-    t->GetExternalCovariance(fOc); //can be done better
-
-    fXalpha=t->GetAlpha();
-    fXx=450.;
-    rc=GetExternalParametersAt(fXx,fXp);
-    t->GetExternalCovariance(fXc); //can be done better
-
+    if (GetExternalParametersAt(460.,fOp)) {
+       fOalpha=t->GetAlpha();
+       fOx=460.;
+       t->GetExternalCovariance(fOc); //can be done better
+    }
+    if (GetExternalParametersAt(450.,fXp)) {
+       fXalpha=t->GetAlpha();
+       fXx=450.;
+       t->GetExternalCovariance(fXc); //can be done better
+    }
   case kTRDin: case kTRDrefit:
     fTRDLabel = t->GetLabel();