]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/tracking-ca/AliHLTTPCCAHit.h
added offline wrapper for HLT TPC CA tracker (Sergey)
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAHit.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 ALIHLTTPCCAHIT_H
9 #define ALIHLTTPCCAHIT_H
10
11 #include "Rtypes.h"
12
13 /**
14  * @class AliHLTTPCCAHit
15  *
16  * The AliHLTTPCCAHit class is the internal representation
17  * of the TPC clusters for the AliHLTTPCCATracker algorithm.
18  *
19  */
20 class AliHLTTPCCAHit
21 {
22  public:
23   AliHLTTPCCAHit(): fY(0),fZ(0),fErrY(0),fErrZ(0),fID(0){;}
24   virtual ~AliHLTTPCCAHit(){}
25
26   Float_t &Y()   { return fY;    }
27   Float_t &Z()   { return fZ;    }
28   Float_t &ErrY(){ return fErrY; } 
29   Float_t &ErrZ(){ return fErrZ; }
30   
31   Int_t &ID(){ return fID; }
32  
33   void Set( Int_t id, Float_t y, Float_t z, 
34             Float_t errY, Float_t errZ  );
35
36  protected:
37
38   Float_t fY, fZ;       // Y and Z position of the TPC cluster
39   Float_t fErrY, fErrZ; // position errors
40   Int_t fID;            // external unique ID of this hit, 
41                         // used as cluster index in track->hit reference array
42  private:
43
44   void Dummy(); // to make rulechecker happy by having something in .cxx file
45   
46 };
47
48
49
50 inline void AliHLTTPCCAHit::Set( Int_t id, Float_t y, Float_t z, 
51                                  Float_t errY, Float_t errZ  )
52 {
53   //* set parameters
54   fID = id;
55   fY = y;
56   fZ = z;
57   fErrY = errY;
58   fErrZ = errZ;
59 }
60
61
62 #endif