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 123208f15bddf711925dab1d9d3117e91a9c33e7..978421537792e7271eb616b13be25725e50175ea 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];