]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDtrack.h
New class AliPHOSFastGlobalReconstruction is added
[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;}
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
26 ULong_t GetStatus() const {return fFlags;}
27 Int_t GetLabel() const {return fLabel;}
28 Double_t GetAlpha() const {return fRalpha;}
29 void GetExternalParameters(Double_t &x, Double_t p[5]) const;
30 void GetExternalCovariance(Double_t cov[15]) const;
31 Double_t GetIntegratedLength() const {return fTrackLength;}
32 void GetIntegratedTimes(Double_t *times) const;
33 Float_t GetMass() const;
34 Double_t GetP() const;
35 void GetPxPyPz(Double_t *p) const;
36 void GetXYZ(Double_t *r) const;
37
38 Float_t GetTPCsignal() const {return fTPCsignal;}
39 Int_t GetTPCclusters(UInt_t *idx) const;
40
41 Float_t GetITSsignal() const {return fITSsignal;}
42 Int_t GetITSclusters(UInt_t *idx) const;
43
44 enum {
45 kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSPID=0x0008,
46 kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCPID=0x0080,
47 kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDPID=0x0800,
48 kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFPID=0x8000,
49 kTIME=0x80000000
50 };
51 enum {kSPECIES=5}; // Number of particle species recognized by the PID
52
53protected:
54 ULong_t fFlags; // Reconstruction status flags
55 Int_t fLabel; // Track label
56
57 Float_t fTrackLength; // Track length
58 Float_t fTrackTime[kSPECIES]; // TOFs estimated by the tracking
59 Float_t fR[kSPECIES]; // combined "detector response probability"
60
61 Int_t fStopVertex; // Index of stop vertex
62
63//Running track parameters
64 Double_t fRalpha; // track rotation angle
65 Double_t fRx; // X-coordinate of the track reference plane
66 Double_t fRp[5]; // external track parameters
67 Double_t fRc[15]; // external cov. matrix of the track parameters
68
69//Track parameters at the innermost measured point
70 //Double_t fIalpha,fIx,fIp[5],fIc[15];
71
72//Track parameters at the outermost measured point
73 //Double_t fOalpha,fOx,fOp[5],fOc[15];
74
75 // ITS related track information
76 Float_t fITSchi2; // chi2 in the ITS
77 Int_t fITSncls; // number of clusters assigned in the ITS
78 UInt_t fITSindex[6]; //! indices of the assigned ITS clusters
79 Float_t fITSsignal; // detector's PID signal
80 Float_t fITSr[kSPECIES]; //! "detector response probabilities" (for the PID)
81
82 // TPC related track information
83 Float_t fTPCchi2; // chi2 in the TPC
84 Int_t fTPCncls; // number of clusters assigned in the TPC
85 UInt_t fTPCindex[180]; //! indices of the assigned TPC clusters
86 Float_t fTPCsignal; // detector's PID signal
87 Float_t fTPCr[kSPECIES]; //! "detector response probabilities" (for the PID)
88
89 // TRD related track information
90 // TOF related track information
91 // HMPID related track information
92
93 ClassDef(AliESDtrack,1) //ESDtrack
94};
95
96#endif
97