StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AliHLTTPCCAOutTrack.h
1 //-*- Mode: C++ -*-
2 // @(#) $Id: AliHLTTPCCAOutTrack.h,v 1.1 2016/02/05 23:27:28 fisyak Exp $
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 #if 0
15 namespace std
16 {
17  template<typename T> struct char_traits;
18  template<typename _CharT, typename _Traits> class basic_istream;
19  typedef basic_istream<char, char_traits<char> > istream;
20  template<typename _CharT, typename _Traits> class basic_ostream;
21  typedef basic_ostream<char, char_traits<char> > ostream;
22 } // namespace std
23 #endif
24 
34 {
35  friend std::istream &operator>>( std::istream &, AliHLTTPCCAOutTrack & );
36  friend std::ostream &operator<<( std::ostream &, const AliHLTTPCCAOutTrack & );
37  public:
38 
39  AliHLTTPCCAOutTrack(): fFirstHitRef( 0 ), fNHits( 0 ), fStartPoint(), fEndPoint(), fOrigTrackID( 0 ) {}
40  virtual ~AliHLTTPCCAOutTrack() {}
41 
42  int NHits() const { return fNHits; }
43  int FirstHitRef() const { return fFirstHitRef; }
44 
45  const AliHLTTPCCATrackParam &StartPoint() const { return fStartPoint; }
46  const AliHLTTPCCATrackParam &EndPoint() const { return fEndPoint; }
47  int OrigTrackID() const { return fOrigTrackID; }
48 
49  void SetNHits( int v ) { fNHits = v; }
50  void SetFirstHitRef( int v ) { fFirstHitRef = v; }
51 
52  void SetStartPoint( const AliHLTTPCCATrackParam &v ) { fStartPoint = v; }
53  void SetEndPoint( const AliHLTTPCCATrackParam &v ) { fEndPoint = v; }
54  void SetOrigTrackID( int v ) { fOrigTrackID = v; }
55 
56  protected:
57  int fFirstHitRef; //* index of the first hit reference in track->hit reference array
58  int fNHits; //* number of track hits
59  AliHLTTPCCATrackParam fStartPoint; //* fitted track parameters at the start point
60  AliHLTTPCCATrackParam fEndPoint; //* fitted track parameters at the start point
61  int fOrigTrackID; //* index of the original slice track
62 };
63 
64 std::istream &operator>>( std::istream &in, AliHLTTPCCAOutTrack &ot );
65 std::ostream &operator<<( std::ostream &out, const AliHLTTPCCAOutTrack &ot );
66 
67 #endif