Storing angle alpha for the tracks stopped at TRD. The stored value is used for inwar...
[u/mrichter/AliRoot.git] / TRD / AliTRDtrack.cxx
index c10c52a487bb53024f483ac1e7b0031f61961acf..2a60b2256f9eeee35a6f7a5d7f1161a0c14cdcf2 100644 (file)
@@ -211,7 +211,9 @@ AliTRDtrack::AliTRDtrack(const AliESDtrack& t)
   //Conversion of the covariance matrix
   Double_t c[15]; t.GetExternalCovariance(c);
   if (t.GetStatus()&AliESDtrack::kTRDbackup){
-    t.GetTRDExternalParameters(x,p,c);
+    t.GetTRDExternalParameters(x,fAlpha,p,c);
+    if      (fAlpha < -TMath::Pi()) fAlpha += 2*TMath::Pi();
+    else if (fAlpha >= TMath::Pi()) fAlpha -= 2*TMath::Pi();
   }
 
   fX=x;