Using TMath::Power instead of pow
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Aug 2007 06:58:02 +0000 (06:58 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Aug 2007 06:58:02 +0000 (06:58 +0000)
TRD/AliTRDSimParam.cxx

index 123208f..9784215 100644 (file)
@@ -375,7 +375,7 @@ void AliTRDSimParam::SampleTRF()
                index = i+6;
                if(index >= kNpasa) break;
                x += .02;
-               signal[index]=k1*(pow((x-t0)/t1, 2.5)*(exp(-(x-t0)/t1))+k2*exp(-(x-t0)/t2));
+               signal[index]=k1*(TMath::Power((x-t0)/t1, 2.5)*(exp(-(x-t0)/t1))+k2*exp(-(x-t0)/t2));
        }
 
        Float_t xtalk[kNpasa];