]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliKalmanTrack.h
Bug correction
[u/mrichter/AliRoot.git] / STEER / AliKalmanTrack.h
1 #ifndef ALIKALMANTRACK_H
2 #define ALIKALMANTRACK_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //-------------------------------------------------------------------------
8 //                          Class AliKalmanTrack
9 //
10 //         Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
11 //-------------------------------------------------------------------------
12
13 #include <TObject.h>
14
15 class AliCluster;
16
17 class AliKalmanTrack : public TObject {
18 public:
19   AliKalmanTrack() { fLab=-3141593; fChi2=0; fN=0; fMass=0.13957;}
20   AliKalmanTrack(const AliKalmanTrack &t) {
21     fLab=t.fLab; fChi2=t.fChi2; fN=t.fN; fMass=t.fMass;
22   }
23   virtual ~AliKalmanTrack(){};
24   void SetLabel(Int_t lab) {fLab=lab;}
25
26   Bool_t   IsSortable() const {return kTRUE;}
27   Int_t    GetLabel()   const {return fLab;}
28   Double_t GetChi2()    const {return fChi2;}
29   Double_t GetMass()    const {return fMass;}
30   Int_t    GetNumberOfClusters() const {return fN;}
31   virtual Int_t GetClusterIndex(Int_t i) const { //reserved for AliTracker
32     printf("AliKalmanTrack::GetClusterIndex(Int_t i) must be overloaded !\n");
33     return 0;
34   } 
35
36   virtual Int_t Compare(const TObject *o) const {return 0;} 
37
38   virtual void GetExternalParameters(Double_t &xr, Double_t x[5]) const {;}
39   virtual void GetExternalCovariance(Double_t cov[15]) const {;}
40
41   virtual Double_t GetPredictedChi2(const AliCluster *cluster) const {return 0.;}
42   virtual 
43   Int_t PropagateTo(Double_t xr,Double_t x0,Double_t rho) {return 0;}
44   virtual Int_t Update(const AliCluster* c, Double_t chi2, UInt_t i) {return 0;}
45
46   static void SetConvConst(Double_t cc) {fConvConst=cc;}
47   Double_t GetConvConst() const {return fConvConst;}
48
49 protected:
50   void SetChi2(Double_t chi2) {fChi2=chi2;} 
51   void SetMass(Double_t mass) {fMass=mass;}
52   void SetNumberOfClusters(Int_t n) {fN=n;} 
53
54 private: 
55   Int_t fLab;             // track label
56   Double_t fChi2;         // total chi2 value for this track
57   Double_t fMass;         // mass hypothesis
58   Int_t fN;               // number of associated clusters
59
60   static Double_t fConvConst; //conversion constant cm -> GeV/c
61
62   ClassDef(AliKalmanTrack,1)    // Reconstructed track
63 };
64
65 #endif
66
67