#include "AliHLTTPCCAMath.h"
#include "AliHLTTPCCATrackParam.h"
+#if !defined(__OPENCL__) || defined(HLTCA_HOSTCODE)
#include <iostream>
-
+#endif
/**
* @class ALIHLTTPCCAParam
* The class is under construction.
*
*/
-class AliHLTTPCCAParam
+MEM_CLASS_PRE() class AliHLTTPCCAParam
{
public:
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
-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 );
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