]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Take absolute value of daughter label in MatchToMC, to keep fakes in PbPb.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Feb 2011 12:46:08 +0000 (12:46 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Feb 2011 12:46:08 +0000 (12:46 +0000)
A. Dainese

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;