]>
Commit | Line | Data |
---|---|---|
1 | //-*- Mode: C++ -*- | |
2 | // @(#) $Id$ | |
3 | ||
4 | //* This file is property of and copyright by the ALICE HLT Project * | |
5 | //* ALICE Experiment at CERN, All rights reserved. * | |
6 | //* See cxx source for full Copyright notice * | |
7 | ||
8 | #ifndef ALIHLTTPCCAROW_H | |
9 | #define ALIHLTTPCCAROW_H | |
10 | ||
11 | ||
12 | #include "Rtypes.h" | |
13 | ||
14 | #include "AliHLTTPCCAHit.h" | |
15 | #include "AliHLTTPCCACell.h" | |
16 | ||
17 | /** | |
18 | * @class ALIHLTTPCCARow | |
19 | * | |
20 | * The ALIHLTTPCCARow class is a hit and cells container for one TPC row. | |
21 | * It is the internal class of the AliHLTTPCCATracker algorithm. | |
22 | * | |
23 | */ | |
24 | class AliHLTTPCCARow | |
25 | { | |
26 | public: | |
27 | ||
28 | AliHLTTPCCARow(); | |
29 | AliHLTTPCCARow ( const AliHLTTPCCARow &); | |
30 | AliHLTTPCCARow &operator=( const AliHLTTPCCARow &); | |
31 | ||
32 | virtual ~AliHLTTPCCARow(){ Clear(); } | |
33 | ||
34 | AliHLTTPCCAHit *&Hits() { return fHits; } | |
35 | AliHLTTPCCACell *&Cells(){ return fCells;} | |
36 | Int_t *&CellHitPointers() { return fCellHitPointers; } | |
37 | ||
38 | Int_t &NHits() { return fNHits; } | |
39 | Int_t &NCells() { return fNCells; } | |
40 | Float_t &X() { return fX; } | |
41 | ||
42 | AliHLTTPCCAHit &GetCellHit( AliHLTTPCCACell &c, Int_t i ){ | |
43 | //* get hit number i of the cell c | |
44 | return fHits[fCellHitPointers[c.FirstHitRef()+i]]; | |
45 | } | |
46 | ||
47 | void Clear(); | |
48 | ||
49 | private: | |
50 | ||
51 | AliHLTTPCCAHit *fHits; // hit array | |
52 | AliHLTTPCCACell *fCells; // cell array | |
53 | Int_t *fCellHitPointers; // pointers cell->hits | |
54 | Int_t fNHits, fNCells; // number of hits and cells | |
55 | Float_t fX; // X coordinate of the row | |
56 | ||
57 | ClassDef(AliHLTTPCCARow,1); | |
58 | }; | |
59 | ||
60 | #endif |