Using TMath::Abs instead of fabs
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jul 2004 05:15:26 +0000 (05:15 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jul 2004 05:15:26 +0000 (05:15 +0000)
HBTAN/AliHBTNonId3DCorrFctn.cxx
HBTAN/AliHBTWeightNonId3DCorrFctn.cxx
HBTAN/AliHBTWeightNonId3DTheorCorrFctn.cxx

index e79be27..9006ec7 100644 (file)
@@ -204,7 +204,7 @@ void AliHBTNonId3DCorrFctn::ProcessSameEventParticles(AliHBTPair* pair)
     pair = CheckPair(pair);
     if(pair == 0x0) return;
  
-    double tKStar = fabs(pair->GetKStar());
+    double tKStar = TMath::Abs(pair->GetKStar());
     double tKStarOut = pair->GetKStarOut();
     double tKStarSide = pair->GetKStarSide();
     double tKStarLong = pair->GetKStarLong();
@@ -274,7 +274,7 @@ void AliHBTNonId3DCorrFctn::Init()
 void AliHBTNonId3DCorrFctn::ProcessDiffEventParticles(AliHBTPair* pair)
 {
 
-    double tKStar = fabs(pair->GetKStar());
+    double tKStar = TMath::Abs(pair->GetKStar());
     double tKStarOut = pair->GetKStarOut();
     double tKStarSide = pair->GetKStarSide();
     double tKStarLong = pair->GetKStarLong();
index 0d34f0f..2a8b9e2 100644 (file)
@@ -146,7 +146,7 @@ void AliHBTWeightNonId3DCorrFctn::ProcessSameEventParticles(AliHBTPair* trackpai
     if(partpair == 0x0) return;
     if(trackpair == 0x0) return;
  
-    double tKStar = fabs(trackpair->GetKStar());
+    double tKStar = TMath::Abs(trackpair->GetKStar());
     double tKStarOut = trackpair->GetKStarOut();
     double tKStarSide = trackpair->GetKStarSide();
     double tKStarLong = trackpair->GetKStarLong();
@@ -200,7 +200,7 @@ void AliHBTWeightNonId3DCorrFctn::ProcessDiffEventParticles(AliHBTPair* trackpai
   trackpair = CheckPair(trackpair);
   partpair  = CheckPair(partpair);
 
-  double tKStar = fabs(partpair->GetKStar());
+  double tKStar = TMath::Abs(partpair->GetKStar());
   double tKStarOut = trackpair->GetKStarOut();
   double tKStarSide = trackpair->GetKStarSide();
   double tKStarLong = trackpair->GetKStarLong();
index d8be030..9708a80 100644 (file)
@@ -144,7 +144,7 @@ void AliHBTWeightNonId3DTheorCorrFctn::ProcessSameEventParticles(AliHBTPair* par
     partpair = CheckPair(partpair);
     if(partpair == 0x0) return;
  
-    double tKStar = fabs(partpair->GetKStar());
+    double tKStar = TMath::Abs(partpair->GetKStar());
     double tKStarOut = partpair->GetKStarOut();
     double tKStarSide = partpair->GetKStarSide();
     double tKStarLong = partpair->GetKStarLong();
@@ -193,7 +193,7 @@ void AliHBTWeightNonId3DTheorCorrFctn::ProcessDiffEventParticles(AliHBTPair* par
 
   partpair  = CheckPair(partpair);
 
-  double tKStar = fabs(partpair->GetKStar());
+  double tKStar = TMath::Abs(partpair->GetKStar());
   double tKStarOut = partpair->GetKStarOut();
   double tKStarSide = partpair->GetKStarSide();
   double tKStarLong = partpair->GetKStarLong();