]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/tracking-ca/AliHLTTPCCAOutTrack.h
bug fix: reconstruction crash when the output buffer size exceed
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAOutTrack.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 //*************************************************************************
9
10 #ifndef ALIHLTTPCCAOUTTRACK_H
11 #define ALIHLTTPCCAOUTTRACK_H
12
13 #include "AliHLTTPCCATrackParam.h"
14
15 /**
16  * @class AliHLTTPCCAOutTrack
17  * AliHLTTPCCAOutTrack class is used to store the final
18  * reconstructed tracks which will be then readed
19  * by the AliHLTTPCCATrackerComponent
20  *
21  * The class contains no temporary variables, etc.
22  *
23  */
24 class AliHLTTPCCAOutTrack
25 {
26   public:
27
28     AliHLTTPCCAOutTrack(): fFirstHitRef( 0 ), fNHits( 0 ), fStartPoint(), fEndPoint(), fOrigTrackID( 0 ) {}
29     virtual ~AliHLTTPCCAOutTrack() {}
30
31     GPUhd() int NHits()               const { return fNHits; }
32     GPUhd() int FirstHitRef()         const { return fFirstHitRef; }
33
34     GPUhd() const AliHLTTPCCATrackParam &StartPoint() const { return fStartPoint; }
35     GPUhd() const AliHLTTPCCATrackParam &EndPoint()   const { return fEndPoint; }
36     GPUhd() int OrigTrackID()                const { return fOrigTrackID; }
37
38     GPUhd() void SetNHits( int v )               { fNHits = v; }
39     GPUhd() void SetFirstHitRef( int v )         { fFirstHitRef = v; }
40
41     GPUhd() void SetStartPoint( const AliHLTTPCCATrackParam &v ) { fStartPoint = v; }
42     GPUhd() void SetEndPoint( const AliHLTTPCCATrackParam &v )   { fEndPoint = v; }
43     GPUhd() void SetOrigTrackID( int v )                { fOrigTrackID = v; }
44
45   protected:
46
47     int fFirstHitRef;   //* index of the first hit reference in track->hit reference array
48     int fNHits;         //* number of track hits
49     AliHLTTPCCATrackParam fStartPoint; //* fitted track parameters at the start point
50     AliHLTTPCCATrackParam fEndPoint;   //* fitted track parameters at the start point
51     int fOrigTrackID;                //* index of the original slice track
52
53   private:
54
55     void Dummy() const; // to make rulechecker happy by having something in .cxx file
56
57     ClassDef( AliHLTTPCCAOutTrack, 1 )
58 };
59
60
61 #endif //ALIHLTTPCCAOUTTRACK_H