]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/tracking-ca/AliHLTTPCCATracklet.h
Obsolete tracker output removed
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCATracklet.h
index 5871c81c6272647e46babb43be1612e9071dc9aa..96338606c3ea869ac48469846707a5682ea2a17e 100644 (file)
@@ -10,7 +10,8 @@
 #define ALIHLTTPCCATRACKLET_H
 
 #include "AliHLTTPCCADef.h"
-#include "AliHLTTPCCATrackParam.h"
+#include "AliHLTTPCCABaseTrackParam.h"
+#include "AliHLTTPCCAGPUConfig.h"
 
 /**
  * @class ALIHLTTPCCATracklet
@@ -23,35 +24,34 @@ class AliHLTTPCCATracklet
   public:
 
 #if !defined(HLTCA_GPUCODE)
-    AliHLTTPCCATracklet() : fStartHitID( 0 ), fNHits( 0 ), fFirstRow( 0 ), fLastRow( 0 ), fParam() {};
+    AliHLTTPCCATracklet() : fNHits( 0 ), fFirstRow( 0 ), fLastRow( 0 ), fParam() {};
     void Dummy() const ;
     ~AliHLTTPCCATracklet() {}
-#endif
+#endif //!HLTCA_GPUCODE
 
-    GPUhd() int StartHitID()            const { return fStartHitID; }
     GPUhd() int  NHits()                const { return fNHits;      }
     GPUhd() int  FirstRow()             const { return fFirstRow;   }
     GPUhd() int  LastRow()              const { return fLastRow;    }
-    GPUhd() const AliHLTTPCCATrackParam &Param() const { return fParam;      }
+    GPUhd() const AliHLTTPCCABaseTrackParam &Param() const { return fParam; }
+#ifndef EXTERN_ROW_HITS
     GPUhd() int  RowHit( int i )   const { return fRowHits[i];    }
+       GPUhd() const int* RowHits()    const                   { return(fRowHits); }
+    GPUhd() void SetRowHit( int irow, int ih )  { fRowHits[irow] = ih;    }
+#endif //EXTERN_ROW_HITS
 
-    GPUhd() void SetStartHitID( int v )           { fStartHitID = v; }
     GPUhd() void SetNHits( int v )               {  fNHits = v;      }
     GPUhd() void SetFirstRow( int v )            {  fFirstRow = v;   }
     GPUhd() void SetLastRow( int v )             {  fLastRow = v;    }
-    GPUhd() void SetParam( const AliHLTTPCCATrackParam &v ) { fParam = v;      }
-    GPUhd() void SetRowHit( int irow, int ih )  { fRowHits[irow] = ih;    }
+    GPUhd() void SetParam( const AliHLTTPCCABaseTrackParam &v ) { fParam = v;      }
 
-#ifndef CUDA_DEVICE_EMULATION
   private:
-#endif
-
-    int fStartHitID;            // ID of the starting hit
     int fNHits;                 // N hits
     int fFirstRow;              // first TPC row
     int fLastRow;               // last TPC row
-    AliHLTTPCCATrackParam fParam; // tracklet parameters
-    int fRowHits[160];          // hit index for each TPC row
+    AliHLTTPCCABaseTrackParam fParam; // tracklet parameters
+#ifndef EXTERN_ROW_HITS
+    int fRowHits[HLTCA_ROW_COUNT + 1];          // hit index for each TPC row
+#endif //EXTERN_ROW_HITS
 };
 
-#endif
+#endif //ALIHLTTPCCATRACKLET_H