PandaRoot
PndFTSCAGBTrack.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //-*- Mode: C++ -*-
14 // $Id: AliHLTTPCCAGBTrack.h,v 1.2 2016/11/22 17:23:46 mpugach Exp $
15 // ************************************************************************
16 // This file is property of and copyright by the ALICE HLT Project *
17 // ALICE Experiment at CERN, All rights reserved. *
18 // See cxx source for full Copyright notice *
19 // *
20 //*************************************************************************
21 
22 #ifndef PNDFTSCAGBTRACK_H
23 #define PNDFTSCAGBTRACK_H
24 
25 #include "PndFTSCADef.h"
26 #include "PndFTSCATrackParam.h"
27 
28 #include <ostream>
29 #include <istream>
30 
31 // namespace std
32 //{
33 // template<typename T> struct char_traits;
34 // template<typename _CharT, typename _Traits> class basic_istream;
35 // typedef basic_istream<char, char_traits<char> > std::istream;
36 // template<typename _CharT, typename _Traits> class basic_ostream;
37 // typedef basic_ostream<char, char_traits<char> > std::ostream;
38 //} // namespace std
39 
46  friend std::istream &operator>>(std::istream &, PndFTSCAGBTrack &);
47  friend std::ostream &operator<<(std::ostream &, const PndFTSCAGBTrack &);
48 
49  public:
51 
52  int NHits() const { return fNHits; }
53  int FirstHitRef() const { return fFirstHitRef; }
54  const PndFTSCATrackParam &Param() const { return InnerParam(); }
55  const PndFTSCATrackParam &InnerParam() const { return fInnerParam; }
56  const PndFTSCATrackParam &OuterParam() const { return fOuterParam; }
57  float DeDx() const { return fDeDx; }
58 
59  void SetNHits(int v) { fNHits = v; }
60  void SetFirstHitRef(int v) { fFirstHitRef = v; }
63  void SetDeDx(float v) { fDeDx = v; }
64 
65  static bool ComparePNClusters(const PndFTSCAGBTrack *a, const PndFTSCAGBTrack *b) { return (a->fNHits > b->fNHits); }
66 
67  protected:
68  int fFirstHitRef; // index of the first hit reference in track->hit reference array
69  int fNHits; // number of track hits
70  PndFTSCATrackParam fInnerParam; // fitted track parameters
72  float fDeDx; //* DE/DX
73 };
74 
75 std::istream &operator>>(std::istream &, PndFTSCAGBTrack &);
76 std::ostream &operator<<(std::ostream &, const PndFTSCAGBTrack &);
77 
78 #endif
const PndFTSCATrackParam & OuterParam() const
friend std::istream & operator>>(std::istream &, PndFTSCAGBTrack &)
void SetFirstHitRef(int v)
void SetNHits(int v)
PndFTSCATrackParam fOuterParam
int NHits() const
__m128 v
Definition: P4_F32vec4.h:15
void SetInnerParam(const PndFTSCATrackParam &v)
void SetOuterParam(const PndFTSCATrackParam &v)
friend std::ostream & operator<<(std::ostream &, const PndFTSCAGBTrack &)
const PndFTSCATrackParam & Param() const
int FirstHitRef() const
PndFTSCATrackParam fInnerParam
void SetDeDx(float v)
float DeDx() const
static bool ComparePNClusters(const PndFTSCAGBTrack *a, const PndFTSCAGBTrack *b)
const PndFTSCATrackParam & InnerParam() const