FairRoot/PandaRoot
PndFTSCAGBTrack.h
Go to the documentation of this file.
1 //-*- Mode: C++ -*-
2 // $Id: AliHLTTPCCAGBTrack.h,v 1.2 2016/11/22 17:23:46 mpugach 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 PNDFTSCAGBTRACK_H
11 #define PNDFTSCAGBTRACK_H
12 
13 
14 #include "PndFTSCADef.h"
15 #include "PndFTSCATrackParam.h"
16 
17 #include <ostream>
18 #include <istream>
19 
20 //namespace std
21 //{
22 // template<typename T> struct char_traits;
23 // template<typename _CharT, typename _Traits> class basic_istream;
24 // typedef basic_istream<char, char_traits<char> > std::istream;
25 // template<typename _CharT, typename _Traits> class basic_ostream;
26 // typedef basic_ostream<char, char_traits<char> > std::ostream;
27 //} // namespace std
28 
35 {
38  public:
39 
41 
42  int NHits() const { return fNHits; }
43  int FirstHitRef() const { return fFirstHitRef; }
44  const PndFTSCATrackParam &Param() const { return InnerParam(); }
45  const PndFTSCATrackParam &InnerParam() const { return fInnerParam; }
46  const PndFTSCATrackParam &OuterParam() const { return fOuterParam; }
47  float DeDx() const { return fDeDx; }
48 
49 
50  void SetNHits( int v ) { fNHits = v; }
51  void SetFirstHitRef( int v ) { fFirstHitRef = v; }
54  void SetDeDx( float v ) { fDeDx = v; }
55 
56 
57  static bool ComparePNClusters( const PndFTSCAGBTrack *a, const PndFTSCAGBTrack *b ) {
58  return ( a->fNHits > b->fNHits );
59  }
60 
61  protected:
62 
63  int fFirstHitRef; // index of the first hit reference in track->hit reference array
64  int fNHits; // number of track hits
65  PndFTSCATrackParam fInnerParam; // fitted track parameters
67  float fDeDx; //* DE/DX
68 };
69 
72 
73 #endif
friend std::istream & operator>>(std::istream &, PndFTSCAGBTrack &)
TTree * b
void SetFirstHitRef(int v)
void SetNHits(int v)
PndFTSCATrackParam fOuterParam
std::ostream & operator<<(std::ostream &o, const PndEventInfo &a)
int FirstHitRef() const
__m128 v
Definition: P4_F32vec4.h:4
void SetInnerParam(const PndFTSCATrackParam &v)
void SetOuterParam(const PndFTSCATrackParam &v)
float DeDx() const
friend std::ostream & operator<<(std::ostream &, const PndFTSCAGBTrack &)
const PndFTSCATrackParam & OuterParam() const
int NHits() const
Int_t a
Definition: anaLmdDigi.C:126
PndFTSCATrackParam fInnerParam
void SetDeDx(float v)
const PndFTSCATrackParam & InnerParam() const
TBuffer & operator>>(TBuffer &buf, PndAnaPidSelector *&obj)
const PndFTSCATrackParam & Param() const
static bool ComparePNClusters(const PndFTSCAGBTrack *a, const PndFTSCAGBTrack *b)