]>
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 | |
2fc0c115 | 11 | // |
6c94f330 | 12 | // The track parameterization is fixed in the following way: |
13 | // param0: local Y-coordinate of a track (cm) | |
14 | // param1: local Z-coordinate of a track (cm) | |
15 | // param2: local sine of the track momentum azimuth angle | |
16 | // param3: tangent of the track momentum dip angle | |
17 | // param4: 1/pt (1/(GeV/c)) | |
2fc0c115 | 18 | // |
6c94f330 | 19 | //------------------------------------------------------- |
20 | ||
b19a0509 | 21 | #include <AliKalmanTrack.h> |
73042f01 | 22 | #include <TMath.h> |
73042f01 | 23 | |
b9de75e1 | 24 | #include "AliTPCreco.h" |
51ad6848 | 25 | #include "AliExternalTrackParam.h" |
83d73500 | 26 | class AliESDtrack; |
6c94f330 | 27 | class AliESDVertex; |
9c9d2487 | 28 | |
73042f01 | 29 | //_____________________________________________________________________________ |
b19a0509 | 30 | class AliTPCtrack : public AliKalmanTrack { |
73042f01 | 31 | public: |
9c8948ff | 32 | AliTPCtrack(); |
6c94f330 | 33 | AliTPCtrack(Double_t x, Double_t alpha, const Double_t p[5], |
34 | const Double_t cov[15], Int_t index); | |
83d73500 | 35 | AliTPCtrack(const AliESDtrack& t); |
b19a0509 | 36 | AliTPCtrack(const AliTPCtrack& t); |
7c27857f | 37 | virtual ~AliTPCtrack() {} |
77e58468 | 38 | |
be9c5115 | 39 | Int_t Compare(const TObject *o) const; |
40 | ||
6c94f330 | 41 | void SetdEdx(Double_t dedx) {fdEdx=dedx;} |
42 | Double_t GetdEdx() const {return fdEdx;} | |
43 | Double_t GetPIDsignal() const {return GetdEdx();} | |
9c9d2487 | 44 | |
b9de75e1 | 45 | Int_t GetClusterIndex(Int_t i) const {return fIndex[i];} |
46 | ||
6c94f330 | 47 | Double_t GetC() const {return AliExternalTrackParam::GetC(GetBz());} |
be9c5115 | 48 | |
6c94f330 | 49 | Double_t GetPredictedChi2(const AliCluster *cluster) const; |
50 | Bool_t PropagateTo(Double_t xr, Double_t rho=0.9e-3, Double_t x0=28.94); | |
51 | Bool_t Update(const AliCluster *c, Double_t chi2, Int_t i); | |
52 | Bool_t Rotate(Double_t alpha) { | |
53 | return AliExternalTrackParam::Rotate(GetAlpha()+alpha); | |
54 | } | |
55 | ||
56 | Bool_t PropagateToVertex(const AliESDVertex *v, | |
57 | Double_t rho=1.2e-3, Double_t x0=36.66); | |
a91e73bc | 58 | void ResetClusters() {SetNumberOfClusters(0); SetChi2(0.);} |
51ad6848 | 59 | void UpdatePoints();//update points |
60 | Float_t* GetPoints() {return fPoints;} | |
6c94f330 | 61 | |
51584047 | 62 | Float_t Density(Int_t row0, Int_t row1); //calculate cluster density |
63 | Float_t Density2(Int_t row0, Int_t row1); //calculate cluster density | |
6c94f330 | 64 | Double_t GetD(Double_t x=0, Double_t y=0) const { |
65 | return AliExternalTrackParam::GetD(x,y,GetBz()); | |
66 | } | |
51ad6848 | 67 | AliExternalTrackParam & GetReference(){ return fReference;} |
68 | void UpdateReference(){ new (&fReference) AliExternalTrackParam(*this);} | |
81e97e0d | 69 | Int_t GetKinkIndex(Int_t i) const{ return fKinkIndexes[i];} |
51ad6848 | 70 | Int_t* GetKinkIndexes() { return fKinkIndexes;} |
81e97e0d | 71 | Int_t GetV0Index(Int_t i) const{ return fV0Indexes[i];} |
72 | Int_t* GetV0Indexes() { return fV0Indexes;} | |
73042f01 | 73 | |
6c94f330 | 74 | protected: |
75 | Double_t GetBz() const; | |
7f6ddf58 | 76 | Double_t fdEdx; // dE/dx |
73042f01 | 77 | |
51584047 | 78 | Int_t fIndex[kMaxRow]; // indices of associated clusters |
51ad6848 | 79 | Float_t fPoints[4]; //first, max dens row end points of the track and max density |
2fc0c115 | 80 | // MI addition |
81 | Float_t fSdEdx; // sigma of dedx | |
82 | // | |
83 | Int_t fNFoundable; //number of foundable clusters - dead zone taken to the account | |
84 | Bool_t fBConstrain; // indicate seeding with vertex constrain | |
85 | Int_t fLastPoint; // last cluster position | |
86 | Int_t fFirstPoint; // first cluster position | |
87 | Int_t fRemoval; // removal factor | |
88 | Int_t fTrackType; // track type - 0 - normal - 1 - kink - 2 -V0 3- double found | |
89 | Int_t fLab2; // index of corresponding track (kink, V0, double) | |
90 | Int_t fNShared; // number of shared points | |
51ad6848 | 91 | AliExternalTrackParam fReference; // track parameters at the middle of the chamber |
2fc0c115 | 92 | Float_t fKinkPoint[12]; //radius, of kink, dfi and dtheta |
51ad6848 | 93 | Int_t fKinkIndexes[3]; // kink indexes - minus = mother + daughter |
81e97e0d | 94 | Int_t fV0Indexes[3]; // kink indexes - minus = mother + daughter |
24de2d6d | 95 | |
6c94f330 | 96 | ClassDef(AliTPCtrack,3) // Time Projection Chamber reconstructed tracks |
73042f01 | 97 | }; |
98 | ||
73042f01 | 99 | #endif |
100 |