]>
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;} | |
18 | AliTRDtrack(UInt_t index, const Double_t xx[5], | |
19 | const Double_t cc[15], Double_t xr, Double_t alpha); | |
20 | AliTRDtrack(const AliTRDtrack& t); | |
21 | ||
2a941f4e | 22 | Int_t Compare(const TObject *o) const; |
46d29e70 | 23 | |
24 | Double_t GetAlpha() const {return fAlpha;} | |
25 | Double_t GetC() const {return fC;} | |
26 | Int_t GetClusterIndex(Int_t i) const {return fIndex[i];} | |
27 | Double_t GetChi2() const {return fChi2;} | |
28 | void GetCovariance(Double_t cov[15]) const; | |
29 | Double_t GetdEdX() const {return fdEdx;} | |
30 | Double_t GetEta() const {return fE;} | |
31 | Int_t GetLabel() const {return fLab;} | |
32 | Int_t GetNclusters() const {return fN;} | |
33 | Double_t GetP() const { | |
34 | return TMath::Abs(GetPt())*sqrt(1.+GetTgl()*GetTgl()); | |
35 | } | |
36 | Double_t GetPredictedChi2(const AliTRDcluster*) const ; | |
37 | Double_t GetPt() const {return 0.3*0.2/GetC()/100;} | |
38 | void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const ; | |
39 | Double_t GetSigmaC2() const {return fCcc;} | |
40 | Double_t GetSigmaTgl2() const {return fCtt;} | |
41 | Double_t GetSigmaY2() const {return fCyy;} | |
42 | Double_t GetSigmaZ2() const {return fCzz;} | |
43 | Double_t GetTgl() const {return fT;} | |
44 | Double_t GetX() const {return fX;} | |
45 | Double_t GetY() const {return fY;} // returns running Y | |
46 | Double_t GetZ() const {return fZ;} | |
47 | ||
48 | Bool_t IsSortable() const {return kTRUE;} | |
49 | ||
50 | Int_t PropagateTo(Double_t xr, | |
51 | Double_t x0=8.72,Double_t rho=5.86e-3,Double_t pm=0.139); | |
52 | void PropagateToVertex( | |
53 | Double_t x0=36.66,Double_t rho=1.2e-3,Double_t pm=0.139); | |
54 | Int_t Rotate(Double_t angle); | |
55 | ||
56 | void SetLabel(Int_t lab=0) {fLab=lab;} | |
57 | void SetdEdx(Float_t dedx) {fdEdx=dedx;} | |
58 | ||
59 | void Update(const AliTRDcluster* c, Double_t chi2, UInt_t i); | |
60 | ||
bbf92647 | 61 | |
62 | protected: | |
63 | ||
64 | Int_t fLab; // track label | |
65 | Double_t fChi2; // total chi2 value for the track | |
66 | Float_t fdEdx; // dE/dx | |
67 | ||
68 | Double_t fAlpha; // rotation angle | |
69 | Double_t fX; // running local X-coordinate of the track (time bin) | |
70 | ||
71 | Double_t fY; // Y-coordinate of the track | |
72 | Double_t fZ; // Z-coordinate of the track | |
73 | Double_t fC; // track curvature | |
74 | Double_t fE; // C*x0 | |
75 | Double_t fT; // tangent of the track dip angle | |
76 | ||
77 | Double_t fCyy; // covariance | |
78 | Double_t fCzy, fCzz; // matrix | |
79 | Double_t fCcy, fCcz, fCcc; // of the | |
80 | Double_t fCey, fCez, fCec, fCee; // track | |
81 | Double_t fCty, fCtz, fCtc, fCte, fCtt; // parameters | |
82 | ||
83 | Short_t fN; // number of clusters associated with the track | |
84 | UInt_t fIndex[200]; // global indexes of these clusters | |
85 | ||
86 | ||
46d29e70 | 87 | ClassDef(AliTRDtrack,1) // TRD reconstructed tracks |
88 | }; | |
89 | ||
90 | ||
46d29e70 | 91 | #endif |