DCA has sign - correct cut to use absolute value
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jan 2010 15:57:11 +0000 (15:57 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jan 2010 15:57:11 +0000 (15:57 +0000)
PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoESDTrackCut.cxx

index 9f6ee68..199b6ae 100644 (file)
@@ -164,10 +164,10 @@ bool AliFemtoESDTrackCut::Pass(const AliFemtoTrack* track)
       return false;
     }
        
-  if (fMaxImpactXY < track->ImpactD())
+  if (fMaxImpactXY < TMath::Abs(track->ImpactD()))
     return false;
 
-  if (fMaxImpactZ < track->ImpactZ())
+  if (fMaxImpactZ < TMath::Abs(track->ImpactZ()))
     return false;
   
   if (fMaxSigmaToVertex < track->SigmaToVertex()) {