]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/tracking-ca/AliHLTTPCCASliceOutCluster.h
Update master to aliroot
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCASliceOutCluster.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
10 #ifndef ALIHLTTPCCASLICEOUTCLUSTER_H
11 #define ALIHLTTPCCASLICEOUTCLUSTER_H
12
13 #include "AliHLTTPCCACompressedInputData.h"
14 #include "AliHLTTPCCADataCompressor.h"
15
16 /**
17  * @class AliHLTTPCCASliceOutCluster
18  * AliHLTTPCCASliceOutCluster class contains clusters which are assigned to slice tracks.
19  * It is used to send the data from TPC slice trackers to the GlobalMerger
20  */
21 class AliHLTTPCCASliceOutCluster
22 {
23   public:
24
25   GPUh() void Set( UInt_t id, UInt_t row, float x, float y, float z ){
26     UInt_t rowtype;
27     //if( row<64 ) rowtype = 0;
28     //else if( row<128 ) rowtype = (UInt_t(2)<<30);
29     //else rowtype = (1<<30);
30     //fId = id|rowtype;
31     if( row<64 ) rowtype = 0;
32     else if( row<128 ) rowtype = 2;
33     else rowtype = 1;
34     fRowType = rowtype;
35     fId = id;
36     fX = x; fY = y; fZ = z;
37   }
38
39   GPUh() float GetX() const {return fX;}
40   GPUh() float GetY() const {return fY;}
41   GPUh() float GetZ() const {return fZ;}
42   GPUh() UInt_t GetId() const {return fId; } //fId & 0x3FFFFFFF;}
43   GPUh() UInt_t GetRowType() const {return fRowType; }//fId>>30;}
44
45   private:
46
47   UInt_t  fId; // Id ( slice, patch, cluster )    
48   UInt_t  fRowType; // row type
49   Float_t fX;// coordinates
50   Float_t fY;// coordinates
51   Float_t fZ;// coordinates
52 };
53
54 #endif