FairRoot/PandaRoot
PndCAGBTrack.h
Go to the documentation of this file.
1 //-*- Mode: C++ -*-
2 // $Id: PndCAGBTrack.h,v 1.2 2010/08/02 16:45:28 ikulakov 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 PNDCAGBTRACK_H
11 #define PNDCAGBTRACK_H
12 
13 
14 #include "PndCADef.h"
15 #include "PndCATrackParam.h"
16 
23 {
24 // friend std::istream &operator>>( std::istream &, PndCAGBTrack & );
25 // friend std::ostream &operator<<( std::ostream &, const PndCAGBTrack & );
26  public:
27 
29 
30  int NHits() const { return fNHits; }
31  int FirstHitRef() const { return fFirstHitRef; }
32  const PndCATrackParam &Param() const { return InnerParam(); }
33  const PndCATrackParam &InnerParam() const { return fInnerParam; }
34  const PndCATrackParam &OuterParam() const { return fOuterParam; }
35  float DeDx() const { return fDeDx; }
36 
37 
38  void SetNHits( int v ) { fNHits = v; }
39  void SetFirstHitRef( int v ) { fFirstHitRef = v; }
42  void SetDeDx( float v ) { fDeDx = v; }
43 
44 
45  static bool ComparePNClusters( const PndCAGBTrack *a, const PndCAGBTrack *b ) {
46  return ( a->fNHits > b->fNHits );
47  }
48 
49  protected:
50 
51  int fFirstHitRef; // index of the first hit reference in track->hit reference array
52  int fNHits; // number of track hits
53  PndCATrackParam fInnerParam; // fitted track parameters
55  float fDeDx; //* DE/DX
56 };
57 
58 // std::istream &operator>>( std::istream &, PndCAGBTrack & );
59 // std::ostream &operator<<( std::ostream &, const PndCAGBTrack & );
60 
61 #endif
static bool ComparePNClusters(const PndCAGBTrack *a, const PndCAGBTrack *b)
Definition: PndCAGBTrack.h:45
TTree * b
int FirstHitRef() const
Definition: PndCAGBTrack.h:31
const PndCATrackParam & OuterParam() const
Definition: PndCAGBTrack.h:34
__m128 v
Definition: P4_F32vec4.h:4
Int_t a
Definition: anaLmdDigi.C:126
void SetNHits(int v)
Definition: PndCAGBTrack.h:38
void SetInnerParam(const PndCATrackParam &v)
Definition: PndCAGBTrack.h:40
PndCATrackParam fInnerParam
Definition: PndCAGBTrack.h:53
float DeDx() const
Definition: PndCAGBTrack.h:35
const PndCATrackParam & Param() const
Definition: PndCAGBTrack.h:32
void SetDeDx(float v)
Definition: PndCAGBTrack.h:42
void SetOuterParam(const PndCATrackParam &v)
Definition: PndCAGBTrack.h:41
PndCATrackParam fOuterParam
Definition: PndCAGBTrack.h:54
int NHits() const
Definition: PndCAGBTrack.h:30
const PndCATrackParam & InnerParam() const
Definition: PndCAGBTrack.h:33
void SetFirstHitRef(int v)
Definition: PndCAGBTrack.h:39