]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliESDtrack.h
Adding track parameters with vertex constraint to ESD (Yu.Belikov)
[u/mrichter/AliRoot.git] / STEER / AliESDtrack.h
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;}
22   Bool_t UpdateTrackParams(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;
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   Int_t GetSign() const {return (fRp[4]<0) ? 1 : -1;} 
40
41   void SetConstrainedTrackParams(AliKalmanTrack *t, Double_t chi2);
42
43   Double_t GetConstrainedAlpha() const {return fCalpha;}
44   Double_t GetConstrainedChi2() const {return fCchi2;}
45   void GetConstrainedExternalParameters(Double_t &x, Double_t p[5]) const;
46   void GetConstrainedExternalCovariance(Double_t cov[15]) const;
47
48   void GetConstrainedPxPyPz(Double_t *p) const;
49   void GetConstrainedXYZ(Double_t *r) const;
50
51   void GetInnerPxPyPz(Double_t *p) const;
52   void GetInnerXYZ(Double_t *r) const;
53
54   void GetOuterPxPyPz(Double_t *p) const;
55   void GetOuterXYZ(Double_t *r) const;
56
57   void SetITSpid(const Double_t *p);
58   void GetITSpid(Double_t *p) const;
59   Float_t GetITSsignal() const {return fITSsignal;}
60   Float_t GetITSchi2() const {return fITSchi2;}
61   Int_t GetITSclusters(UInt_t *idx) const;
62
63   void SetTPCpid(const Double_t *p);
64   void GetTPCpid(Double_t *p) const;
65   Float_t GetTPCsignal() const {return fTPCsignal;}
66   Float_t GetTPCchi2() const {return fTPCchi2;}
67   Int_t GetTPCclusters(Int_t *idx) const;
68
69   void SetTRDpid(const Double_t *p);
70   void GetTRDpid(Double_t *p) const;
71   Float_t GetTRDsignal() const {return fTRDsignal;}
72   Float_t GetTRDchi2() const {return fTRDchi2;}
73   Int_t GetTRDclusters(UInt_t *idx) const;
74   void    SetTRDpid(Int_t iSpecies, Float_t p);
75   Float_t GetTRDpid(Int_t iSpecies) const;
76
77   void SetTOFsignal(Double_t tof) {fTOFsignal=tof;}
78   Float_t GetTOFsignal() const {return fTOFsignal;}
79   Float_t GetTOFchi2() const {return fTOFchi2;}
80   void    SetTOFpid(const Double_t *p);
81   void    GetTOFpid(Double_t *p) const;
82   UInt_t  GetTOFcluster() const {return fTOFindex;}
83   void  SetTOFcluster(UInt_t index) {fTOFindex=index;}
84   
85   enum {
86     kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,
87     kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,
88     kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
89     kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
90     kESDpid=0x40000000,
91     kTIME=0x80000000
92   }; 
93   enum {kSPECIES=5}; // Number of particle species recognized by the PID
94
95 protected:
96   ULong_t   fFlags;        // Reconstruction status flags 
97   Int_t     fLabel;        // Track label
98
99   Float_t   fTrackLength;         // Track length
100   Float_t   fTrackTime[kSPECIES]; // TOFs estimated by the tracking
101   Float_t   fR[kSPECIES];         // combined "detector response probability"
102
103   Int_t     fStopVertex;          // Index of stop vertex
104
105 //Running track parameters
106   Double_t fRalpha;  // track rotation angle
107   Double_t fRx;      // X-coordinate of the track reference plane 
108   Double_t fRp[5];   // external track parameters  
109   Double_t fRc[15];  // external cov. matrix of the track parameters
110
111 //Track parameters constrained to the primary vertex
112   Double_t fCalpha,fCx,fCp[5],fCc[15];
113   Double_t fCchi2; //chi2 at the primary vertex
114
115 //Track parameters at the inner wall of the TPC
116   Double_t fIalpha,fIx,fIp[5],fIc[15];
117
118 //Track parameters at the radius of the PHOS
119   Double_t fOalpha,fOx,fOp[5],fOc[15];
120
121   // ITS related track information
122   Float_t fITSchi2;        // chi2 in the ITS
123   Int_t   fITSncls;        // number of clusters assigned in the ITS
124   UInt_t  fITSindex[6];    //! indices of the assigned ITS clusters
125   Float_t fITSsignal;      // detector's PID signal
126   Float_t fITSr[kSPECIES]; //! "detector response probabilities" (for the PID)
127
128   // TPC related track information
129   Float_t fTPCchi2;        // chi2 in the TPC
130   Int_t   fTPCncls;        // number of clusters assigned in the TPC
131   UInt_t  fTPCindex[180];  //! indices of the assigned TPC clusters
132   Float_t fTPCsignal;      // detector's PID signal
133   Float_t fTPCr[kSPECIES]; // "detector response probabilities" (for the PID)
134
135   // TRD related track information
136   Float_t fTRDchi2;        // chi2 in the TRD
137   Int_t   fTRDncls;        // number of clusters assigned in the TRD
138   UInt_t  fTRDindex[90];   //! indices of the assigned TRD clusters
139   Float_t fTRDsignal;      // detector's PID signal
140   Float_t fTRDr[kSPECIES]; //! "detector response probabilities" (for the PID)
141
142   // TOF related track information
143   Float_t fTOFchi2;        // chi2 in the TOF
144   UInt_t  fTOFindex;       // index of the assigned TOF cluster
145   Float_t fTOFsignal;      // detector's PID signal
146   Float_t fTOFr[kSPECIES]; // "detector response probabilities" (for the PID)
147
148   // HMPID related track information
149
150   ClassDef(AliESDtrack,1)  //ESDtrack 
151 };
152
153 #endif 
154