PandaRoot
PndCAGBTrack.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: PndCAGBTrack.h,v 1.2 2010/08/02 16:45:28 ikulakov 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 PNDCAGBTRACK_H
23 #define PNDCAGBTRACK_H
24 
25 #include "PndCADef.h"
26 #include "PndCATrackParam.h"
27 
33 class PndCAGBTrack {
34  // friend std::istream &operator>>( std::istream &, PndCAGBTrack & );
35  // friend std::ostream &operator<<( std::ostream &, const PndCAGBTrack & );
36  public:
38 
39  int NHits() const { return fNHits; }
40  int FirstHitRef() const { return fFirstHitRef; }
41  const PndCATrackParam &Param() const { return InnerParam(); }
42  const PndCATrackParam &InnerParam() const { return fInnerParam; }
43  const PndCATrackParam &OuterParam() const { return fOuterParam; }
44  float DeDx() const { return fDeDx; }
45 
46  void SetNHits(int v) { fNHits = v; }
47  void SetFirstHitRef(int v) { fFirstHitRef = v; }
50  void SetDeDx(float v) { fDeDx = v; }
51 
52  static bool ComparePNClusters(const PndCAGBTrack *a, const PndCAGBTrack *b) { return (a->fNHits > b->fNHits); }
53 
54  protected:
55  int fFirstHitRef; // index of the first hit reference in track->hit reference array
56  int fNHits; // number of track hits
57  PndCATrackParam fInnerParam; // fitted track parameters
59  float fDeDx; //* DE/DX
60 };
61 
62 // std::istream &operator>>( std::istream &, PndCAGBTrack & );
63 // std::ostream &operator<<( std::ostream &, const PndCAGBTrack & );
64 
65 #endif
static bool ComparePNClusters(const PndCAGBTrack *a, const PndCAGBTrack *b)
Definition: PndCAGBTrack.h:52
int FirstHitRef() const
Definition: PndCAGBTrack.h:40
const PndCATrackParam & OuterParam() const
Definition: PndCAGBTrack.h:43
__m128 v
Definition: P4_F32vec4.h:15
void SetNHits(int v)
Definition: PndCAGBTrack.h:46
float DeDx() const
Definition: PndCAGBTrack.h:44
void SetInnerParam(const PndCATrackParam &v)
Definition: PndCAGBTrack.h:48
const PndCATrackParam & Param() const
Definition: PndCAGBTrack.h:41
PndCATrackParam fInnerParam
Definition: PndCAGBTrack.h:57
void SetDeDx(float v)
Definition: PndCAGBTrack.h:50
void SetOuterParam(const PndCATrackParam &v)
Definition: PndCAGBTrack.h:49
const PndCATrackParam & InnerParam() const
Definition: PndCAGBTrack.h:42
PndCATrackParam fOuterParam
Definition: PndCAGBTrack.h:58
void SetFirstHitRef(int v)
Definition: PndCAGBTrack.h:47
int NHits() const
Definition: PndCAGBTrack.h:39