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