Adding DISPLAY and ANALYSIS
[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"
a866ac60 13#include <TBits.h>
ae982df3 14
15class AliKalmanTrack;
16
17class AliESDtrack : public TObject {
18public:
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;
36 Float_t GetMass() const;
37 Double_t GetP() const;
38 void GetPxPyPz(Double_t *p) const;
39 void GetXYZ(Double_t *r) const;
82822bdc 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);
63 void GetITSpid(Double_t *p) const;
ae982df3 64 Float_t GetITSsignal() const {return fITSsignal;}
13da10da 65 Float_t GetITSchi2() const {return fITSchi2;}
ae982df3 66 Int_t GetITSclusters(UInt_t *idx) const;
67
13da10da 68 void SetTPCpid(const Double_t *p);
69 void GetTPCpid(Double_t *p) const;
70 Float_t GetTPCsignal() const {return fTPCsignal;}
71 Float_t GetTPCchi2() const {return fTPCchi2;}
72 Int_t GetTPCclusters(Int_t *idx) const;
a866ac60 73 const TBits& GetTPCClusterMap(){return fTPCClusterMap;}
74
c630aafd 75 void SetTRDpid(const Double_t *p);
76 void GetTRDpid(Double_t *p) const;
79e94bf8 77 Float_t GetTRDsignal() const {return fTRDsignal;}
13da10da 78 Float_t GetTRDchi2() const {return fTRDchi2;}
bb2ceb1f 79 Int_t GetTRDclusters(UInt_t *idx) const;
79e94bf8 80 void SetTRDpid(Int_t iSpecies, Float_t p);
81 Float_t GetTRDpid(Int_t iSpecies) const;
82
c630aafd 83 void SetTOFsignal(Double_t tof) {fTOFsignal=tof;}
84 Float_t GetTOFsignal() const {return fTOFsignal;}
13da10da 85 Float_t GetTOFchi2() const {return fTOFchi2;}
c630aafd 86 void SetTOFpid(const Double_t *p);
87 void GetTOFpid(Double_t *p) const;
88 UInt_t GetTOFcluster() const {return fTOFindex;}
89 void SetTOFcluster(UInt_t index) {fTOFindex=index;}
ad2f1f2b 90
ae982df3 91 enum {
8c6a71ab 92 kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,
93 kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,
94 kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
95 kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
d0862fea 96 kTRDStop=0x10000,
8c6a71ab 97 kESDpid=0x40000000,
ae982df3 98 kTIME=0x80000000
99 };
100 enum {kSPECIES=5}; // Number of particle species recognized by the PID
79e94bf8 101
ae982df3 102protected:
103 ULong_t fFlags; // Reconstruction status flags
104 Int_t fLabel; // Track label
105
106 Float_t fTrackLength; // Track length
107 Float_t fTrackTime[kSPECIES]; // TOFs estimated by the tracking
108 Float_t fR[kSPECIES]; // combined "detector response probability"
109
110 Int_t fStopVertex; // Index of stop vertex
111
112//Running track parameters
113 Double_t fRalpha; // track rotation angle
114 Double_t fRx; // X-coordinate of the track reference plane
115 Double_t fRp[5]; // external track parameters
116 Double_t fRc[15]; // external cov. matrix of the track parameters
117
67c3dcbe 118//Track parameters constrained to the primary vertex
119 Double_t fCalpha,fCx,fCp[5],fCc[15];
120 Double_t fCchi2; //chi2 at the primary vertex
121
672b5f43 122//Track parameters at the inner wall of the TPC
9b859005 123 Double_t fIalpha,fIx,fIp[5],fIc[15];
ae982df3 124
672b5f43 125//Track parameters at the radius of the PHOS
126 Double_t fOalpha,fOx,fOp[5],fOc[15];
ae982df3 127
128 // ITS related track information
129 Float_t fITSchi2; // chi2 in the ITS
130 Int_t fITSncls; // number of clusters assigned in the ITS
131 UInt_t fITSindex[6]; //! indices of the assigned ITS clusters
132 Float_t fITSsignal; // detector's PID signal
431be10d 133 Float_t fITSr[kSPECIES]; // "detector response probabilities" (for the PID)
9b859005 134
ae982df3 135 // TPC related track information
136 Float_t fTPCchi2; // chi2 in the TPC
137 Int_t fTPCncls; // number of clusters assigned in the TPC
138 UInt_t fTPCindex[180]; //! indices of the assigned TPC clusters
a866ac60 139 TBits fTPCClusterMap; // Map of clusters, one bit per padrow; 1 if has a cluster on given padrow
ae982df3 140 Float_t fTPCsignal; // detector's PID signal
8c6a71ab 141 Float_t fTPCr[kSPECIES]; // "detector response probabilities" (for the PID)
ae982df3 142
143 // TRD related track information
79e94bf8 144 Float_t fTRDchi2; // chi2 in the TRD
145 Int_t fTRDncls; // number of clusters assigned in the TRD
bb2ceb1f 146 UInt_t fTRDindex[90]; //! indices of the assigned TRD clusters
79e94bf8 147 Float_t fTRDsignal; // detector's PID signal
431be10d 148 Float_t fTRDr[kSPECIES]; // "detector response probabilities" (for the PID)
79e94bf8 149
ae982df3 150 // TOF related track information
c630aafd 151 Float_t fTOFchi2; // chi2 in the TOF
bb2ceb1f 152 UInt_t fTOFindex; // index of the assigned TOF cluster
c630aafd 153 Float_t fTOFsignal; // detector's PID signal
154 Float_t fTOFr[kSPECIES]; // "detector response probabilities" (for the PID)
155
ae982df3 156 // HMPID related track information
157
158 ClassDef(AliESDtrack,1) //ESDtrack
159};
160
161#endif
162