Fix
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Mar 2012 13:03:04 +0000 (13:03 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Mar 2012 13:03:04 +0000 (13:03 +0000)
PWGHF/vertexingHF/charmFlow/AliAnalysisTaskFlowD2H.cxx

index 4a88028c9bd3d3256dc51517a7c1a3a82bd065e1..c3dd3eb8e112c32c40204e0944118c578455e5a4 100644 (file)
@@ -285,7 +285,7 @@ void AliAnalysisTaskFlowD2H::FillD0toKpi(AliAODEvent *theAOD,
             for(Int_t iRPs=0; iRPs!=theMB[r]->NumberOfTracks(); ++iRPs) {
               AliFlowTrack *iRP = (AliFlowTrack*) (theMB[r]->GetTrack(iRPs));
               if(!iRP->InRPSelection()) continue;
-              if( fabs(sTrack->GetIDDaughter(iDau)) == fabs(iRP->GetID()) ) {
+              if( TMath::Abs(sTrack->GetIDDaughter(iDau)) == TMath::Abs(iRP->GetID()) ) {
                 sTrack->SetDaughter(iDau,iRP);
                 iRP->SetForRPSelection(kFALSE);
                 if(fDebugV2) printf("    ᶫdaughter%d with fID %d was removed from this RP set\n", iDau, sTrack->GetIDDaughter(iDau));
@@ -340,7 +340,7 @@ void AliAnalysisTaskFlowD2H::FillDStartoKpipi(const AliAODEvent *theAOD,
             for(Int_t iRPs=0; iRPs!=theMB[r]->NumberOfTracks(); ++iRPs) {
               AliFlowTrack *iRP = (AliFlowTrack*) (theMB[r]->GetTrack(iRPs));
               if(!iRP->InRPSelection()) continue;
-              if( fabs(sTrack->GetIDDaughter(iDau)) == fabs(iRP->GetID()) ) {
+              if( TMath::Abs(sTrack->GetIDDaughter(iDau)) == TMath::Abs(iRP->GetID()) ) {
                 sTrack->SetDaughter(iDau,iRP);
                 iRP->SetForRPSelection(kFALSE);
                 if(fDebugV2) printf("    ᶫdaughter%d with fID %d was removed from this RP set\n", iDau, sTrack->GetIDDaughter(iDau));
@@ -394,7 +394,7 @@ void AliAnalysisTaskFlowD2H::FillDplustoKpipi(const AliAODEvent *theAOD,
             for(Int_t iRPs=0; iRPs!=theMB[r]->NumberOfTracks(); ++iRPs) {
               AliFlowTrack *iRP = (AliFlowTrack*) (theMB[r]->GetTrack(iRPs));
               if(!iRP->InRPSelection()) continue;
-              if( fabs(sTrack->GetIDDaughter(iDau)) == fabs(iRP->GetID()) ) {
+              if( TMath::Abs(sTrack->GetIDDaughter(iDau)) == TMath::Abs(iRP->GetID()) ) {
                 sTrack->SetDaughter(iDau,iRP);
                 iRP->SetForRPSelection(kFALSE);
                 if(fDebugV2) printf("    ᶫdaughter%d with fID %d was removed from this RP set\n", iDau, sTrack->GetIDDaughter(iDau));