]>
Commit | Line | Data |
---|---|---|
73042f01 | 1 | #ifndef ALITPCTRACK_H |
2 | #define ALITPCTRACK_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
0938c7d3 | 5 | /* $Id$ */ |
6 | ||
73042f01 | 7 | //------------------------------------------------------- |
8 | // TPC Track Class | |
9 | // | |
10 | // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch | |
11 | //------------------------------------------------------- | |
12 | ||
be9c5115 | 13 | /***************************************************************************** |
14 | * December 18, 2000 * | |
15 | * Internal view of the TPC track parametrisation as well as the order of * | |
16 | * track parameters are subject for possible changes ! * | |
17 | * Use GetExternalParameters() and GetExternalCovariance() to access TPC * | |
18 | * track information regardless of its internal representation. * | |
19 | * This formation is now fixed in the following way: * | |
20 | * external param0: local Y-coordinate of a track (cm) * | |
21 | * external param1: local Z-coordinate of a track (cm) * | |
22 | * external param2: local sine of the track momentum azimuth angle * | |
23 | * external param3: tangent of the track momentum dip angle * | |
24 | * external param4: 1/pt (1/(GeV/c)) * | |
25 | *****************************************************************************/ | |
b19a0509 | 26 | #include <AliKalmanTrack.h> |
73042f01 | 27 | #include <TMath.h> |
73042f01 | 28 | |
b9de75e1 | 29 | #include "AliTPCreco.h" |
30 | ||
9c9d2487 | 31 | class AliBarrelTrack; |
83d73500 | 32 | class AliESDtrack; |
9c9d2487 | 33 | |
73042f01 | 34 | //_____________________________________________________________________________ |
b19a0509 | 35 | class AliTPCtrack : public AliKalmanTrack { |
73042f01 | 36 | public: |
9c8948ff | 37 | AliTPCtrack(); |
b19a0509 | 38 | AliTPCtrack(UInt_t index, const Double_t xx[5], |
39 | const Double_t cc[15], Double_t xr, Double_t alpha); | |
b9de75e1 | 40 | AliTPCtrack(const AliKalmanTrack& t, Double_t alpha); |
83d73500 | 41 | AliTPCtrack(const AliESDtrack& t); |
b19a0509 | 42 | AliTPCtrack(const AliTPCtrack& t); |
7c27857f | 43 | virtual ~AliTPCtrack() {} |
7f6ddf58 | 44 | Int_t PropagateToVertex(Double_t x0=36.66,Double_t rho=1.2e-3); |
b19a0509 | 45 | Int_t Rotate(Double_t angle); |
7f6ddf58 | 46 | void SetdEdx(Double_t dedx) {fdEdx=dedx;} |
b19a0509 | 47 | |
c630aafd | 48 | Double_t GetYat(Double_t x) const ; |
be9c5115 | 49 | Double_t GetX() const {return fX;} |
50 | Double_t GetAlpha() const {return fAlpha;} | |
51 | Double_t GetdEdx() const {return fdEdx;} | |
83d73500 | 52 | Double_t GetPIDsignal() const {return GetdEdx();} |
be9c5115 | 53 | |
b19a0509 | 54 | Double_t GetY() const {return fP0;} |
55 | Double_t GetZ() const {return fP1;} | |
83d73500 | 56 | Double_t GetSnp() const {return fX*fP4 - fP2;} |
024a7fe9 | 57 | Double_t |
58 | Get1Pt() const { return (1e-9*TMath::Abs(fP4)/fP4 + fP4)*GetConvConst(); } | |
b9de75e1 | 59 | Double_t GetTgl() const {return fP3;} |
be9c5115 | 60 | |
b19a0509 | 61 | Double_t GetSigmaY2() const {return fC00;} |
62 | Double_t GetSigmaZ2() const {return fC11;} | |
be9c5115 | 63 | |
77e58468 | 64 | // Some methods useful for users. Implementation is not |
65 | // optimized for speed but for minimal maintanance effort | |
66 | Double_t Phi() const; | |
67 | Double_t Theta() const {return TMath::Pi()/2.-TMath::ATan(GetTgl());} | |
68 | Double_t Px() const {return TMath::Cos(Phi())/TMath::Abs(Get1Pt());} | |
69 | Double_t Py() const {return TMath::Sin(Phi())/TMath::Abs(Get1Pt());} | |
70 | Double_t Pz() const {return GetTgl()/TMath::Abs(Get1Pt());} | |
c5507f6d | 71 | Double_t Pt() const {return 1./TMath::Abs(Get1Pt());} |
77e58468 | 72 | Double_t P() const {return TMath::Sqrt(Pt()*Pt()+Pz()*Pz());} |
73 | ||
be9c5115 | 74 | Int_t Compare(const TObject *o) const; |
75 | ||
76 | void GetExternalParameters(Double_t& xr, Double_t x[5]) const ; | |
77 | void GetExternalCovariance(Double_t cov[15]) const ; | |
78 | ||
9c9d2487 | 79 | // [SR, 01.04.2003] |
80 | ||
81 | void GetBarrelTrack(AliBarrelTrack *track); | |
82 | ||
83 | void ResetNWrong() {fNWrong = 0;} | |
84 | void ResetNRotation() {fNRotation = 0;} | |
85 | ||
86 | Int_t GetNWrong() const {return fNWrong;} | |
87 | Int_t GetNRotation() const {return fNRotation;} | |
88 | ||
89 | Int_t GetNumber() const {return fNumber;} | |
90 | void SetNumber(Int_t n) {fNumber = n;} | |
91 | // | |
92 | ||
b9de75e1 | 93 | Int_t GetClusterIndex(Int_t i) const {return fIndex[i];} |
94 | ||
be9c5115 | 95 | //******** To be removed next release !!! ************** |
96 | Double_t GetEta() const {return fP2;} | |
b9de75e1 | 97 | Double_t GetC() const {return fP4;} |
be9c5115 | 98 | void GetCovariance(Double_t cc[15]) const { |
99 | cc[0 ]=fC00; | |
100 | cc[1 ]=fC10; cc[2 ]=fC11; | |
101 | cc[3 ]=fC20; cc[4 ]=fC21; cc[5 ]=fC22; | |
b9de75e1 | 102 | cc[6 ]=fC40; cc[7 ]=fC41; cc[8 ]=fC42; cc[9 ]=fC44; |
103 | cc[10]=fC30; cc[11]=fC31; cc[12]=fC32; cc[13]=fC43; cc[14]=fC33; | |
83d73500 | 104 | } |
be9c5115 | 105 | //****************************************************** |
106 | ||
be9c5115 | 107 | virtual Double_t GetPredictedChi2(const AliCluster *cluster) const; |
7f6ddf58 | 108 | Int_t PropagateTo(Double_t xr,Double_t x0=28.94,Double_t rho=0.9e-3); |
be9c5115 | 109 | Int_t Update(const AliCluster* c, Double_t chi2, UInt_t i); |
b9de75e1 | 110 | void ResetCovariance(); |
51584047 | 111 | // MI addition |
112 | Float_t fSdEdx; // sigma of dedx | |
113 | // | |
114 | Int_t fNFoundable; //number of foundable clusters - dead zone taken to the account | |
115 | Bool_t fBConstrain; // indicate seeding with vertex constrain | |
116 | Int_t fLastPoint; // last cluster position | |
117 | Int_t fFirstPoint; // first cluster position | |
118 | Int_t fRemoval; // removal factor | |
119 | Int_t fTrackType; // track type - 0 - normal - 1 - kink - 2 -V0 3- double found | |
120 | Int_t fLab2; // index of corresponding track (kink, V0, double) | |
121 | Int_t fNShared; // number of shared points | |
122 | Float_t fKinkPoint[12]; //radius, of kink, dfi and dtheta | |
123 | // | |
124 | // TClonesArray * fHelixIn; //array of helixes | |
125 | //TClonesArray * fHelixOut; //array of helixes | |
126 | // | |
127 | Float_t Density(Int_t row0, Int_t row1); //calculate cluster density | |
128 | Float_t Density2(Int_t row0, Int_t row1); //calculate cluster density | |
129 | Double_t GetZat0() const; | |
130 | Double_t GetD(Double_t x=0, Double_t y=0) const; | |
73042f01 | 131 | |
1c53abe2 | 132 | protected: |
be9c5115 | 133 | Double_t fX; // X-coordinate of this track (reference plane) |
134 | Double_t fAlpha; // Rotation angle the local (TPC sector) | |
135 | // coordinate system and the global ALICE one. | |
73042f01 | 136 | |
7f6ddf58 | 137 | Double_t fdEdx; // dE/dx |
73042f01 | 138 | |
be9c5115 | 139 | Double_t fP0; // Y-coordinate of a track |
140 | Double_t fP1; // Z-coordinate of a track | |
141 | Double_t fP2; // C*x0 | |
b9de75e1 | 142 | Double_t fP3; // tangent of the track momentum dip angle |
143 | Double_t fP4; // track curvature | |
be9c5115 | 144 | |
145 | Double_t fC00; // covariance | |
146 | Double_t fC10, fC11; // matrix | |
147 | Double_t fC20, fC21, fC22; // of the | |
148 | Double_t fC30, fC31, fC32, fC33; // track | |
149 | Double_t fC40, fC41, fC42, fC43, fC44; // parameters | |
83d73500 | 150 | |
51584047 | 151 | Int_t fIndex[kMaxRow]; // indices of associated clusters |
73042f01 | 152 | |
9c9d2487 | 153 | //[SR, 01.04.2003] |
154 | Int_t fNWrong; // number of wrong clusters | |
155 | Int_t fNRotation; // number of rotations | |
156 | Int_t fNumber; // magic number used for number of clusters | |
157 | ||
b19a0509 | 158 | ClassDef(AliTPCtrack,1) // Time Projection Chamber reconstructed tracks |
73042f01 | 159 | }; |
160 | ||
be9c5115 | 161 | inline |
162 | void AliTPCtrack::GetExternalParameters(Double_t& xr, Double_t x[5]) const { | |
163 | //--------------------------------------------------------------------- | |
164 | // This function return external TPC track representation | |
165 | //--------------------------------------------------------------------- | |
83d73500 | 166 | xr=fX; |
be9c5115 | 167 | x[0]=GetY(); x[1]=GetZ(); x[2]=GetSnp(); x[3]=GetTgl(); x[4]=Get1Pt(); |
168 | } | |
169 | ||
73042f01 | 170 | #endif |
171 |