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 #include "PndCADef.h"
14 #include "PndCATrackParam.h"
15 
21 class PndCAGBTrack {
22  // friend std::istream &operator>>( std::istream &, PndCAGBTrack & );
23  // friend std::ostream &operator<<( std::ostream &, const PndCAGBTrack & );
24  public:
26 
27  int NHits() const { return fNHits; }
28  int FirstHitRef() const { return fFirstHitRef; }
29  const PndCATrackParam &Param() const { return InnerParam(); }
30  const PndCATrackParam &InnerParam() const { return fInnerParam; }
31  const PndCATrackParam &OuterParam() const { return fOuterParam; }
32  float DeDx() const { return fDeDx; }
33 
34  void SetNHits(int v) { fNHits = v; }
35  void SetFirstHitRef(int v) { fFirstHitRef = v; }
38  void SetDeDx(float v) { fDeDx = v; }
39 
40  static bool ComparePNClusters(const PndCAGBTrack *a, const PndCAGBTrack *b) { return (a->fNHits > b->fNHits); }
41 
42  protected:
43  int fFirstHitRef; // index of the first hit reference in track->hit reference array
44  int fNHits; // number of track hits
45  PndCATrackParam fInnerParam; // fitted track parameters
47  float fDeDx; //* DE/DX
48 };
49 
50 // std::istream &operator>>( std::istream &, PndCAGBTrack & );
51 // std::ostream &operator<<( std::ostream &, const PndCAGBTrack & );
52 
53 #endif
static bool ComparePNClusters(const PndCAGBTrack *a, const PndCAGBTrack *b)
Definition: PndCAGBTrack.h:40
int FirstHitRef() const
Definition: PndCAGBTrack.h:28
const PndCATrackParam & OuterParam() const
Definition: PndCAGBTrack.h:31
__m128 v
Definition: P4_F32vec4.h:3
void SetNHits(int v)
Definition: PndCAGBTrack.h:34
float DeDx() const
Definition: PndCAGBTrack.h:32
void SetInnerParam(const PndCATrackParam &v)
Definition: PndCAGBTrack.h:36
const PndCATrackParam & Param() const
Definition: PndCAGBTrack.h:29
PndCATrackParam fInnerParam
Definition: PndCAGBTrack.h:45
void SetDeDx(float v)
Definition: PndCAGBTrack.h:38
void SetOuterParam(const PndCATrackParam &v)
Definition: PndCAGBTrack.h:37
const PndCATrackParam & InnerParam() const
Definition: PndCAGBTrack.h:30
PndCATrackParam fOuterParam
Definition: PndCAGBTrack.h:46
void SetFirstHitRef(int v)
Definition: PndCAGBTrack.h:35
int NHits() const
Definition: PndCAGBTrack.h:27