]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/tracking-ca/AliHLTTPCCASliceOutput.h
changes from Matthias
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCASliceOutput.h
index e2cb0a161b29335181f0248558647e7e03aa7c74..49e0ae3fe8031422102192673f99887eae790b36 100644 (file)
@@ -67,31 +67,7 @@ class AliHLTTPCCASliceOutput
     float2   *fClusterUnpackedYZ;   // pointer to cluster coordinates (temporary data, for debug proposes)
     float    *fClusterUnpackedX;   // pointer to cluster coordinates (temporary data, for debug proposes)
     UChar_t  *fClusterPackedAmp;    // pointer to packed cluster amplitudes
-
+    char fMemory[1]; // the memory where the pointers above point into
 };
 
-
-
-GPUhd() inline int AliHLTTPCCASliceOutput::EstimateSize( int nOfTracks, int nOfTrackClusters )
-{
-  // calculate the amount of memory [bytes] needed for the event
-
-  const int kClusterDataSize = sizeof( unsigned int ) + sizeof( unsigned short ) + sizeof( float2 ) + sizeof( float ) + sizeof( UChar_t );
-
-  return sizeof( AliHLTTPCCASliceOutput ) + sizeof( AliHLTTPCCASliceTrack )*nOfTracks + kClusterDataSize*nOfTrackClusters;
-}
-
-
-GPUhd() inline void AliHLTTPCCASliceOutput::SetPointers()
-{
-  // set all pointers
-
-  fTracks            = ( AliHLTTPCCASliceTrack* )( ( &fClusterPackedAmp ) + 1 );
-  fClusterUnpackedYZ = ( float2* )  ( fTracks   + fNTracks );
-  fClusterUnpackedX  = ( float* )   ( fClusterUnpackedYZ + fNTrackClusters );
-  fClusterIDrc       = ( unsigned int* )  ( fClusterUnpackedX  + fNTrackClusters );
-  fClusterPackedYZ   = ( unsigned short* )( fClusterIDrc       + fNTrackClusters );
-  fClusterPackedAmp  = ( UChar_t* ) ( fClusterPackedYZ + fNTrackClusters );
-}
-
 #endif