]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
correct calculation of cluster error for Riemann fit
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 6 Jun 2009 14:45:58 +0000 (14:45 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 6 Jun 2009 14:45:58 +0000 (14:45 +0000)
TRD/AliTRDtrackerV1.cxx

index f2b873589f480f0d6d1105a8765e113917ba4e39..9b5b991db3dd9e711bc6adb19b3d49d47e947941 100644 (file)
@@ -1026,7 +1026,7 @@ Float_t AliTRDtrackerV1::FitTiltedRiemanConstraint(AliTRDseedV1 *tracklets, Doub
       uvt[0] = 2. * x * t;
       uvt[1] = 2. * x * t * tilt ;
       w = 2. * (y + tilt * (z - zVertex)) * t;
-      error = 2. * TMath::Sqrt(cl->GetSigmaY2()) * t;
+      error = 2. * TMath::Sqrt(cl->GetSigmaY2()+tilt*tilt*cl->GetSigmaZ2()) * t;
       fitter->AddPoint(uvt, w, error);
       nPoints++;
     }
@@ -1126,7 +1126,7 @@ Float_t AliTRDtrackerV1::FitTiltedRieman(AliTRDseedV1 *tracklets, Bool_t sigErro
       w = 2. * (y + tilt*z) * t;
       // error definition changes for the different calls
       we = 2. * t;
-      we *= sigError ? TMath::Sqrt(cl->GetSigmaY2()) : 0.2;
+      we *= sigError ? TMath::Sqrt(cl->GetSigmaY2()+tilt*tilt*cl->GetSigmaZ2()) : 0.2;
       fitter->AddPoint(uvt, w, we);
       zfitter.AddPoint(&x, z, static_cast<Double_t>(TMath::Sqrt(cl->GetSigmaZ2())));
       nPoints++;