]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/tracking-ca/AliHLTTPCCAGrid.cxx
update of GPU tracker from David Rohr
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAGrid.cxx
index 89d51e02130b626201ebfd3003187c60e366071a..eacbaab4c91c7465c0293e05255dca016353b5a1 100644 (file)
 
 #include "AliHLTTPCCAGrid.h"
 #include "AliHLTTPCCAMath.h"
+
+#ifndef assert
 #include <assert.h>
+#endif
+
 #include <iostream>
 
 GPUd() void AliHLTTPCCAGrid::CreateEmpty()
@@ -65,8 +69,10 @@ GPUd() int AliHLTTPCCAGrid::GetBin( float Y, float Z ) const
   const int yBin = static_cast<int>( CAMath::FMulRZ( Y - fYMin, fStepYInv ) );
   const int zBin = static_cast<int>( CAMath::FMulRZ( Z - fZMin, fStepZInv ) );
   const int bin = CAMath::Mul24( zBin, fNy ) + yBin;
+#ifndef HLTCA_GPUCODE
   assert( bin >= 0 );
   assert( bin < static_cast<int>( fN ) );
+#endif
   return bin;
 }