]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
More precise formula for estimating the covariance matrix of the impact parameters...
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Oct 2006 10:06:03 +0000 (10:06 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Oct 2006 10:06:03 +0000 (10:06 +0000)
STEER/AliESDtrack.cxx

index 0c74baf2becc98b0d372d7b6831092cf724c98b6..02c393f5e7cd280e03f2a015efe1e0e10f85b16d 100644 (file)
@@ -868,9 +868,14 @@ Bool_t AliESDtrack::RelateToVertex
   fZ = GetParameter()[1] - zv;
   
   Double_t cov[6]; vtx->GetCovMatrix(cov);
-  fCdd = GetCovariance()[0] + cov[2];      // neglecting non-diagonals
-  fCdz = GetCovariance()[1];               //     in the vertex's    
-  fCzz = GetCovariance()[2] + cov[5];      //    covariance matrix
+
+  //***** Improvements by A.Dainese
+  alpha=GetAlpha(); sn=TMath::Sin(alpha); cs=TMath::Cos(alpha);
+  Double_t s2ylocvtx = cov[0]*sn*sn + cov[2]*cs*cs - 2.*cov[1]*cs*sn;
+  fCdd = GetCovariance()[0] + s2ylocvtx;   // neglecting correlations
+  fCdz = GetCovariance()[1];               // between (x,y) and z    
+  fCzz = GetCovariance()[2] + cov[5];      // in vertex's covariance matrix
+  //*****
 
   {//Try to constrain 
     Double_t p[2]={yv,zv}, c[3]={cov[2],0.,cov[5]};