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() const { return fX; }
30 Float_t Y() const { return fY; }
31 Float_t Z() const { return fZ; }
33 Float_t ErrX() const { return fErrX; }
34 Float_t ErrY() const { return fErrY; }
35 Float_t ErrZ() const { return fErrZ; }
36 Float_t Amp() const { return fAmp; }
38 Int_t ISlice() const { return fISlice; }
39 Int_t IRow() const { return fIRow; }
40 Int_t ID() const { return fID; }
41 Bool_t IsUsed() const { return fIsUsed; };
43 void SetX( Float_t v ){ fX = v; }
44 void SetY( Float_t v ){ fY = v; }
45 void SetZ( Float_t v ){ fZ = v; }
46 void SetErrX( Float_t v ){ fErrX = v; }
47 void SetErrY( Float_t v ){ fErrY = v; }
48 void SetErrZ( Float_t v ){ fErrZ = v; }
49 void SetAmp( Float_t v ) { fAmp = v; }
50 void SetISlice( Int_t v ){ fISlice = v; }
51 void SetIRow( Int_t v ){ fIRow = v; }
52 void SetID( Int_t v ){ fID = v; }
53 void SetIsUsed( Bool_t v ){ fIsUsed = v; };
55 static Bool_t Compare(const AliHLTTPCCAGBHit &a, const AliHLTTPCCAGBHit &b);
57 static Bool_t CompareRowDown(const AliHLTTPCCAGBHit &a, const AliHLTTPCCAGBHit &b){
58 return ( a.fIRow>b.fIRow );
60 static Bool_t ComparePRowDown(const AliHLTTPCCAGBHit *a, const AliHLTTPCCAGBHit *b){
61 return ( a->fIRow>b->fIRow );
66 Float_t fX; //* X position
67 Float_t fY; //* Y position
68 Float_t fZ; //* Z position
70 Float_t fErrX; //* X position error
71 Float_t fErrY; //* Y position error
72 Float_t fErrZ; //* Z position error
74 Float_t fAmp; //* Maximal amplitude
75 Int_t fISlice; //* slice number
76 Int_t fIRow; //* row number
77 Int_t fID; //* external ID (id of AliTPCcluster)
78 Bool_t fIsUsed; //* is used by GBTracks
80 //ClassDef(AliHLTTPCCAGBHit,1);