]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/tracking-ca/AliHLTTPCCAStartHitsFinder.h
Fit mathematics improved, obsollete GBTracker cleaned up
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAStartHitsFinder.h
CommitLineData
00d07bcd 1//-*- Mode: C++ -*-
ce565086 2// ************************************************************************
3// This file is property of and copyright by the ALICE HLT Project *
4// ALICE Experiment at CERN, All rights reserved. *
5// See cxx source for full Copyright notice *
6// *
7//*************************************************************************
00d07bcd 8
9#ifndef ALIHLTTPCCASTARTHITSFINDER_H
10#define ALIHLTTPCCASTARTHITSFINDER_H
11
12#include "AliHLTTPCCADef.h"
13
14class AliHLTTPCCATracker;
15
16/**
17 * @class AliHLTTPCCAStartHitsFinder
18 *
19 */
20class AliHLTTPCCAStartHitsFinder
21{
22 public:
23 class AliHLTTPCCASharedMemory
24 {
25 friend class AliHLTTPCCAStartHitsFinder;
26 public:
27 #if !defined(HLTCA_GPUCODE)
28 AliHLTTPCCASharedMemory()
29 : fIRow(0), fNRows(0), fNHits(0), fHitLinkDown(0), fHitLinkUp(0), fNOldStartHits(0), fNRowStartHits(0)
30 {}
31
32 AliHLTTPCCASharedMemory( const AliHLTTPCCASharedMemory& /*dummy*/)
33 : fIRow(0), fNRows(0), fNHits(0), fHitLinkDown(0), fHitLinkUp(0), fNOldStartHits(0), fNRowStartHits(0)
34 {}
35 AliHLTTPCCASharedMemory& operator=(const AliHLTTPCCASharedMemory& /*dummy*/){ return *this; }
36#endif
37 protected:
38 Int_t fIRow; // row index
39 Int_t fNRows; // n rows
40 Int_t fNHits; // n hits in the row
41 Short_t *fHitLinkDown; // pointer to down link array
42 Short_t *fHitLinkUp; // pointer to the up link array
ce565086 43 Int_t fRowStartHits[10240]; // temp. array for the start hits
00d07bcd 44 Int_t fNOldStartHits; // n start hits from other jobs
45 Int_t fNRowStartHits; // n start hits for this row
46 };
47
48 GPUd() static Int_t NThreadSyncPoints(){ return 3; }
49
50 GPUd() static void Thread( Int_t nBlocks, Int_t nThreads, Int_t iBlock, Int_t iThread, Int_t iSync,
51 AliHLTTPCCASharedMemory &smem, AliHLTTPCCATracker &tracker );
52};
53
54
55#endif