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 e79be278f0f6448c6d8143282d447941aaf96a7b..9006ec73a24cbc0a69b81f8a670b32b5b03f8062 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 0d34f0fc8baaac07906bdff6ff6c077a7c1f3933..2a8b9e2c950e42965785e4c69fa92d78d50f204d 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 d8be0300c8231286e17503ebb0bcb05a902e6b3f..9708a802b251e54f6f96323a3cdc863f1caa5a7f 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();