fix ME KF usage off in case of AOD (since theres no moving of the vertex in AOD so...
authorjbook <jbook>
Mon, 11 Aug 2014 07:35:46 +0000 (09:35 +0200)
committerjbook <jbook@cern.ch>
Mon, 11 Aug 2014 07:35:46 +0000 (09:35 +0200)
PWGDQ/dielectron/AliDielectron.cxx

index 37eeb02..816138b 100644 (file)
@@ -1243,7 +1243,8 @@ void AliDielectron::FillPairArrays(Int_t arr1, Int_t arr2)
       PairArray(pairIndex)->Add(candidate);
       //get a new candidate
       candidate=new AliDielectronPair;
-         candidate->SetKFUsage(fUseKF);
+      candidate->SetKFUsage(fUseKF);
+      if(!isESD && pairIndex>AliDielectron::kEv1MM) candidate->SetKFUsage(kFALSE);
     }
   }
   //delete the surplus candidate