]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
check of non-diagonal elements of the covariance matrix is added to the CheckNumerica...
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Oct 2009 05:52:59 +0000 (05:52 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Oct 2009 05:52:59 +0000 (05:52 +0000)
HLT/TPCLib/tracking-ca/AliHLTTPCCATrackParam.cxx

index dec5e8ddb29ea4af4cdb2ca6c2fa4de84d7be8d7..c358e8bd4eb3b54907751febb42419c0a43074eb 100644 (file)
@@ -683,7 +683,19 @@ GPUd() bool AliHLTTPCCATrackParam::CheckNumericalQuality() const
 
   if ( CAMath::Abs( SinPhi() ) > .99 ) ok = 0;
   if ( CAMath::Abs( QPt() ) > 1. / 0.05 ) ok = 0;
-
+  if( ok ){
+    ok = ok 
+      && ( c[1]*c[1]<=c[2]*c[0] )
+      && ( c[3]*c[3]<=c[5]*c[0] )
+      && ( c[4]*c[4]<=c[5]*c[2] )
+      && ( c[6]*c[6]<=c[9]*c[0] )
+      && ( c[7]*c[7]<=c[9]*c[2] )
+      && ( c[8]*c[8]<=c[9]*c[5] )
+      && ( c[10]*c[10]<=c[14]*c[0] )
+      && ( c[11]*c[11]<=c[14]*c[2] )
+      && ( c[12]*c[12]<=c[14]*c[5] )
+      && ( c[13]*c[13]<=c[14]*c[9] );      
+  }
   return ok;
 }