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 *
8 #ifndef ALIHLTTPCCAGBHIT_H
9 #define ALIHLTTPCCAGBHIT_H
11 #include "AliHLTTPCCADef.h"
14 * @class AliHLTTPCCAGBHit
16 * The AliHLTTPCCAGBHit class is the internal representation
17 * of the TPC clusters for the AliHLTTPCCAGBTracker algorithm.
20 class 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){}
27 virtual ~AliHLTTPCCAGBHit(){}
29 Float_t &X(){ return fX; }
30 Float_t &Y(){ return fY; }
31 Float_t &Z(){ return fZ; }
33 Float_t &ErrX(){ return fErrX; }
34 Float_t &ErrY(){ return fErrY; }
35 Float_t &ErrZ(){ return fErrZ; }
36 Float_t &Amp() { return fAmp; }
38 Int_t &ISlice(){ return fISlice; }
39 Int_t &IRow(){ return fIRow; }
40 Int_t &ID(){ return fID; }
41 Bool_t &IsUsed(){ return fIsUsed; };
44 static bool Compare(const AliHLTTPCCAGBHit &a, const AliHLTTPCCAGBHit &b);
46 static bool CompareRowDown(const AliHLTTPCCAGBHit &a, const AliHLTTPCCAGBHit &b){
47 return ( a.fIRow>b.fIRow );
49 static bool ComparePRowDown(const AliHLTTPCCAGBHit *a, const AliHLTTPCCAGBHit *b){
50 return ( a->fIRow>b->fIRow );
55 Float_t fX; //* X position
56 Float_t fY; //* Y position
57 Float_t fZ; //* Z position
59 Float_t fErrX; //* X position error
60 Float_t fErrY; //* Y position error
61 Float_t fErrZ; //* Z position error
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
69 //ClassDef(AliHLTTPCCAGBHit,1);