]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/AliHLTTPCTrack.h
After playing, Andrew needs to cleanup :-)
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCTrack.h
index c9f23881d627256a1f948bbac16bc5a8272f060f..4181eec10619ec4800db41f390452118b3002b0d 100644 (file)
@@ -97,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;}
@@ -118,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;}  
@@ -141,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;}
@@ -150,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;}
 
   /**
@@ -161,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
@@ -187,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
@@ -204,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