]>
Commit | Line | Data |
---|---|---|
46d29e70 | 1 | #ifndef ALITRDTRACK_H |
b3a5a838 | 2 | #define ALITRDTRACK_H |
46d29e70 | 3 | |
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
b3a5a838 | 5 | * See cxx source for full Copyright notice */ |
46d29e70 | 6 | |
15ed8ba1 | 7 | /* $Id$ */ |
46d29e70 | 8 | |
53c17fbf | 9 | /////////////////////////////////////////////////////////////////////////////// |
10 | // // | |
11 | // Represents a reconstructed TRD track // | |
12 | // // | |
13 | /////////////////////////////////////////////////////////////////////////////// | |
46d29e70 | 14 | |
15ed8ba1 | 15 | #include "AliKalmanTrack.h" |
16 | ||
17 | #include "AliTRDtracklet.h" | |
18 | ||
19 | class AliESDtrack; | |
20 | class AliTrackReference; | |
21 | class AliTPCtrack; | |
22 | ||
23 | class AliTRDcluster; | |
24 | ||
25 | const unsigned kMAXCLUSTERSPERTRACK = 210; | |
26 | ||
7ad19338 | 27 | class AliTRDtrack : public AliKalmanTrack { |
53c17fbf | 28 | |
6d45eaef | 29 | enum { kNdet = 540 |
15ed8ba1 | 30 | , kNstacks = 90 |
31 | , kNplane = 6 | |
32 | , kNcham = 5 | |
33 | , kNsect = 18 | |
34 | , kNslice = 3 | |
35 | , kNtimeBins = 22 }; | |
7ad19338 | 36 | |
7ad19338 | 37 | friend class AliTRDtracker; |
46d29e70 | 38 | |
53c17fbf | 39 | public: |
40 | ||
f146da82 | 41 | AliTRDtrack(); |
15ed8ba1 | 42 | AliTRDtrack(const AliTRDcluster *c, UInt_t index, const Double_t xx[5] |
43 | , const Double_t cc[15], Double_t xr, Double_t alpha); | |
44 | AliTRDtrack(const AliTRDtrack &t); | |
45 | AliTRDtrack(const AliKalmanTrack &t, Double_t alpha); | |
46 | AliTRDtrack(const AliESDtrack &t); | |
47 | virtual ~AliTRDtrack(); | |
48 | AliTRDtrack &operator=(const AliTRDtrack &t); | |
49 | ||
50 | Int_t Compare(const TObject *o) const; | |
51 | void CookdEdx(Double_t low = 0.05, Double_t up = 0.7); | |
52 | Float_t StatusForTOF(); | |
53 | ||
54 | Double_t GetAlpha() const { return fAlpha; } | |
55 | Int_t GetSector() const; | |
56 | Double_t GetC() const { return fC; } | |
57 | Int_t GetClusterIndex(Int_t i) const { return fIndex[i]; } | |
58 | Float_t GetClusterdQdl(Int_t i) const { return fdQdl[i]; } | |
59 | void GetCovariance(Double_t cov[15]) const; | |
60 | Double_t GetdEdx() const { return fdEdx; } | |
61 | Double_t GetPIDsignal() const { return GetdEdx(); } | |
62 | Float_t GetPIDsignals(Int_t iPlane, Int_t iSlice) const | |
6d45eaef | 63 | { return fdEdxPlane[iPlane][iSlice]; } |
15ed8ba1 | 64 | Int_t GetPIDTimBin(Int_t i) const { return fTimBinPlane[i]; } |
65 | Double_t GetEta() const { return fE; } | |
66 | void GetExternalCovariance(Double_t cov[15]) const; | |
67 | void GetExternalParameters(Double_t &xr, Double_t x[5]) const; | |
68 | Double_t GetLikelihoodElectron() const { return fLhElectron; } | |
69 | Double_t Get1Pt() const; | |
70 | Double_t GetP() const; | |
71 | Double_t GetPredictedChi2(const AliTRDcluster *c, Double_t h01) const; | |
72 | Double_t GetPt() const { return 1.0 / Get1Pt(); } | |
73 | void GetPxPyPz(Double_t &px, Double_t &py, Double_t &pz) const; | |
74 | void GetGlobalXYZ(Double_t &x, Double_t &y, Double_t &z) const; | |
75 | Int_t GetSeedLabel() const { return fSeedLab; } | |
76 | Double_t GetSigmaC2() const { return fCcc; } | |
77 | Double_t GetSigmaTgl2() const { return fCtt; } | |
78 | Double_t GetSigmaY2() const { return fCyy; } | |
79 | Double_t GetSigmaZ2() const { return fCzz; } | |
80 | Double_t GetSnp() const { return fX * fC - fE; } | |
81 | Double_t GetTgl() const { return fT; } | |
82 | Double_t GetX() const { return fX; } | |
83 | Double_t GetY() const { return fY; } | |
84 | Double_t GetZ() const { return fZ; } | |
85 | Int_t *GetBackupIndexes() { return fIndexBackup; } | |
86 | Int_t *GetIndexes() { return fIndex; } | |
87 | Double_t GetYat(Double_t xk) const; | |
88 | Int_t GetProlongation(Double_t xk, Double_t &y, Double_t &z); | |
89 | Int_t GetNWrong() const { return fNWrong; } | |
90 | Int_t GetNRotate() const { return fNRotate; } | |
91 | Int_t GetNCross() const { return fNCross; } | |
92 | Bool_t GetStop() const { return fStopped; } | |
93 | ||
94 | void SetdEdx(Float_t dedx) { fdEdx = dedx; } | |
95 | void SetPIDsignals(Float_t dedx, Int_t iPlane, Int_t iSlice) | |
6d45eaef | 96 | { fdEdxPlane[iPlane][iSlice] = dedx; } |
15ed8ba1 | 97 | void SetPIDTimBin(Int_t timbin, Int_t i) { fTimBinPlane[i] = timbin; } |
98 | void SetLikelihoodElectron(Float_t l) { fLhElectron = l; } | |
99 | void SetSampledEdx(Float_t q, Int_t i); | |
100 | void SetSampledEdx(Float_t q); | |
101 | void SetSeedLabel(Int_t lab) { fSeedLab = lab; } | |
102 | void SetStop(Bool_t stop) { fStopped = stop; } | |
103 | ||
104 | Int_t PropagateTo(Double_t xr, Double_t x0 = 8.72, Double_t rho = 5.86e-3); | |
105 | Int_t PropagateToX(Double_t xr, Double_t step); | |
106 | Int_t PropagateToR(Double_t xr, Double_t step); | |
107 | void ResetCovariance(); | |
108 | void ResetCovariance(Float_t mult); | |
d49e463b | 109 | void ResetClusters() { SetChi2(0.0); |
15ed8ba1 | 110 | SetNumberOfClusters(0); } |
111 | Int_t Rotate(Double_t angle, Bool_t absolute = kFALSE); | |
112 | Int_t Update(const AliTRDcluster *c, Double_t chi2, UInt_t i, Double_t h01); | |
113 | Int_t UpdateMI(const AliTRDcluster *c, Double_t chi2, UInt_t i, Double_t h01, Int_t plane); | |
114 | Int_t UpdateMI(const AliTRDtracklet &tracklet); | |
115 | void AddNWrong() { fNWrong++; } | |
116 | void IncCross() { fNCross++; | |
117 | if (fBackupTrack) | |
118 | fBackupTrack->IncCross(); } | |
119 | AliTRDtrack *GetBackupTrack() { return fBackupTrack; } | |
120 | void MakeBackupTrack(); | |
53c17fbf | 121 | |
122 | protected: | |
123 | ||
15ed8ba1 | 124 | inline void GetXYZ(Float_t r[3]) const; |
125 | Double_t GetPredictedChi2(const AliCluster*/*c*/) const { return 0.0; } | |
126 | Int_t Update(const AliCluster*/*c*/, Double_t /*chi2*/, UInt_t /*i*/) { return 0; } | |
127 | ||
128 | Int_t fSeedLab; // Track label taken from seeding | |
d49e463b | 129 | Float_t fdEdx; // dE/dx - truncated mean |
15ed8ba1 | 130 | Float_t fDE; // Integrated delta energy |
131 | Float_t fdEdxPlane[kNplane][kNslice]; // dE/dx from all 6 planes in 3 slices each | |
132 | Int_t fTimBinPlane[kNplane]; // Time bin of Max cluster from all 6 planes | |
133 | ||
134 | Double_t fAlpha; // Rotation angle | |
135 | Double_t fX; // Running local X-coordinate of the track (time bin) | |
136 | Bool_t fStopped; // Track stop indication | |
137 | ||
138 | Double_t fY; // Y-coordinate of the track | |
139 | Double_t fZ; // Z-coordinate of the track | |
140 | Double_t fE; // C*x0 | |
141 | Double_t fT; // Tangent of the track momentum dip angle | |
142 | Double_t fC; // Track curvature | |
143 | ||
144 | Double_t fCyy; // Covariance | |
145 | Double_t fCzy, fCzz; // matrix | |
146 | Double_t fCey, fCez, fCee; // of the | |
147 | Double_t fCty, fCtz, fCte, fCtt; // track | |
148 | Double_t fCcy, fCcz, fCce, fCct, fCcc; // parameters | |
b8dc2353 | 149 | |
15ed8ba1 | 150 | Int_t fIndex[kMAXCLUSTERSPERTRACK]; // Global indexes of clusters |
151 | Int_t fIndexBackup[kMAXCLUSTERSPERTRACK]; // Backup indexes of clusters - used in iterations | |
152 | Float_t fdQdl[kMAXCLUSTERSPERTRACK]; // Cluster amplitudes corrected for track angles | |
b8dc2353 | 153 | |
15ed8ba1 | 154 | Float_t fLhElectron; // Likelihood to be an electron |
155 | Int_t fNWrong; // Number of wrong clusters | |
156 | Int_t fNRotate; // Number of rotation | |
157 | Int_t fNCross; // Number of the cross materials | |
158 | Int_t fNExpected; // Expected number of cluster | |
159 | Int_t fNLast; // Number of clusters in last 2 layers | |
160 | Int_t fNExpectedLast; // Number of expected clusters on last 2 layers | |
161 | Int_t fNdedx; // Number of clusters for dEdx measurment | |
162 | Float_t fChi2Last; // Chi2 in the last 2 layers | |
163 | AliTRDtracklet fTracklets[6]; // Tracklets | |
164 | Float_t fBudget[3]; // Integrated material budget | |
165 | AliTRDtrack *fBackupTrack; //! Backup track | |
166 | ||
d49e463b | 167 | ClassDef(AliTRDtrack,6) // TRD reconstructed tracks |
46d29e70 | 168 | |
53c17fbf | 169 | }; |
46d29e70 | 170 | |
15ed8ba1 | 171 | //_____________________________________________________________________________ |
172 | inline void AliTRDtrack::GetExternalParameters(Double_t &xr, Double_t x[5]) const | |
5773defd | 173 | { |
174 | // | |
175 | // This function returns external TRD track representation | |
176 | // | |
15ed8ba1 | 177 | |
5773defd | 178 | xr = fX; |
15ed8ba1 | 179 | x[0] = GetY(); |
180 | x[1] = GetZ(); | |
181 | x[2] = GetSnp(); | |
182 | x[3] = GetTgl(); | |
d49e463b | 183 | x[4] = (TMath::Sign(1.0e-9,fC) + fC) * GetLocalConvConst(); |
15ed8ba1 | 184 | |
5773defd | 185 | } |
186 | ||
46d29e70 | 187 | #endif |