From: hristov Date: Wed, 12 Feb 2003 14:28:29 +0000 (+0000) Subject: Using TMath and Riostream X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=0f0615a3787ae2d847abfed84a1f9202e61e29ee;p=u%2Fmrichter%2FAliRoot.git Using TMath and Riostream --- diff --git a/ITS/AliITSDDLRawData.cxx b/ITS/AliITSDDLRawData.cxx index a3c429cd6f5..56f96431abd 100644 --- a/ITS/AliITSDDLRawData.cxx +++ b/ITS/AliITSDDLRawData.cxx @@ -14,9 +14,10 @@ **************************************************************************/ #include -#include +#include "Riostream.h" #include #include +#include "TMath.h" #include #include #include @@ -232,7 +233,7 @@ void AliITSDDLRawData::PackWord(ULong_t &BaseWord, ULong_t Word, Int_t StartBit, ULong_t Sum; //The BaseWord is being filled with 1 from StartBit to StopBit Length=StopBit-StartBit+1; - Sum=(ULong_t)pow(2,Length)-1; + Sum=(ULong_t)TMath::Power(2,Length)-1; if(Word > Sum){ cout<<"WARNING::Word to be filled is not within desired length"<>=StartBit; diff --git a/TPC/AliTPCBuffer160.cxx b/TPC/AliTPCBuffer160.cxx index 26ff2c2e049..2629b6219d9 100644 --- a/TPC/AliTPCBuffer160.cxx +++ b/TPC/AliTPCBuffer160.cxx @@ -17,6 +17,7 @@ #include "Riostream.h" #include #include "AliTPCBuffer160.h" +#include "TMath.h" ClassImp(AliTPCBuffer160) @@ -294,7 +295,7 @@ void AliTPCBuffer160::PackWord(ULong_t &BaseWord, ULong_t Word, Int_t StartBit, ULong_t Sum; //The BaseWord is being filled with 1 from StartBit to StopBit Length=StopBit-StartBit+1; - Sum=(ULong_t)pow(2,Length)-1; + Sum=(ULong_t)TMath::Power(2,Length)-1; if(Word > Sum){ cout<<"WARNING::Word to be filled is not within desired length"<>=StartBit; diff --git a/TPC/AliTPCCompression.cxx b/TPC/AliTPCCompression.cxx index 7bd5e0fd56e..422a6036ab2 100644 --- a/TPC/AliTPCCompression.cxx +++ b/TPC/AliTPCCompression.cxx @@ -15,7 +15,7 @@ #include #include "Riostream.h" -#include +#include "TMath.h" #include "AliTPCCompression.h" #include "AliTPCBuffer160.h" #include "AliTPCHuffman.h" @@ -188,30 +188,30 @@ Int_t AliTPCCompression::FillTables(const char* fSource,AliTPCHTable* table[],co stat<<"Number of Central Samples....."<>fReadBits; fReadBits++; diff --git a/TPC/AliTPCHuffman.cxx b/TPC/AliTPCHuffman.cxx index d20eb0aea54..73405673ca4 100644 --- a/TPC/AliTPCHuffman.cxx +++ b/TPC/AliTPCHuffman.cxx @@ -18,8 +18,7 @@ //////////////////////////////////////////////// #include -#include -#include +#include "Riostream.h" #include "TMath.h" #include "AliTPCHuffman.h" #include "AliTPCBuffer160.h"