X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSIntMap.cxx;h=3d5b2ca41fec252c130febf39f1631128c1115d2;hb=9fa9a24529466cf4bc6a32f9d7962645484bdb16;hp=e786e8752fe62c6bcff6566bd0eaa94781e958ec;hpb=6727e2db6c4c01a8fd22c2e8db31c532eaece212;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSIntMap.cxx b/ITS/AliITSIntMap.cxx index e786e8752fe..3d5b2ca41fe 100644 --- a/ITS/AliITSIntMap.cxx +++ b/ITS/AliITSIntMap.cxx @@ -104,7 +104,7 @@ void AliITSIntMap::InsertNode(Int_t key, Int_t val, AliITSIntMapNode* &node, UIn fNrEntries++; fFastAccess=kFALSE; fFastAccessSerialize=kFALSE; - UInt_t balanceHeight = (UInt_t) (log(fNrEntries+1)/log(2)+1); + UInt_t balanceHeight = (UInt_t) (TMath::Log(fNrEntries+1)/TMath::Log(2)+1); if ( (height-balanceHeight)*(height-balanceHeight) > fNrEntries ) { Balance(); } @@ -198,7 +198,7 @@ AliITSIntMapNode* AliITSIntMap::FindNode(Int_t key, AliITSIntMapNode* node, UIn else if (key>node->Key()) return FindNode(key,node->Right(),height); else { // Match // //*** balance if height too high. const above have to be removed if this is needed *** -// UInt_t balanceHeight = (UInt_t) (log(fNrEntries+1)/log(2)+1); +// UInt_t balanceHeight = (UInt_t) (TMath::Log(fNrEntries+1)/TMath::Log(2)+1); // if ( (height-balanceHeight)*(height-balanceHeight) > fNrEntries ) { // Balance(); // }