This commit was generated by cvs2svn to compensate for changes in r7643,
[u/mrichter/AliRoot.git] / STEER / AliKalmanTrack.h
CommitLineData
87594435 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
fb17acd4 7/* $Id$ */
8
87594435 9//-------------------------------------------------------------------------
10// Class AliKalmanTrack
11//
12// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
13//-------------------------------------------------------------------------
14
15#include <TObject.h>
c5507f6d 16#include <TVector3.h>
87594435 17
18class AliCluster;
19
20class AliKalmanTrack : public TObject {
21public:
e2afb3b6 22 AliKalmanTrack();
23 AliKalmanTrack(const AliKalmanTrack &t);
24
be9c5115 25 virtual ~AliKalmanTrack(){};
26 void SetLabel(Int_t lab) {fLab=lab;}
27
28 Bool_t IsSortable() const {return kTRUE;}
29 Int_t GetLabel() const {return fLab;}
30 Double_t GetChi2() const {return fChi2;}
7f6ddf58 31 Double_t GetMass() const {return fMass;}
be9c5115 32 Int_t GetNumberOfClusters() const {return fN;}
e2afb3b6 33 virtual Int_t GetClusterIndex(Int_t) const { //reserved for AliTracker
34 Warning("GetClusterIndex(Int_t)","Method must be overloaded !\n");
be9c5115 35 return 0;
36 }
37
49a7a79a 38 virtual Double_t GetDCA(const AliKalmanTrack *,Double_t &,Double_t &) const;
39 virtual
40 Double_t PropagateToDCA(AliKalmanTrack *, Double_t d=0., Double_t x0=0.);
41 virtual Double_t GetAlpha() const {
42 Warning("GetAlpha()","Method must be overloaded !\n");
43 return 0.;
44 }
45 virtual Double_t GetSigmaY2() const {
46 Warning("GetSigmaY2()","Method must be overloaded !\n");
47 return 0.;
48 }
49 virtual Double_t GetSigmaZ2() const {
50 Warning("GetSigmaZ2()","Method must be overloaded !\n");
51 return 0.;
52 }
53
e2afb3b6 54 virtual Int_t Compare(const TObject *) const {return 0;}
be9c5115 55
e2afb3b6 56 virtual void GetExternalParameters(Double_t &/*xr*/, Double_t /*x*/[5]) const {}
57 virtual void GetExternalCovariance(Double_t /*cov*/[15]) const {}
be9c5115 58
c5507f6d 59 virtual Double_t GetX() const;
60 virtual Double_t GetdEdx() const;
61
62 virtual Double_t GetY() const;
63 virtual Double_t GetZ() const;
64 virtual Double_t GetSnp() const;
65 virtual Double_t GetTgl() const;
66 virtual Double_t Get1Pt() const;
67
68 virtual Double_t Phi() const;
69 virtual Double_t SigmaPhi() const;
70 virtual Double_t Theta() const;
71 virtual Double_t SigmaTheta() const;
72 virtual Double_t Px() const;
73 virtual Double_t Py() const;
74 virtual Double_t Pz() const;
75 virtual Double_t Pt() const;
76 virtual Double_t SigmaPt() const;
77 virtual Double_t P() const;
78 virtual TVector3 Momentum() const;
79
e2afb3b6 80 virtual Double_t GetPredictedChi2(const AliCluster *) const {return 0.;}
be9c5115 81 virtual
e2afb3b6 82 Int_t PropagateTo(Double_t /*xr*/, Double_t /*x0*/, Double_t /*rho*/) {return 0;}
83 virtual Int_t Update(const AliCluster*, Double_t /*chi2*/, UInt_t) {return 0;}
be9c5115 84
116cbefd 85 static void SetConvConst(Double_t cc) {fgConvConst=cc;}
86 Double_t GetConvConst() const {return fgConvConst;}
9b280d80 87
e1a65e92 88 static void SetMagneticField(Double_t f) {// f - Magnetic field in T
116cbefd 89 fgConvConst=100/0.299792458/f;
e1a65e92 90 }
116cbefd 91 Double_t GetMagneticField() const {return 100/0.299792458/fgConvConst;}
e1a65e92 92
49a7a79a 93 // Time integration (S.Radomski@gsi.de)
74f9526e 94 void StartTimeIntegral();
95 Bool_t IsStartedTimeIntegral() const {return fStartTimeIntegral;}
96 void AddTimeStep(Double_t length);
97 Double_t GetIntegratedTime(Int_t pdg) const;
98 Double_t GetIntegratedLength() const {return fIntegratedLength;}
99 void PrintTime() const;
100
101
be9c5115 102protected:
9c9d2487 103
be9c5115 104 void SetChi2(Double_t chi2) {fChi2=chi2;}
7f6ddf58 105 void SetMass(Double_t mass) {fMass=mass;}
be9c5115 106 void SetNumberOfClusters(Int_t n) {fN=n;}
107
87594435 108 Int_t fLab; // track label
87594435 109 Double_t fChi2; // total chi2 value for this track
7f6ddf58 110 Double_t fMass; // mass hypothesis
be9c5115 111 Int_t fN; // number of associated clusters
87594435 112
116cbefd 113 static Double_t fgConvConst; //conversion constant cm -> GeV/c
9b280d80 114
49a7a79a 115 // variables for time integration (S.Radomski@gsi.de)
5d8718b8 116 static const Int_t fgkTypes = 5; // Number of track types (e,mu,pi,k,p)
74f9526e 117 Bool_t fStartTimeIntegral; // indicator wether integrate time
118 Float_t fIntegratedTime[5]; // intgrated time
5d8718b8 119 Float_t fIntegratedLength; // integrated length
9c9d2487 120
121 public:
74f9526e 122
123 ClassDef(AliKalmanTrack,2) // Reconstructed track
87594435 124};
125
126#endif
127
128