Additional cast
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 May 2007 12:40:14 +0000 (12:40 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 May 2007 12:40:14 +0000 (12:40 +0000)
HLT/PHOS/AliHLTPHOSClusterizer.cxx

index 30b0845..4281f31 100644 (file)
@@ -234,7 +234,7 @@ AliHLTPHOSClusterizer::CalculateCenterOfGravity(AliHLTPHOSRecPointDataStruct* re
        {                         
          xi = x + i;
          zj = z + j;
-         w = TMath::Max( (Float_t)0., w0 + log( fEnergyArray[x+i][z+j] / fEnergyArray[x][z] ) ) ;
+         w = TMath::Max( (Float_t)0., (Float_t)(w0 + log( fEnergyArray[x+i][z+j] / fEnergyArray[x][z]) ) ) ;
          xt += xi * w ;
          zt += zj * w ;
          wtot += w ;