Take also negative labels
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Sep 2010 13:35:14 +0000 (13:35 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Sep 2010 13:35:14 +0000 (13:35 +0000)
PWG4/JetTasks/AliAnalysisTaskFragmentationFunction.cxx

index 2f4a118..b96474b 100644 (file)
@@ -3227,7 +3227,7 @@ void  AliAnalysisTaskFragmentationFunction::AssociateGenRec(TList* tracksAODMCCh
       
     AliAODTrack* rectrack = dynamic_cast<AliAODTrack*>(tracksRec->At(iRec)); 
 
-    Int_t label = rectrack->GetLabel();
+    Int_t label = TMath::Abs(rectrack->GetLabel());
 
     // find MC track in our list
     AliAODMCParticle* gentrack = 0x0;