]>
Commit | Line | Data |
---|---|---|
46d29e70 | 1 | #ifndef ALITRDTRACK_H |
2 | #define ALITRDTRACK_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | #include <TObject.h> | |
8 | ||
9 | class AliTRDcluster; | |
10 | ||
11 | class AliTRDtrack : public TObject { | |
12 | ||
13 | // Represents reconstructed TRD track | |
14 | ||
46d29e70 | 15 | public: |
16 | ||
17 | AliTRDtrack() { fN=0;} | |
a819a5f7 | 18 | AliTRDtrack(const AliTRDcluster *c, UInt_t index, const Double_t xx[5], |
46d29e70 | 19 | const Double_t cc[15], Double_t xr, Double_t alpha); |
20 | AliTRDtrack(const AliTRDtrack& t); | |
21 | ||
a819a5f7 | 22 | Int_t Compare(const TObject *o) const; |
23 | void CookdEdx(Double_t low=0.05, Double_t up=0.70); | |
46d29e70 | 24 | |
25 | Double_t GetAlpha() const {return fAlpha;} | |
26 | Double_t GetC() const {return fC;} | |
27 | Int_t GetClusterIndex(Int_t i) const {return fIndex[i];} | |
a819a5f7 | 28 | Float_t GetClusterdQdl(Int_t i) const {return fdQdl[i];} |
46d29e70 | 29 | Double_t GetChi2() const {return fChi2;} |
a819a5f7 | 30 | Double_t GetZchi2() const {return fZchi2;} |
46d29e70 | 31 | void GetCovariance(Double_t cov[15]) const; |
a819a5f7 | 32 | Double_t GetdEdx() const {return fdEdx;} |
46d29e70 | 33 | Double_t GetEta() const {return fE;} |
34 | Int_t GetLabel() const {return fLab;} | |
35 | Int_t GetNclusters() const {return fN;} | |
36 | Double_t GetP() const { | |
37 | return TMath::Abs(GetPt())*sqrt(1.+GetTgl()*GetTgl()); | |
38 | } | |
39 | Double_t GetPredictedChi2(const AliTRDcluster*) const ; | |
a819a5f7 | 40 | Double_t GetPt() const {return 0.299792458*0.4/GetC()/100;} |
46d29e70 | 41 | void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const ; |
42 | Double_t GetSigmaC2() const {return fCcc;} | |
43 | Double_t GetSigmaTgl2() const {return fCtt;} | |
44 | Double_t GetSigmaY2() const {return fCyy;} | |
45 | Double_t GetSigmaZ2() const {return fCzz;} | |
46 | Double_t GetTgl() const {return fT;} | |
47 | Double_t GetX() const {return fX;} | |
48 | Double_t GetY() const {return fY;} // returns running Y | |
49 | Double_t GetZ() const {return fZ;} | |
a819a5f7 | 50 | |
a2b90f83 | 51 | Float_t GetLikelihoodElectron() const { return fLhElectron; }; |
a819a5f7 | 52 | |
46d29e70 | 53 | Bool_t IsSortable() const {return kTRUE;} |
54 | ||
55 | Int_t PropagateTo(Double_t xr, | |
56 | Double_t x0=8.72,Double_t rho=5.86e-3,Double_t pm=0.139); | |
46d29e70 | 57 | Int_t Rotate(Double_t angle); |
58 | ||
59 | void SetLabel(Int_t lab=0) {fLab=lab;} | |
60 | void SetdEdx(Float_t dedx) {fdEdx=dedx;} | |
61 | ||
62 | void Update(const AliTRDcluster* c, Double_t chi2, UInt_t i); | |
63 | ||
a819a5f7 | 64 | void SetLikelihoodElectron(Float_t l) { fLhElectron = l; }; |
bbf92647 | 65 | |
66 | protected: | |
67 | ||
68 | Int_t fLab; // track label | |
a819a5f7 | 69 | Double_t fChi2; // total chi2 value for R*phi measurements |
70 | Double_t fZchi2; // total chi2 value for Z measurements | |
bbf92647 | 71 | Float_t fdEdx; // dE/dx |
72 | ||
73 | Double_t fAlpha; // rotation angle | |
74 | Double_t fX; // running local X-coordinate of the track (time bin) | |
75 | ||
76 | Double_t fY; // Y-coordinate of the track | |
77 | Double_t fZ; // Z-coordinate of the track | |
78 | Double_t fC; // track curvature | |
79 | Double_t fE; // C*x0 | |
80 | Double_t fT; // tangent of the track dip angle | |
81 | ||
82 | Double_t fCyy; // covariance | |
83 | Double_t fCzy, fCzz; // matrix | |
84 | Double_t fCcy, fCcz, fCcc; // of the | |
85 | Double_t fCey, fCez, fCec, fCee; // track | |
86 | Double_t fCty, fCtz, fCtc, fCte, fCtt; // parameters | |
87 | ||
88 | Short_t fN; // number of clusters associated with the track | |
89 | UInt_t fIndex[200]; // global indexes of these clusters | |
a819a5f7 | 90 | Float_t fdQdl[200]; // cluster amplitudes corrected for track angles |
91 | ||
92 | Float_t fLhElectron; // Likelihood to be an electron | |
bbf92647 | 93 | |
a819a5f7 | 94 | ClassDef(AliTRDtrack,2) // TRD reconstructed tracks |
a2b90f83 | 95 | |
46d29e70 | 96 | }; |
97 | ||
98 | ||
46d29e70 | 99 | #endif |