]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/tracking-ca/AliHLTTPCCAGBHit.h
Completely reworked version of TPC CA tracker (Sergey)
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAGBHit.h
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 ALIHLTTPCCAGBHIT_H
9 #define ALIHLTTPCCAGBHIT_H
10
11 #include "AliHLTTPCCADef.h"
12
13 /**
14  * @class AliHLTTPCCAGBHit
15  *
16  * The AliHLTTPCCAGBHit class is the internal representation
17  * of the TPC clusters for the AliHLTTPCCAGBTracker algorithm.
18  *
19  */
20 class AliHLTTPCCAGBHit
21 {
22  public:
23   AliHLTTPCCAGBHit()
24     :fX(0),fY(0),fZ(0),fErrX(0),fErrY(0),fErrZ(0),fAmp(0),
25     fISlice(0), fIRow(0), fID(0), fIsUsed(0){}
26
27   virtual ~AliHLTTPCCAGBHit(){}
28
29   Float_t &X(){ return fX; }
30   Float_t &Y(){ return fY; } 
31   Float_t &Z(){ return fZ; } 
32
33   Float_t &ErrX(){ return fErrX; }
34   Float_t &ErrY(){ return fErrY; }
35   Float_t &ErrZ(){ return fErrZ; }
36   Float_t &Amp() { return fAmp; }
37
38   Int_t &ISlice(){ return fISlice; }
39   Int_t &IRow(){ return fIRow; }
40   Int_t &ID(){ return fID; }
41   Bool_t &IsUsed(){ return fIsUsed; };
42
43
44   static bool Compare(const AliHLTTPCCAGBHit &a, const AliHLTTPCCAGBHit &b);
45
46   static bool CompareRowDown(const AliHLTTPCCAGBHit &a, const AliHLTTPCCAGBHit &b){
47     return ( a.fIRow>b.fIRow );
48   }
49   static bool ComparePRowDown(const AliHLTTPCCAGBHit *a, const AliHLTTPCCAGBHit *b){
50     return ( a->fIRow>b->fIRow );
51   }
52
53  protected:
54
55   Float_t fX; //* X position
56   Float_t fY; //* Y position
57   Float_t fZ; //* Z position
58
59   Float_t fErrX; //* X position error
60   Float_t fErrY; //* Y position error
61   Float_t fErrZ; //* Z position error
62
63   Float_t fAmp;   //* Maximal amplitude
64   Int_t fISlice; //* slice number
65   Int_t fIRow;   //* row number
66   Int_t fID;     //* external ID (id of AliTPCcluster) 
67   Bool_t fIsUsed; //* is used by GBTracks
68
69   //ClassDef(AliHLTTPCCAGBHit,1);
70
71 };
72
73 #endif