Restoring the possibility to reconstruct the tracks in zero magnetic field (Yu.Belikov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Sep 2006 15:37:05 +0000 (15:37 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Sep 2006 15:37:05 +0000 (15:37 +0000)
TPC/AliTPCtrack.cxx

index fce664f..de4d841 100644 (file)
@@ -77,8 +77,7 @@ AliTPCtrack::AliTPCtrack(Double_t x, Double_t alpha, const Double_t p[5],
   //-----------------------------------------------------------------
   // This is the main track constructor.
   //-----------------------------------------------------------------
-
-  Double_t cnv=1./(GetBz()*kB2C);
+  Double_t cnv=1./(AliTracker::GetBz()*kB2C);
 
   Double_t pp[5]={
     p[0],
@@ -101,6 +100,11 @@ AliTPCtrack::AliTPCtrack(Double_t x, Double_t alpha, const Double_t p[5],
     cov[10]*cnv, cov[11]*cnv, c42*cnv, cov[13]*cnv, cov[14]*cnv*cnv
   };
 
+  Double_t p0=TMath::Sign(1/kMostProbablePt,pp[4]);
+  Double_t w0=cc[14]/(cc[14] + p0*p0), w1=p0*p0/(cc[14] + p0*p0);
+  pp[4] = w0*p0 + w1*pp[4]; 
+  cc[10]*=w1; cc[11]*=w1; cc[12]*=w1; cc[13]*=w1; cc[14]*=w1;
+
   Set(x,alpha,pp,cc);
 
   SetNumberOfClusters(1);