Using TMath::Abs instead of fabs
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Mar 2004 13:09:01 +0000 (13:09 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Mar 2004 13:09:01 +0000 (13:09 +0000)
ITS/AliITSVertexerIons.cxx

index f381f8d..ce21ead 100644 (file)
@@ -334,7 +334,7 @@ Double_t AliITSVertexerIons::FindMaxAround(Double_t point, TH1F *h, Double_t dis
   for(Int_t i=0;i<h->GetNbinsX();i++) {
     Int_t content=(Int_t)h->GetBinContent(i);
     Double_t center=(Double_t)h->GetBinCenter(i);
-    if(fabs(center-point)>distance) continue;
+    if(TMath::Abs(center-point)>distance) continue;
     if(content>maxcontent) {maxcontent=content;maxbin=i;}
   }
   Double_t max=h->GetBinCenter(maxbin);