]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODRecoDecay.cxx
Take absolute value of daughter label in MatchToMC, to keep fakes in PbPb.
[u/mrichter/AliRoot.git] / STEER / AliAODRecoDecay.cxx
index 6cbff570f41ec1be21a101b9b5ee3bf88e655d13..343ca42690b5f0894537996012c432826a0f8d33 100644 (file)
@@ -553,7 +553,7 @@ Int_t AliAODRecoDecay::MatchToMC(Int_t pdgabs,TClonesArray *mcArray,
   // loop on daughter labels
   for(i=0; i<ndg; i++) {
     labMom[i]=-1;
-    lab = dgLabels[i];
+    lab = TMath::Abs(dgLabels[i]);
     if(lab<0) {
       printf("daughter with negative label %d\n",lab);
       return -1;