]>
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" | |
13 | ||
14 | class AliKalmanTrack; | |
15 | ||
16 | class AliESDtrack : public TObject { | |
17 | public: | |
18 | AliESDtrack(); | |
19 | virtual ~AliESDtrack() {} | |
20 | void SetStatus(ULong_t flags) {fFlags|=flags;} | |
21 | void ResetStatus(ULong_t flags) {fFlags&=~flags;} | |
ad2f1f2b | 22 | Bool_t UpdateTrackParams(AliKalmanTrack *t, ULong_t flags); |
ae982df3 | 23 | void SetIntegratedLength(Double_t l) {fTrackLength=l;} |
24 | void SetIntegratedTimes(const Double_t *times); | |
8c6a71ab | 25 | void SetESDpid(const Double_t *p); |
26 | void GetESDpid(Double_t *p) const; | |
ae982df3 | 27 | |
28 | ULong_t GetStatus() const {return fFlags;} | |
29 | Int_t GetLabel() const {return fLabel;} | |
30 | Double_t GetAlpha() const {return fRalpha;} | |
31 | void GetExternalParameters(Double_t &x, Double_t p[5]) const; | |
32 | void GetExternalCovariance(Double_t cov[15]) const; | |
33 | Double_t GetIntegratedLength() const {return fTrackLength;} | |
34 | void GetIntegratedTimes(Double_t *times) const; | |
35 | Float_t GetMass() const; | |
36 | Double_t GetP() const; | |
37 | void GetPxPyPz(Double_t *p) const; | |
38 | void GetXYZ(Double_t *r) const; | |
82822bdc | 39 | Int_t GetSign() const {return (fRp[4]<0) ? 1 : -1;} |
ae982df3 | 40 | |
9b859005 | 41 | void GetInnerPxPyPz(Double_t *p) const; |
42 | void GetInnerXYZ(Double_t *r) const; | |
43 | ||
672b5f43 | 44 | void GetOuterPxPyPz(Double_t *p) const; |
45 | void GetOuterXYZ(Double_t *r) const; | |
46 | ||
c630aafd | 47 | void SetITSpid(const Double_t *p); |
48 | void GetITSpid(Double_t *p) const; | |
ae982df3 | 49 | Float_t GetITSsignal() const {return fITSsignal;} |
13da10da | 50 | Float_t GetITSchi2() const {return fITSchi2;} |
ae982df3 | 51 | Int_t GetITSclusters(UInt_t *idx) const; |
52 | ||
13da10da | 53 | void SetTPCpid(const Double_t *p); |
54 | void GetTPCpid(Double_t *p) const; | |
55 | Float_t GetTPCsignal() const {return fTPCsignal;} | |
56 | Float_t GetTPCchi2() const {return fTPCchi2;} | |
57 | Int_t GetTPCclusters(Int_t *idx) const; | |
58 | ||
c630aafd | 59 | void SetTRDpid(const Double_t *p); |
60 | void GetTRDpid(Double_t *p) const; | |
79e94bf8 | 61 | Float_t GetTRDsignal() const {return fTRDsignal;} |
13da10da | 62 | Float_t GetTRDchi2() const {return fTRDchi2;} |
bb2ceb1f | 63 | Int_t GetTRDclusters(UInt_t *idx) const; |
79e94bf8 | 64 | void SetTRDpid(Int_t iSpecies, Float_t p); |
65 | Float_t GetTRDpid(Int_t iSpecies) const; | |
66 | ||
c630aafd | 67 | void SetTOFsignal(Double_t tof) {fTOFsignal=tof;} |
68 | Float_t GetTOFsignal() const {return fTOFsignal;} | |
13da10da | 69 | Float_t GetTOFchi2() const {return fTOFchi2;} |
c630aafd | 70 | void SetTOFpid(const Double_t *p); |
71 | void GetTOFpid(Double_t *p) const; | |
72 | UInt_t GetTOFcluster() const {return fTOFindex;} | |
73 | void SetTOFcluster(UInt_t index) {fTOFindex=index;} | |
ad2f1f2b | 74 | |
ae982df3 | 75 | enum { |
8c6a71ab | 76 | kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008, |
77 | kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080, | |
78 | kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800, | |
79 | kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000, | |
80 | kESDpid=0x40000000, | |
ae982df3 | 81 | kTIME=0x80000000 |
82 | }; | |
83 | enum {kSPECIES=5}; // Number of particle species recognized by the PID | |
79e94bf8 | 84 | |
ae982df3 | 85 | protected: |
86 | ULong_t fFlags; // Reconstruction status flags | |
87 | Int_t fLabel; // Track label | |
88 | ||
89 | Float_t fTrackLength; // Track length | |
90 | Float_t fTrackTime[kSPECIES]; // TOFs estimated by the tracking | |
91 | Float_t fR[kSPECIES]; // combined "detector response probability" | |
92 | ||
93 | Int_t fStopVertex; // Index of stop vertex | |
94 | ||
95 | //Running track parameters | |
96 | Double_t fRalpha; // track rotation angle | |
97 | Double_t fRx; // X-coordinate of the track reference plane | |
98 | Double_t fRp[5]; // external track parameters | |
99 | Double_t fRc[15]; // external cov. matrix of the track parameters | |
100 | ||
672b5f43 | 101 | //Track parameters at the inner wall of the TPC |
9b859005 | 102 | Double_t fIalpha,fIx,fIp[5],fIc[15]; |
ae982df3 | 103 | |
672b5f43 | 104 | //Track parameters at the radius of the PHOS |
105 | Double_t fOalpha,fOx,fOp[5],fOc[15]; | |
ae982df3 | 106 | |
107 | // ITS related track information | |
108 | Float_t fITSchi2; // chi2 in the ITS | |
109 | Int_t fITSncls; // number of clusters assigned in the ITS | |
110 | UInt_t fITSindex[6]; //! indices of the assigned ITS clusters | |
111 | Float_t fITSsignal; // detector's PID signal | |
112 | Float_t fITSr[kSPECIES]; //! "detector response probabilities" (for the PID) | |
9b859005 | 113 | |
ae982df3 | 114 | // TPC related track information |
115 | Float_t fTPCchi2; // chi2 in the TPC | |
116 | Int_t fTPCncls; // number of clusters assigned in the TPC | |
117 | UInt_t fTPCindex[180]; //! indices of the assigned TPC clusters | |
118 | Float_t fTPCsignal; // detector's PID signal | |
8c6a71ab | 119 | Float_t fTPCr[kSPECIES]; // "detector response probabilities" (for the PID) |
ae982df3 | 120 | |
121 | // TRD related track information | |
79e94bf8 | 122 | Float_t fTRDchi2; // chi2 in the TRD |
123 | Int_t fTRDncls; // number of clusters assigned in the TRD | |
bb2ceb1f | 124 | UInt_t fTRDindex[90]; //! indices of the assigned TRD clusters |
79e94bf8 | 125 | Float_t fTRDsignal; // detector's PID signal |
126 | Float_t fTRDr[kSPECIES]; //! "detector response probabilities" (for the PID) | |
127 | ||
ae982df3 | 128 | // TOF related track information |
c630aafd | 129 | Float_t fTOFchi2; // chi2 in the TOF |
bb2ceb1f | 130 | UInt_t fTOFindex; // index of the assigned TOF cluster |
c630aafd | 131 | Float_t fTOFsignal; // detector's PID signal |
132 | Float_t fTOFr[kSPECIES]; // "detector response probabilities" (for the PID) | |
133 | ||
ae982df3 | 134 | // HMPID related track information |
135 | ||
136 | ClassDef(AliESDtrack,1) //ESDtrack | |
137 | }; | |
138 | ||
139 | #endif | |
140 |