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