]>
Commit | Line | Data |
---|---|---|
ae982df3 | 1 | #ifndef ALIESDTRACK_H |
2 | #define ALIESDTRACK_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | //------------------------------------------------------------------------- | |
7 | // Class AliESDtrack | |
8 | // This is the class to deal with during the physical analysis of data | |
9 | // | |
10 | // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch | |
11 | //------------------------------------------------------------------------- | |
12 | #include "TObject.h" | |
a866ac60 | 13 | #include <TBits.h> |
ae982df3 | 14 | |
15 | class AliKalmanTrack; | |
16 | ||
17 | class AliESDtrack : public TObject { | |
18 | public: | |
19 | AliESDtrack(); | |
20 | virtual ~AliESDtrack() {} | |
21 | void SetStatus(ULong_t flags) {fFlags|=flags;} | |
22 | void ResetStatus(ULong_t flags) {fFlags&=~flags;} | |
ad2f1f2b | 23 | Bool_t UpdateTrackParams(AliKalmanTrack *t, ULong_t flags); |
ae982df3 | 24 | void SetIntegratedLength(Double_t l) {fTrackLength=l;} |
25 | void SetIntegratedTimes(const Double_t *times); | |
8c6a71ab | 26 | void SetESDpid(const Double_t *p); |
27 | void GetESDpid(Double_t *p) const; | |
ae982df3 | 28 | |
29 | ULong_t GetStatus() const {return fFlags;} | |
30 | Int_t GetLabel() const {return fLabel;} | |
31 | Double_t GetAlpha() const {return fRalpha;} | |
32 | void GetExternalParameters(Double_t &x, Double_t p[5]) const; | |
33 | void GetExternalCovariance(Double_t cov[15]) const; | |
34 | Double_t GetIntegratedLength() const {return fTrackLength;} | |
35 | void GetIntegratedTimes(Double_t *times) const; | |
4a78b8c5 | 36 | Double_t GetMass() const; |
ae982df3 | 37 | Double_t GetP() const; |
38 | void GetPxPyPz(Double_t *p) const; | |
39 | void GetXYZ(Double_t *r) const; | |
9f64824b | 40 | Int_t GetSign() const {return (fRp[4]>0) ? 1 : -1;} |
ae982df3 | 41 | |
67c3dcbe | 42 | void SetConstrainedTrackParams(AliKalmanTrack *t, Double_t chi2); |
43 | ||
44 | Double_t GetConstrainedAlpha() const {return fCalpha;} | |
45 | Double_t GetConstrainedChi2() const {return fCchi2;} | |
46 | void GetConstrainedExternalParameters(Double_t &x, Double_t p[5]) const; | |
47 | void GetConstrainedExternalCovariance(Double_t cov[15]) const; | |
48 | ||
49 | void GetConstrainedPxPyPz(Double_t *p) const; | |
50 | void GetConstrainedXYZ(Double_t *r) const; | |
51 | ||
9b859005 | 52 | void GetInnerPxPyPz(Double_t *p) const; |
53 | void GetInnerXYZ(Double_t *r) const; | |
a866ac60 | 54 | void GetInnerExternalParameters(Double_t &x, Double_t p[5]) const;//skowron |
55 | void GetInnerExternalCovariance(Double_t cov[15]) const;//skowron | |
56 | Double_t GetInnerAlpha() const {return fIalpha;} | |
57 | ||
58 | ||
672b5f43 | 59 | void GetOuterPxPyPz(Double_t *p) const; |
60 | void GetOuterXYZ(Double_t *r) const; | |
61 | ||
c630aafd | 62 | void SetITSpid(const Double_t *p); |
babd135a | 63 | void SetITSChi2MIP(const Float_t *chi2mip); |
c630aafd | 64 | void GetITSpid(Double_t *p) const; |
ae982df3 | 65 | Float_t GetITSsignal() const {return fITSsignal;} |
13da10da | 66 | Float_t GetITSchi2() const {return fITSchi2;} |
ae982df3 | 67 | Int_t GetITSclusters(UInt_t *idx) const; |
6e5b1b04 | 68 | Int_t GetITSLabel() const {return fITSLabel;} |
babd135a | 69 | Float_t GetITSFakeRatio() const {return fITSFakeRatio;} |
70 | ||
ae982df3 | 71 | |
13da10da | 72 | void SetTPCpid(const Double_t *p); |
73 | void GetTPCpid(Double_t *p) const; | |
74 | Float_t GetTPCsignal() const {return fTPCsignal;} | |
75 | Float_t GetTPCchi2() const {return fTPCchi2;} | |
76 | Int_t GetTPCclusters(Int_t *idx) const; | |
6e5b1b04 | 77 | Int_t GetTPCLabel() const {return fTPCLabel;} |
3a83c716 | 78 | const TBits& GetTPCClusterMap() const {return fTPCClusterMap;} |
a866ac60 | 79 | |
c630aafd | 80 | void SetTRDpid(const Double_t *p); |
81 | void GetTRDpid(Double_t *p) const; | |
79e94bf8 | 82 | Float_t GetTRDsignal() const {return fTRDsignal;} |
13da10da | 83 | Float_t GetTRDchi2() const {return fTRDchi2;} |
bb2ceb1f | 84 | Int_t GetTRDclusters(UInt_t *idx) const; |
79e94bf8 | 85 | void SetTRDpid(Int_t iSpecies, Float_t p); |
86 | Float_t GetTRDpid(Int_t iSpecies) const; | |
6e5b1b04 | 87 | Int_t GetTRDLabel() const {return fTRDLabel;} |
88 | ||
79e94bf8 | 89 | |
c630aafd | 90 | void SetTOFsignal(Double_t tof) {fTOFsignal=tof;} |
91 | Float_t GetTOFsignal() const {return fTOFsignal;} | |
13da10da | 92 | Float_t GetTOFchi2() const {return fTOFchi2;} |
c630aafd | 93 | void SetTOFpid(const Double_t *p); |
94 | void GetTOFpid(Double_t *p) const; | |
95 | UInt_t GetTOFcluster() const {return fTOFindex;} | |
96 | void SetTOFcluster(UInt_t index) {fTOFindex=index;} | |
4a78b8c5 | 97 | |
98 | void SetRICHsignal(Double_t beta) {fRICHsignal=beta;} | |
99 | Float_t GetRICHsignal() const {return fRICHsignal;} | |
100 | void SetRICHpid(const Double_t *p); | |
101 | void GetRICHpid(Double_t *p) const; | |
102 | ||
103 | void SetPHOSposition(const Double_t *pos) { | |
104 | fPHOSpos[0] = pos[0]; fPHOSpos[1]=pos[1]; fPHOSpos[2]=pos[2]; | |
105 | } | |
106 | void SetPHOSsignal(Double_t ene) {fPHOSsignal = ene; } | |
107 | void SetPHOSpid(const Double_t *p); | |
108 | void GetPHOSposition(Double_t *pos) const { | |
109 | pos[0]=fPHOSpos[0]; pos[1]=fPHOSpos[1]; pos[2]=fPHOSpos[2]; | |
110 | } | |
111 | Float_t GetPHOSsignal() const {return fPHOSsignal;} | |
112 | void GetPHOSpid(Double_t *p) const; | |
113 | ||
3a83c716 | 114 | Bool_t IsOn(Int_t mask) const {return (fFlags&mask)>0;} |
115 | Bool_t IsRICH() const {return fFlags&kRICHpid;} | |
116 | Bool_t IsPHOS() const {return fFlags&kPHOSpid;} | |
ac2f7574 | 117 | |
118 | virtual void Print(Option_t * opt) const ; | |
119 | ||
ae982df3 | 120 | enum { |
8c6a71ab | 121 | kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008, |
122 | kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080, | |
123 | kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800, | |
124 | kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000, | |
4a78b8c5 | 125 | kPHOSpid=0x10000, kRICHpid=0x20000, |
126 | kTRDStop=0x20000000, | |
8c6a71ab | 127 | kESDpid=0x40000000, |
ae982df3 | 128 | kTIME=0x80000000 |
129 | }; | |
f82d8b8c | 130 | enum { |
131 | kSPECIES=5, // Number of particle species recognized by the PID | |
ac2f7574 | 132 | kSPECIESN=10, // Number of charged+neutral particle species recognized by the PHOS PID |
f82d8b8c | 133 | kElectron=0, kMuon=1, kPion=2, kKaon=3, kProton=4, kPhoton=5, |
ac2f7574 | 134 | kPi0=6, kNeutron=7, kKaon0=8, kEleCon=9 // PHOS definition |
f82d8b8c | 135 | }; |
ae982df3 | 136 | protected: |
137 | ULong_t fFlags; // Reconstruction status flags | |
138 | Int_t fLabel; // Track label | |
139 | ||
140 | Float_t fTrackLength; // Track length | |
141 | Float_t fTrackTime[kSPECIES]; // TOFs estimated by the tracking | |
142 | Float_t fR[kSPECIES]; // combined "detector response probability" | |
143 | ||
144 | Int_t fStopVertex; // Index of stop vertex | |
145 | ||
146 | //Running track parameters | |
147 | Double_t fRalpha; // track rotation angle | |
148 | Double_t fRx; // X-coordinate of the track reference plane | |
149 | Double_t fRp[5]; // external track parameters | |
150 | Double_t fRc[15]; // external cov. matrix of the track parameters | |
151 | ||
67c3dcbe | 152 | //Track parameters constrained to the primary vertex |
3a83c716 | 153 | Double_t fCalpha; // Track rotation angle |
154 | Double_t fCx; // x-coordinate of the track reference plane | |
155 | Double_t fCp[5]; // external track parameters | |
156 | Double_t fCc[15]; // external cov. matrix of the track parameters | |
67c3dcbe | 157 | Double_t fCchi2; //chi2 at the primary vertex |
158 | ||
672b5f43 | 159 | //Track parameters at the inner wall of the TPC |
3a83c716 | 160 | Double_t fIalpha; // Track rotation angle |
161 | Double_t fIx; // x-coordinate of the track reference plane | |
162 | Double_t fIp[5]; // external track parameters | |
163 | Double_t fIc[15]; // external cov. matrix of the track parameters | |
ae982df3 | 164 | |
672b5f43 | 165 | //Track parameters at the radius of the PHOS |
3a83c716 | 166 | Double_t fOalpha; // Track rotation angle |
167 | Double_t fOx; // x-coordinate of the track reference plane | |
168 | Double_t fOp[5]; // external track parameters | |
169 | Double_t fOc[15]; // external cov. matrix of the track parameters | |
ae982df3 | 170 | |
171 | // ITS related track information | |
172 | Float_t fITSchi2; // chi2 in the ITS | |
babd135a | 173 | Float_t fITSchi2MIP[6]; // chi2s in the ITS |
ae982df3 | 174 | Int_t fITSncls; // number of clusters assigned in the ITS |
175 | UInt_t fITSindex[6]; //! indices of the assigned ITS clusters | |
176 | Float_t fITSsignal; // detector's PID signal | |
431be10d | 177 | Float_t fITSr[kSPECIES]; // "detector response probabilities" (for the PID) |
6e5b1b04 | 178 | Int_t fITSLabel; // label according TPC |
babd135a | 179 | Float_t fITSFakeRatio; // ration of fake tracks |
ae982df3 | 180 | // TPC related track information |
181 | Float_t fTPCchi2; // chi2 in the TPC | |
182 | Int_t fTPCncls; // number of clusters assigned in the TPC | |
183 | UInt_t fTPCindex[180]; //! indices of the assigned TPC clusters | |
a866ac60 | 184 | TBits fTPCClusterMap; // Map of clusters, one bit per padrow; 1 if has a cluster on given padrow |
ae982df3 | 185 | Float_t fTPCsignal; // detector's PID signal |
8c6a71ab | 186 | Float_t fTPCr[kSPECIES]; // "detector response probabilities" (for the PID) |
6e5b1b04 | 187 | Int_t fTPCLabel; // label according TPC |
4a78b8c5 | 188 | |
ae982df3 | 189 | // TRD related track information |
79e94bf8 | 190 | Float_t fTRDchi2; // chi2 in the TRD |
191 | Int_t fTRDncls; // number of clusters assigned in the TRD | |
bb2ceb1f | 192 | UInt_t fTRDindex[90]; //! indices of the assigned TRD clusters |
79e94bf8 | 193 | Float_t fTRDsignal; // detector's PID signal |
431be10d | 194 | Float_t fTRDr[kSPECIES]; // "detector response probabilities" (for the PID) |
6e5b1b04 | 195 | Int_t fTRDLabel; // label according TRD |
79e94bf8 | 196 | |
ae982df3 | 197 | // TOF related track information |
c630aafd | 198 | Float_t fTOFchi2; // chi2 in the TOF |
bb2ceb1f | 199 | UInt_t fTOFindex; // index of the assigned TOF cluster |
c630aafd | 200 | Float_t fTOFsignal; // detector's PID signal |
201 | Float_t fTOFr[kSPECIES]; // "detector response probabilities" (for the PID) | |
202 | ||
4a78b8c5 | 203 | // PHOS related track information |
204 | Float_t fPHOSpos[3]; //position localised by PHOS in global coordinate system | |
205 | Float_t fPHOSsignal; // energy measured by PHOS | |
ac2f7574 | 206 | Float_t fPHOSr[kSPECIES]; // PID information from PHOS |
ae982df3 | 207 | |
4a78b8c5 | 208 | // HMPID related track information |
209 | Float_t fRICHsignal; // detector's PID signal (beta for RICH) | |
210 | Float_t fRICHr[kSPECIES];// "detector response probabilities" (for the PID) | |
211 | ||
babd135a | 212 | ClassDef(AliESDtrack,4) //ESDtrack |
ae982df3 | 213 | }; |
214 | ||
215 | #endif | |
216 |