Bug fix: fabs(DCA)
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 19:58:45 +0000 (19:58 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 19:58:45 +0000 (19:58 +0000)
ANALYSIS/AliESDtrackCuts.cxx

index 5478af2fe700a41c2f771dad78e7db9e12e9ae97..75d3bfab2760f64b8228e62220a1bd77b16d3d13 100644 (file)
@@ -660,9 +660,9 @@ AliESDtrackCuts::AcceptTrack(AliESDtrack* esdTrack) {
     cuts[20] = kTRUE;
   if (dcaToVertex > fCutDCAToVertex)
     cuts[21] = kTRUE;
-  if (dcaToVertexXY > fCutDCAToVertexXY)
+  if (TMath::Abs(dcaToVertexXY) > fCutDCAToVertexXY)
     cuts[22] = kTRUE;
-  if (dcaToVertexZ > fCutDCAToVertexZ)
+  if (TMath::Abs(dcaToVertexZ) > fCutDCAToVertexZ)
     cuts[23] = kTRUE;
 
   Bool_t cut=kFALSE;