3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //-------------------------------------------------------------------------
8 // This is the class to deal with during the physical analysis of data
10 // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
11 //-------------------------------------------------------------------------
16 class AliESDtrack : public TObject {
19 virtual ~AliESDtrack() {}
20 void SetStatus(ULong_t flags) {fFlags|=flags;}
21 void ResetStatus(ULong_t flags) {fFlags&=~flags;}
22 Bool_t UpdateTrackParams(const AliKalmanTrack *t, ULong_t flags);
23 void SetIntegratedLength(Double_t l) {fTrackLength=l;}
24 void SetIntegratedTimes(const Double_t *times);
25 void SetESDpid(const Double_t *p);
26 void GetESDpid(Double_t *p) const;
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;
40 void SetTPCpid(const Double_t *p);
41 void GetTPCpid(Double_t *p) const;
42 Float_t GetTPCsignal() const {return fTPCsignal;}
43 Int_t GetTPCclusters(UInt_t *idx) const;
45 void SetITSpid(const Double_t *p) {;}
46 void GetITSpid(Double_t *p) const {;}
47 Float_t GetITSsignal() const {return fITSsignal;}
48 Int_t GetITSclusters(UInt_t *idx) const;
50 Float_t GetTRDsignal() const {return fTRDsignal;}
51 void SetTRDpid(Int_t iSpecies, Float_t p);
52 Float_t GetTRDpid(Int_t iSpecies) const;
55 kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,
56 kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,
57 kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
58 kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
62 enum {kSPECIES=5}; // Number of particle species recognized by the PID
65 ULong_t fFlags; // Reconstruction status flags
66 Int_t fLabel; // Track label
68 Float_t fTrackLength; // Track length
69 Float_t fTrackTime[kSPECIES]; // TOFs estimated by the tracking
70 Float_t fR[kSPECIES]; // combined "detector response probability"
72 Int_t fStopVertex; // Index of stop vertex
74 //Running track parameters
75 Double_t fRalpha; // track rotation angle
76 Double_t fRx; // X-coordinate of the track reference plane
77 Double_t fRp[5]; // external track parameters
78 Double_t fRc[15]; // external cov. matrix of the track parameters
80 //Track parameters at the innermost measured point
81 //Double_t fIalpha,fIx,fIp[5],fIc[15];
83 //Track parameters at the outermost measured point
84 //Double_t fOalpha,fOx,fOp[5],fOc[15];
86 // ITS related track information
87 Float_t fITSchi2; // chi2 in the ITS
88 Int_t fITSncls; // number of clusters assigned in the ITS
89 UInt_t fITSindex[6]; //! indices of the assigned ITS clusters
90 Float_t fITSsignal; // detector's PID signal
91 Float_t fITSr[kSPECIES]; //! "detector response probabilities" (for the PID)
93 // TPC related track information
94 Float_t fTPCchi2; // chi2 in the TPC
95 Int_t fTPCncls; // number of clusters assigned in the TPC
96 UInt_t fTPCindex[180]; //! indices of the assigned TPC clusters
97 Float_t fTPCsignal; // detector's PID signal
98 Float_t fTPCr[kSPECIES]; // "detector response probabilities" (for the PID)
100 // TRD related track information
101 Float_t fTRDchi2; // chi2 in the TRD
102 Int_t fTRDncls; // number of clusters assigned in the TRD
103 Float_t fTRDsignal; // detector's PID signal
104 Float_t fTRDr[kSPECIES]; //! "detector response probabilities" (for the PID)
106 // TOF related track information
107 // HMPID related track information
109 ClassDef(AliESDtrack,1) //ESDtrack