Updated version (Yu.Belikov)
[u/mrichter/AliRoot.git] / STEER / AliESDtrack.h
CommitLineData
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
14class AliKalmanTrack;
15
16class AliESDtrack : public TObject {
17public:
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;}
e23730c7 31 void GetExternalParametersAt(Double_t x, Double_t p[5]) const;
ae982df3 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;
36 Float_t GetMass() const;
37 Double_t GetP() const;
38 void GetPxPyPz(Double_t *p) const;
39 void GetXYZ(Double_t *r) const;
40
8c6a71ab 41 void SetTPCpid(const Double_t *p);
42 void GetTPCpid(Double_t *p) const;
ae982df3 43 Float_t GetTPCsignal() const {return fTPCsignal;}
15112c87 44 Int_t GetTPCclusters(Int_t *idx) const;
ae982df3 45
c630aafd 46 void SetITSpid(const Double_t *p);
47 void GetITSpid(Double_t *p) const;
ae982df3 48 Float_t GetITSsignal() const {return fITSsignal;}
49 Int_t GetITSclusters(UInt_t *idx) const;
50
c630aafd 51 void SetTRDpid(const Double_t *p);
52 void GetTRDpid(Double_t *p) const;
79e94bf8 53 Float_t GetTRDsignal() const {return fTRDsignal;}
54 void SetTRDpid(Int_t iSpecies, Float_t p);
55 Float_t GetTRDpid(Int_t iSpecies) const;
56
c630aafd 57 void SetTOFsignal(Double_t tof) {fTOFsignal=tof;}
58 Float_t GetTOFsignal() const {return fTOFsignal;}
59 void SetTOFpid(const Double_t *p);
60 void GetTOFpid(Double_t *p) const;
61 UInt_t GetTOFcluster() const {return fTOFindex;}
62 void SetTOFcluster(UInt_t index) {fTOFindex=index;}
ad2f1f2b 63
64 void GetVertexXYZ(Double_t& x,Double_t& y, Double_t&z) const;
65 void GetVertexPxPyPz(Double_t& px,Double_t& py, Double_t& pz) const;
66 Bool_t HasVertexParameters() const {return fVertex;}
c630aafd 67
ae982df3 68 enum {
8c6a71ab 69 kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,
70 kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,
71 kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
72 kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
73 kESDpid=0x40000000,
ae982df3 74 kTIME=0x80000000
75 };
76 enum {kSPECIES=5}; // Number of particle species recognized by the PID
79e94bf8 77
ae982df3 78protected:
79 ULong_t fFlags; // Reconstruction status flags
80 Int_t fLabel; // Track label
81
82 Float_t fTrackLength; // Track length
83 Float_t fTrackTime[kSPECIES]; // TOFs estimated by the tracking
84 Float_t fR[kSPECIES]; // combined "detector response probability"
85
86 Int_t fStopVertex; // Index of stop vertex
87
88//Running track parameters
89 Double_t fRalpha; // track rotation angle
90 Double_t fRx; // X-coordinate of the track reference plane
91 Double_t fRp[5]; // external track parameters
92 Double_t fRc[15]; // external cov. matrix of the track parameters
93
94//Track parameters at the innermost measured point
95 //Double_t fIalpha,fIx,fIp[5],fIc[15];
96
97//Track parameters at the outermost measured point
98 //Double_t fOalpha,fOx,fOp[5],fOc[15];
99
100 // ITS related track information
101 Float_t fITSchi2; // chi2 in the ITS
102 Int_t fITSncls; // number of clusters assigned in the ITS
103 UInt_t fITSindex[6]; //! indices of the assigned ITS clusters
104 Float_t fITSsignal; // detector's PID signal
105 Float_t fITSr[kSPECIES]; //! "detector response probabilities" (for the PID)
ad2f1f2b 106
4427806c 107 Double_t fVertexX; // X coordinate of point of closest approach to the vertex
108 Double_t fVertexY; // Y coordinate of point of closest approach to the vertex
109 Double_t fVertexZ; // Z coordinate of point of closest approach to the vertex
ad2f1f2b 110
4427806c 111 Double_t fVertexPx; // Px at point of closest approach to the vertex
112 Double_t fVertexPy; // Py at point of closest approach to the vertex
113 Double_t fVertexPz; // Pz at point of closest approach to the vertex
ad2f1f2b 114
4427806c 115 Bool_t fVertex; // TRUE if the track was prolongated to the vertex
ad2f1f2b 116
ae982df3 117 // TPC related track information
118 Float_t fTPCchi2; // chi2 in the TPC
119 Int_t fTPCncls; // number of clusters assigned in the TPC
120 UInt_t fTPCindex[180]; //! indices of the assigned TPC clusters
121 Float_t fTPCsignal; // detector's PID signal
8c6a71ab 122 Float_t fTPCr[kSPECIES]; // "detector response probabilities" (for the PID)
ae982df3 123
124 // TRD related track information
79e94bf8 125 Float_t fTRDchi2; // chi2 in the TRD
126 Int_t fTRDncls; // number of clusters assigned in the TRD
127 Float_t fTRDsignal; // detector's PID signal
128 Float_t fTRDr[kSPECIES]; //! "detector response probabilities" (for the PID)
129
ae982df3 130 // TOF related track information
c630aafd 131 Float_t fTOFchi2; // chi2 in the TOF
132 UInt_t fTOFindex; //! index of the assigned TOF cluster
133 Float_t fTOFsignal; // detector's PID signal
134 Float_t fTOFr[kSPECIES]; // "detector response probabilities" (for the PID)
135
ae982df3 136 // HMPID related track information
137
138 ClassDef(AliESDtrack,1) //ESDtrack
139};
140
141#endif
142