]>
Commit | Line | Data |
---|---|---|
251bbe89 | 1 | //-*- Mode: C++ -*- |
ce565086 | 2 | // ************************************************************************ |
fbb9b71b | 3 | // This file is property of and copyright by the ALICE HLT Project * |
ce565086 | 4 | // ALICE Experiment at CERN, All rights reserved. * |
5 | // See cxx source for full Copyright notice * | |
6 | // * | |
7 | //************************************************************************* | |
251bbe89 | 8 | |
9 | #ifndef ALIHLTTPCCATRACKLET_H | |
10 | #define ALIHLTTPCCATRACKLET_H | |
11 | ||
12 | #include "AliHLTTPCCADef.h" | |
5cb6ddd4 | 13 | #include "AliHLTTPCCABaseTrackParam.h" |
b22af1bf | 14 | #include "AliHLTTPCCAGPUConfig.h" |
251bbe89 | 15 | |
16 | /** | |
17 | * @class ALIHLTTPCCATracklet | |
18 | * | |
19 | * The class describes the reconstructed TPC track candidate. | |
20 | * The class is dedicated for internal use by the AliHLTTPCCATracker algorithm. | |
21 | */ | |
43422963 | 22 | MEM_CLASS_PRE() class AliHLTTPCCATracklet |
251bbe89 | 23 | { |
fbb9b71b | 24 | public: |
251bbe89 | 25 | |
26 | #if !defined(HLTCA_GPUCODE) | |
6f0cdd46 | 27 | AliHLTTPCCATracklet() : fNHits( 0 ), fFirstRow( 0 ), fLastRow( 0 ), fParam(), fHitWeight(0) {}; |
fbb9b71b | 28 | void Dummy() const ; |
29 | ~AliHLTTPCCATracklet() {} | |
31649d4b | 30 | #endif //!HLTCA_GPUCODE |
251bbe89 | 31 | |
fbb9b71b | 32 | GPUhd() int NHits() const { return fNHits; } |
33 | GPUhd() int FirstRow() const { return fFirstRow; } | |
34 | GPUhd() int LastRow() const { return fLastRow; } | |
6f0cdd46 | 35 | GPUhd() int HitWeight() const { return fHitWeight; } |
43422963 | 36 | GPUhd() MakeType(const MEM_LG(AliHLTTPCCABaseTrackParam)&) Param() const { return fParam; } |
b22af1bf | 37 | #ifndef EXTERN_ROW_HITS |
fbb9b71b | 38 | GPUhd() int RowHit( int i ) const { return fRowHits[i]; } |
b22af1bf | 39 | GPUhd() const int* RowHits() const { return(fRowHits); } |
31649d4b | 40 | GPUhd() void SetRowHit( int irow, int ih ) { fRowHits[irow] = ih; } |
41 | #endif //EXTERN_ROW_HITS | |
fbb9b71b | 42 | |
fbb9b71b | 43 | GPUhd() void SetNHits( int v ) { fNHits = v; } |
44 | GPUhd() void SetFirstRow( int v ) { fFirstRow = v; } | |
45 | GPUhd() void SetLastRow( int v ) { fLastRow = v; } | |
43422963 | 46 | MEM_CLASS_PRE2() GPUhd() void SetParam( const MEM_LG2(AliHLTTPCCABaseTrackParam) &v ) { fParam = reinterpret_cast<const MEM_LG(AliHLTTPCCABaseTrackParam)&>(v); } |
6f0cdd46 | 47 | GPUhd() void SetHitWeight( const int w) { fHitWeight = w; } |
fbb9b71b | 48 | |
b22af1bf | 49 | private: |
fbb9b71b | 50 | int fNHits; // N hits |
51 | int fFirstRow; // first TPC row | |
52 | int fLastRow; // last TPC row | |
43422963 | 53 | MEM_LG(AliHLTTPCCABaseTrackParam) fParam; // tracklet parameters |
b22af1bf | 54 | #ifndef EXTERN_ROW_HITS |
55 | int fRowHits[HLTCA_ROW_COUNT + 1]; // hit index for each TPC row | |
31649d4b | 56 | #endif //EXTERN_ROW_HITS |
6f0cdd46 | 57 | int fHitWeight; //Hit Weight of Tracklet |
251bbe89 | 58 | }; |
59 | ||
31649d4b | 60 | #endif //ALIHLTTPCCATRACKLET_H |