]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCtrack.h
Removing extra semicolons (FedoraCore3, gcc 3.4.2)
[u/mrichter/AliRoot.git] / TPC / AliTPCtrack.h
index adb8d6b2ce708ef28d6292e7817c91d40ee68257..c339ce07d00e33707e4f7f1c6e00d6ac23464337 100644 (file)
@@ -25,8 +25,7 @@
 #include <TMath.h>
 
 #include "AliTPCreco.h"
-
-class AliBarrelTrack;
+#include "AliExternalTrackParam.h"
 class AliESDtrack;
 
 //_____________________________________________________________________________
@@ -35,7 +34,6 @@ public:
   AliTPCtrack();
   AliTPCtrack(UInt_t index, const Double_t xx[5], 
               const Double_t cc[15], Double_t xr, Double_t alpha); 
-  AliTPCtrack(const AliKalmanTrack& t, Double_t alpha);
   AliTPCtrack(const AliESDtrack& t);
   AliTPCtrack(const AliTPCtrack& t);
   virtual ~AliTPCtrack() {}
@@ -75,15 +73,6 @@ public:
   void GetExternalCovariance(Double_t cov[15]) const ;
 
   // [SR, 01.04.2003]
-
-  void GetBarrelTrack(AliBarrelTrack *track)const;
-
-  void ResetNWrong() {fNWrong = 0;}
-  void ResetNRotation() {fNRotation = 0;}
-  
-  Int_t GetNWrong() const {return fNWrong;}
-  Int_t GetNRotation() const {return fNRotation;}
-
   Int_t GetNumber() const {return fNumber;}
   void  SetNumber(Int_t n) {fNumber = n;} 
   //
@@ -106,7 +95,9 @@ public:
   Int_t PropagateTo(Double_t xr,Double_t x0=28.94,Double_t rho=0.9e-3);
   Int_t Update(const AliCluster* c, Double_t chi2, UInt_t i);
   void ResetCovariance();
+  void ResetClusters() {SetNumberOfClusters(0); SetChi2(0.);}
+  void UpdatePoints();//update points 
+  Float_t* GetPoints() {return fPoints;}
   //
   //  TClonesArray * fHelixIn;    //array of helixes  
   //TClonesArray * fHelixOut;   //array of helixes 
@@ -115,7 +106,10 @@ public:
   Float_t Density2(Int_t row0, Int_t row1); //calculate cluster density
   Double_t GetZat0() const;
   Double_t GetD(Double_t x=0, Double_t y=0) const;
-
+  AliExternalTrackParam & GetReference(){ return fReference;}
+  void UpdateReference(){ new (&fReference) AliExternalTrackParam(*this);}
+  Int_t  GetKinkIndex(Int_t i) const{ return fKinkIndexes[i];}
+  Int_t*  GetKinkIndexes() { return fKinkIndexes;}
 protected: 
   Double_t fX;              // X-coordinate of this track (reference plane)
   Double_t fAlpha;          // Rotation angle the local (TPC sector)
@@ -136,10 +130,8 @@ protected:
   Double_t fC40, fC41, fC42, fC43, fC44; // parameters
 
   Int_t fIndex[kMaxRow];       // indices of associated clusters 
-
+  Float_t fPoints[4];            //first, max dens row  end points of the track and max density
   //[SR, 01.04.2003]
-  Int_t fNWrong;         // number of wrong clusters
-  Int_t fNRotation;      // number of rotations
   Int_t fNumber;         // magic number used for number of clusters
   // MI addition
   Float_t fSdEdx;           // sigma of dedx 
@@ -152,9 +144,11 @@ protected:
   Int_t fTrackType;       // track type - 0 - normal - 1 - kink -  2 -V0  3- double found
   Int_t fLab2;            // index of corresponding track (kink, V0, double)
   Int_t   fNShared;       // number of shared points 
+  AliExternalTrackParam   fReference; // track parameters at the middle of the chamber
   Float_t  fKinkPoint[12];      //radius, of kink,  dfi and dtheta
+  Int_t    fKinkIndexes[3];     // kink indexes - minus = mother + daughter
 
-  ClassDef(AliTPCtrack,1)   // Time Projection Chamber reconstructed tracks
+  ClassDef(AliTPCtrack,2)   // Time Projection Chamber reconstructed tracks
 };
 
 inline