]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/tracking-ca/AliHLTTPCCATrack.h
adding newline at end of file
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCATrack.h
CommitLineData
326c2d4b 1//-*- Mode: C++ -*-
2// @(#) $Id$
ce565086 3// ************************************************************************
fbb9b71b 4// This file is property of and copyright by the ALICE HLT Project *
ce565086 5// ALICE Experiment at CERN, All rights reserved. *
6// See cxx source for full Copyright notice *
7// *
8//*************************************************************************
326c2d4b 9
10#ifndef ALIHLTTPCCATRACK_H
11#define ALIHLTTPCCATRACK_H
12
00d07bcd 13#include "AliHLTTPCCADef.h"
5cb6ddd4 14#include "AliHLTTPCCABaseTrackParam.h"
326c2d4b 15
16/**
17 * @class ALIHLTTPCCAtrack
dc4788ec 18 *
19 * The class describes the [partially] reconstructed TPC track [candidate].
20 * The class is dedicated for internal use by the AliHLTTPCCATracker algorithm.
d54804bf 21 * The track parameters at both ends are stored separately in the AliHLTTPCCAEndPoint class
326c2d4b 22 */
23class AliHLTTPCCATrack
24{
fbb9b71b 25 public:
00d07bcd 26#if !defined(HLTCA_GPUCODE)
fbb9b71b 27 AliHLTTPCCATrack() : fAlive( 0 ), fFirstHitID( 0 ), fNHits( 0 ), fParam() {}
28 ~AliHLTTPCCATrack() {}
31649d4b 29#endif //!HLTCA_GPUCODE
326c2d4b 30
fbb9b71b 31 GPUhd() bool Alive() const { return fAlive; }
32 GPUhd() int NHits() const { return fNHits; }
33 GPUhd() int FirstHitID() const { return fFirstHitID; }
5cb6ddd4 34 GPUhd() const AliHLTTPCCABaseTrackParam &Param() const { return fParam; };
fbb9b71b 35
36 GPUhd() void SetAlive( bool v ) { fAlive = v; }
37 GPUhd() void SetNHits( int v ) { fNHits = v; }
38 GPUhd() void SetFirstHitID( int v ) { fFirstHitID = v; }
5cb6ddd4 39 GPUhd() void SetParam( AliHLTTPCCABaseTrackParam v ) { fParam = v; };
fbb9b71b 40
41 private:
fbb9b71b 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
5cb6ddd4 45 AliHLTTPCCABaseTrackParam fParam; // track parameters
fbb9b71b 46
47 private:
48 //void Dummy(); // to make rulechecker happy by having something in .cxx file
49
50 //ClassDef(AliHLTTPCCATrack,1)
326c2d4b 51};
52
31649d4b 53#endif //ALIHLTTPCCATRACK_H