]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Logic Fix
authorddobrigk <david.dobrigkeit.chinellato@cern.ch>
Thu, 14 Aug 2014 18:27:30 +0000 (15:27 -0300)
committerddobrigk <david.dobrigkeit.chinellato@cern.ch>
Mon, 25 Aug 2014 12:24:13 +0000 (09:24 -0300)
PWGLF/STRANGENESS/Cascades/AliAnalysisTaskExtractCascade.cxx
PWGLF/STRANGENESS/Cascades/AliAnalysisTaskExtractPerformanceCascade.cxx

index 2613eea44f25f5a4bfce584ae4e89cdd057bfc31..13e3c183b79e839e6f2f48a3921f760fe838bd2c 100644 (file)
@@ -1431,7 +1431,7 @@ void AliAnalysisTaskExtractCascade::UserExec(Option_t *)
       // if both tracks are the same ones as the cascades V0 daughter tracks, then the V0 belongs to the cascade being analysed; so avoid it
     if ((posV0TrackIdx == lIdxPosXi) || (negV0TrackIdx == lIdxNegXi)) {
     DCAV0DaughtersDiff = lDcaV0DaughtersXi - v0->GetDcaV0Daughters();
-    if( fTreeCascVarDeltaDCA > DCAV0DaughtersDiff ) fTreeCascVarDeltaDCA = DCAV0DaughtersDiff;
+    if( fTreeCascVarDeltaDCA < DCAV0DaughtersDiff ) fTreeCascVarDeltaDCA = DCAV0DaughtersDiff;
       if ( lDcaV0DaughtersXi > v0->GetDcaV0Daughters() )  {    // DCA comparison criterion
         fTreeCascVarBadCascadeJai = kTRUE;
       } //end DCA comparison 
index 161ec598664ec2e3d4eb2c60536333114d8ca66d..a00e1b7f27e4e586b6c5b7f32a4a267f6fb50778 100644 (file)
@@ -2824,7 +2824,7 @@ void AliAnalysisTaskExtractPerformanceCascade::UserExec(Option_t *)
       // if both tracks are the same ones as the cascades V0 daughter tracks, then the V0 belongs to the cascade being analysed; so avoid it
     if ((posV0TrackIdx == lIdxPosXi) || (negV0TrackIdx == lIdxNegXi)) {
     DCAV0DaughtersDiff = lDcaV0DaughtersXi - v0->GetDcaV0Daughters();
-    if( fTreeCascVarDeltaDCA > DCAV0DaughtersDiff ) fTreeCascVarDeltaDCA = DCAV0DaughtersDiff;
+    if( fTreeCascVarDeltaDCA < DCAV0DaughtersDiff ) fTreeCascVarDeltaDCA = DCAV0DaughtersDiff;
       if ( lDcaV0DaughtersXi > v0->GetDcaV0Daughters() )  {    // DCA comparison criterion
         fTreeCascVarBadCascadeJai = kTRUE;
       } //end DCA comparison