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 *
8 //*************************************************************************
10 #ifndef ALIHLTTPCCATRACK_H
11 #define ALIHLTTPCCATRACK_H
13 #include "AliHLTTPCCADef.h"
14 #include "AliHLTTPCCABaseTrackParam.h"
17 * @class ALIHLTTPCCAtrack
19 * The class describes the [partially] reconstructed TPC track [candidate].
20 * The class is dedicated for internal use by the AliHLTTPCCATracker algorithm.
21 * The track parameters at both ends are stored separately in the AliHLTTPCCAEndPoint class
23 class AliHLTTPCCATrack
26 #if !defined(HLTCA_GPUCODE)
27 AliHLTTPCCATrack() : fAlive( 0 ), fFirstHitID( 0 ), fNHits( 0 ), fParam() {}
28 ~AliHLTTPCCATrack() {}
29 #endif //!HLTCA_GPUCODE
31 GPUhd() bool Alive() const { return fAlive; }
32 GPUhd() int NHits() const { return fNHits; }
33 GPUhd() int FirstHitID() const { return fFirstHitID; }
34 GPUhd() const AliHLTTPCCABaseTrackParam &Param() const { return fParam; };
36 GPUhd() void SetAlive( bool v ) { fAlive = v; }
37 GPUhd() void SetNHits( int v ) { fNHits = v; }
38 GPUhd() void SetFirstHitID( int v ) { fFirstHitID = v; }
39 GPUhd() void SetParam( AliHLTTPCCABaseTrackParam v ) { fParam = v; };
42 bool fAlive; // flag for mark tracks used by the track merger
43 int fFirstHitID; // index of the first track cell in the track->cell pointer array
44 int fNHits; // number of track cells
45 AliHLTTPCCABaseTrackParam fParam; // track parameters
48 //void Dummy(); // to make rulechecker happy by having something in .cxx file
50 //ClassDef(AliHLTTPCCATrack,1)
53 #endif //ALIHLTTPCCATRACK_H