]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/tracking-ca/AliHLTTPCCAStartHitsSorter.h
coverity 17742 fixed
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAStartHitsSorter.h
1 //-*- Mode: C++ -*-
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 //*************************************************************************
8
9 #ifndef ALIHLTTPCCASTARTHITSSORTER_H
10 #define ALIHLTTPCCASTARTHITSSORTER_H
11
12 #include "AliHLTTPCCADef.h"
13 #include "AliHLTTPCCAHitId.h"
14
15 class AliHLTTPCCATracker;
16
17 /**
18  * @class AliHLTTPCCAStartHitsSorter
19  *
20  */
21 class AliHLTTPCCAStartHitsSorter
22 {
23   public:
24     class AliHLTTPCCASharedMemory
25     {
26         friend class AliHLTTPCCAStartHitsSorter;
27       public:
28 #if !defined(HLTCA_GPUCODE)
29         AliHLTTPCCASharedMemory()
30             : fStartRow( 0 ), fNRows( 0 ), fStartOffset( 0 ) {}
31
32         AliHLTTPCCASharedMemory( const AliHLTTPCCASharedMemory& /*dummy*/ )
33             : fStartRow( 0 ), fNRows( 0 ), fStartOffset( 0 ) {}
34         AliHLTTPCCASharedMemory& operator=( const AliHLTTPCCASharedMemory& /*dummy*/ ) { return *this; }
35 #endif //!HLTCA_GPUCODE
36
37       protected:
38         int fStartRow;          // start row index
39         int fNRows;                     // number of rows to process
40                 int fStartOffset;       //start offset for hits sorted by this block
41     };
42
43     GPUd() static int NThreadSyncPoints() { return 1; }
44
45     GPUd() static void Thread( int nBlocks, int nThreads, int iBlock, int iThread, int iSync,
46                                AliHLTTPCCASharedMemory &smem, AliHLTTPCCATracker &tracker );
47 };
48
49
50 #endif //ALIHLTTPCCASTARTHITSSORTER_H