]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/tracking-ca/AliHLTTPCCATrack.h
Update of the HLT CA tracker
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCATrack.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 ALIHLTTPCCATRACK_H
9 #define ALIHLTTPCCATRACK_H
10
11 #include "AliHLTTPCCADef.h"
12 #include "AliHLTTPCCATrackParam.h"
13
14 /**
15  * @class ALIHLTTPCCAtrack
16  *
17  * The class describes the [partially] reconstructed TPC track [candidate].
18  * The class is dedicated for internal use by the AliHLTTPCCATracker algorithm.
19  * The track parameters at both ends are stored separately in the AliHLTTPCCAEndPoint class
20  */
21 class AliHLTTPCCATrack
22 {
23  public:
24 #if !defined(HLTCA_GPUCODE)
25   AliHLTTPCCATrack() :fAlive(0),fFirstHitID(0),fNHits(0), fParam(){}
26   ~AliHLTTPCCATrack(){}
27 #endif
28
29   GPUhd() Bool_t Alive()               const { return fAlive; }
30   GPUhd() Int_t  NHits()               const { return fNHits; }
31   GPUhd() Int_t  FirstHitID()          const { return fFirstHitID; }
32   GPUhd() const AliHLTTPCCATrackParam &Param() const { return fParam; };
33   
34   GPUhd() void SetAlive( Bool_t v )               { fAlive=v; }
35   GPUhd() void SetNHits( Int_t v )               { fNHits=v; }
36   GPUhd() void SetFirstHitID( Int_t v )          { fFirstHitID=v; }
37   GPUhd() void SetParam( AliHLTTPCCATrackParam v ){ fParam=v; };
38   
39 private:
40   
41   Bool_t fAlive;       // flag for mark tracks used by the track merger
42   Int_t  fFirstHitID; // index of the first track cell in the track->cell pointer array
43   Int_t  fNHits;      // number of track cells
44   AliHLTTPCCATrackParam fParam; // track parameters 
45   
46 private:
47   //void Dummy(); // to make rulechecker happy by having something in .cxx file
48
49   //ClassDef(AliHLTTPCCATrack,1)
50 };
51
52 #endif