]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 9f6ee683a8c49924de1809cbca4f3315d855ac0e..199b6aeea7e72ba2cef77fe03c4b05213cf9e2cc 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()) {