]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/tracking-ca/AliHLTTPCCAParam.h
OpenCL version of the HLT tracker added (the new code is not used in standard compila...
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAParam.h
index b72328fa108abe35c1bef03e3c984fbeb97e599c..e55c5c8461bd30685dbb9463dcc0d9cdc42c4a4c 100644 (file)
@@ -14,8 +14,9 @@
 #include "AliHLTTPCCAMath.h"
 #include "AliHLTTPCCATrackParam.h"
 
+#if !defined(__OPENCL__) || defined(HLTCA_HOSTCODE)
 #include <iostream>
-
+#endif
 
 /**
  * @class ALIHLTTPCCAParam
@@ -25,7 +26,7 @@
  * The class is under construction.
  *
  */
-class AliHLTTPCCAParam
+MEM_CLASS_PRE() class AliHLTTPCCAParam
 {
   public:
        AliHLTTPCCAParam();
@@ -115,19 +116,21 @@ class AliHLTTPCCAParam
     GPUd() void GetClusterErrors2( int row, float z, float sinPhi, float cosPhi, float DzDs, float &Err2Y, float &Err2Z ) const;
     GPUd() void GetClusterErrors2v1( int rowType, float z, float sinPhi, float cosPhi, float DzDs, float &Err2Y, float &Err2Z ) const;
 
+#if !defined(__OPENCL__) || defined(HLTCA_HOSTCODE)
     void WriteSettings( std::ostream &out ) const;
     void ReadSettings( std::istream &in );
+#endif
 
     GPUd() void SetParamS0Par( int i, int j, int k, float val ) {
       fParamS0Par[i][j][k] = val;
     }
   
-    GPUd() const float *GetParamS0Par(int i, int j) const { return fParamS0Par[i][j]; }
+    GPUd() const MakeType(float*) GetParamS0Par(int i, int j) const { return fParamS0Par[i][j]; }
  
     GPUd() float GetBzkG() const { return fBzkG;}
     GPUd() float GetConstBz() const { return fConstBz;}
     GPUd() float GetBz( float x, float y, float z ) const;
-    GPUd()  float GetBz( const AliHLTTPCCATrackParam &t ) const;
+       MEM_CLASS_PRE2() GPUd() float GetBz( const MEM_LG2(AliHLTTPCCATrackParam) &t ) const {return GetBz( t.X(), t.Y(), t.Z() );}
 
   protected:
     int fISlice; // slice number
@@ -165,7 +168,7 @@ class AliHLTTPCCAParam
 
 
 
-GPUd() inline float AliHLTTPCCAParam::GetBz( float x, float y, float z ) const
+MEM_CLASS_PRE() GPUd() inline float MEM_LG(AliHLTTPCCAParam)::GetBz( float x, float y, float z ) const
 {
   float r2 = x * x + y * y;
   float r  = CAMath::Sqrt( r2 );
@@ -173,9 +176,4 @@ GPUd() inline float AliHLTTPCCAParam::GetBz( float x, float y, float z ) const
   return ( c[0] + c[1]*z  + c[2]*r  + c[3]*z*z + c[4]*z*r + c[5]*r2 );
 }
 
-GPUd() inline float AliHLTTPCCAParam::GetBz( const AliHLTTPCCATrackParam &t ) const
-{
-  return GetBz( t.X(), t.Y(), t.Z() );
-}
-
 #endif //ALIHLTTPCCAPARAM_H