]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/AliHLTTPCTrack.h
excluding deprecated classes from build
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCTrack.h
index 4241012723e7fd47353b17e276d2272fe185f7b5..da08e7c2f76dde2995950bb215491e3ed4c6546e 100644 (file)
@@ -1,23 +1,24 @@
 // 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
@@ -26,6 +27,8 @@ class AliHLTTPCSpacePointData;
  * 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 {
 
@@ -94,7 +97,9 @@ 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;}
@@ -115,12 +120,15 @@ class AliHLTTPCTrack : public AliTPCtrack {
   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;}  
@@ -138,6 +146,7 @@ class AliHLTTPCTrack : public AliTPCtrack {
   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;}
@@ -147,6 +156,8 @@ class AliHLTTPCTrack : public AliTPCtrack {
   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;}
 
   /**
@@ -158,6 +169,16 @@ class AliHLTTPCTrack : public AliTPCtrack {
    */
   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
@@ -184,6 +205,7 @@ class AliHLTTPCTrack : public AliTPCtrack {
   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
@@ -201,9 +223,10 @@ class AliHLTTPCTrack : public AliTPCtrack {
   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