]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFtracker.cxx
Rev.35398 propagated to the trunk and wrong matching deficit avoided -due to cov...
[u/mrichter/AliRoot.git] / TOF / AliTOFtracker.cxx
index f4e3c238e12e416b81e0f3984d5dbe259be6b400..0adfcbae76e9fd1ee29f35d5e10a5b478d38f4ad 100644 (file)
@@ -402,16 +402,16 @@ void AliTOFtracker::MatchTracks( Bool_t mLastStep){
 
     if (cov[0]<0. || cov[2]<0.) {
       AliWarning(Form("Very strange track (%d)! At least one of its covariance matrix diagonal elements is negative!",iseed));
-      delete trackTOFin;
-      continue;
+      //delete trackTOFin;
+      //continue;
     }
 
     Double_t dphi=
       scaleFact*
-      ((5*TMath::Sqrt(cov[0]) + 0.5*dY + 2.5*TMath::Abs(par[2]))/sensRadius); 
+      ((5*TMath::Sqrt(TMath::Abs(cov[0])) + 0.5*dY + 2.5*TMath::Abs(par[2]))/sensRadius); 
     Double_t dz=
        scaleFact*
-       (5*TMath::Sqrt(cov[2]) + 0.5*dZ + 2.5*TMath::Abs(par[3]));
+       (5*TMath::Sqrt(TMath::Abs(cov[2])) + 0.5*dZ + 2.5*TMath::Abs(par[3]));
 
     Double_t phi=TMath::ATan2(par[0],x) + trackTOFin->GetAlpha();
     if (phi<-TMath::Pi())phi+=2*TMath::Pi();