// XEmacs -*-C++-*-
-// @(#) $Id$
+// $Id$
// Original: AliHLTTrack.h,v 1.18 2005/03/31 04:48:58 cvetan
#ifndef ALIHLTTPCTRACK_H
#define ALIHLTTPCTRACK_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice */
+//* This file is property of and copyright by the ALICE HLT Project *
+//* ALICE Experiment at CERN, All rights reserved. *
+//* See cxx source for full Copyright notice *
-/** @file AliHLTTPCTrack.h
- @author Anders Vestbo, Uli Frankenfeld, maintained by Matthias Richter
- @date
- @brief HLT TPC track base class (conformal mapping)
-*/
+/// @file AliHLTTPCTrack.h
+/// @author Anders Vestbo, Uli Frankenfeld, maintained by Matthias Richter
+/// @date
+/// @brief HLT TPC track base class (conformal mapping)
+///
#include "AliTPCtrack.h"
class AliHLTTPCVertex;
-class AliHLTTPCSpacePointData;
+struct AliHLTTPCSpacePointData;
/**
* @class AliHLTTPCTrack
* It was originally separated from the offline TPC track class, but in
* order to adjust the output format to the offline ESD, AliHLTTPCTrack
* now inherits from AliHLTtrack.
+ *
+ * @ingroup alihlt_tpc
*/
class AliHLTTPCTrack : public AliTPCtrack {
Double_t GetPterr() const {return fPterr;}
Double_t GetPsierr() const {return fPsierr;}
Double_t GetTglerr() const {return fTanlerr;}
-
+ Double_t GetZ0err() const {return fZ0err;}
+ Double_t GetY0err() const {return fY0err;}
+
Double_t GetKappa() const {return fKappa;}
Double_t GetRadius() const {return fRadius;}
Double_t GetCenterX() const {return fCenterX;}
Int_t GetCharge() const {return fQ;}
Int_t GetMCid() const {return fMCid;}
Double_t GetLength() const {return fLength;}
-
+ Double_t GetLengthXY() const ;
+ Double_t GetLengthTot() const;
+
Int_t GetFirstRow() const {return fRowRange[0];}
Int_t GetLastRow() const {return fRowRange[1];}
Int_t GetSector() const {return fSector;}
UInt_t *GetHitNumbers() {return fHitNumbers;}
+ Int_t GetId(){ return fId; }
// setter
void SetPID(Float_t pid) {fPID=pid;}
void SetPterr(Double_t f) {fPterr = f;}
void SetPsierr(Double_t f) {fPsierr = f;}
void SetZ0err(Double_t f) {fZ0err = f;}
+ void SetY0err(Double_t f) {fY0err = f;}
void SetTglerr(Double_t f) {fTanlerr = f;}
void SetKappa(Double_t f) {fKappa = f;}
void SetNHits(Int_t f) {fNHits = f;}
void SetCenterX(Double_t f) {fCenterX = f;}
void SetCenterY(Double_t f) {fCenterY = f;}
void SetCharge(Int_t f) {fQ = f;}
+ void SetId( Int_t f ) { fId = f; }
+
void ComesFromMainVertex(Bool_t f) {fFromMainVertex = f;}
/**
*/
int Convert2AliKalmanTrack();
+ /**
+ * Check the structure members to be within reasonable limits.
+ */
+ int CheckConsistency();
+
+ /**
+ * Check consistency of a double member
+ */
+ int CheckDoubleMember(double* pMember, double def, const char* name) const;
+
private:
Int_t fNHits; //Number of hits
Double_t fPterr; //error in pt
Double_t fPsierr; //error in psi
Double_t fZ0err; //error in first point
+ Double_t fY0err; //error in first point
Double_t fTanlerr; //error in tanl
Double_t fPhi0; //azimuthal angle of the first point
Float_t fPID; //pid
static const int fgkHitArraySize=159; // size of hit array
UInt_t fHitNumbers[fgkHitArraySize]; //Array of hit numbers for this track
+ Int_t fId; // unique ID of the track
Bool_t IsPoint(Bool_t ispoint) {fIsPoint = ispoint;return fIsPoint;}
-
- ClassDef(AliHLTTPCTrack,2) //Base track class
+
+ ClassDef(AliHLTTPCTrack,3) //Base track class
};
#endif