]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - TPC/AliTPCtrack.h
Add cluster error and shape parameterization class + routine to fit parameters
[u/mrichter/AliRoot.git] / TPC / AliTPCtrack.h
... / ...
CommitLineData
1#ifndef ALITPCTRACK_H
2#define ALITPCTRACK_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5/* $Id$ */
6
7//-------------------------------------------------------
8// TPC Track Class
9//
10// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
11//
12// The track parameterization is fixed in the following way:
13// param0: local Y-coordinate of a track (cm)
14// param1: local Z-coordinate of a track (cm)
15// param2: local sine of the track momentum azimuth angle
16// param3: tangent of the track momentum dip angle
17// param4: 1/pt (1/(GeV/c))
18//
19//-------------------------------------------------------
20
21#include <AliKalmanTrack.h>
22#include <TMath.h>
23
24#include "AliTPCreco.h"
25#include "AliExternalTrackParam.h"
26class AliESDtrack;
27class AliESDVertex;
28
29//_____________________________________________________________________________
30class AliTPCtrack : public AliKalmanTrack {
31public:
32 AliTPCtrack();
33 AliTPCtrack(Double_t x, Double_t alpha, const Double_t p[5],
34 const Double_t cov[15], Int_t index);
35 AliTPCtrack(const AliESDtrack& t);
36 AliTPCtrack(const AliTPCtrack& t);
37 virtual ~AliTPCtrack() {}
38
39 Int_t Compare(const TObject *o) const;
40
41 void SetdEdx(Double_t dedx) {fdEdx=dedx;}
42 Double_t GetdEdx() const {return fdEdx;}
43 Double_t GetPIDsignal() const {return GetdEdx();}
44
45 Int_t GetClusterIndex(Int_t i) const {return fIndex[i];}
46 void SetClusterIndex(Int_t i, Int_t idx) {fIndex[i]=idx;}
47
48 Double_t GetC() const {return AliExternalTrackParam::GetC(GetBz());}
49
50 Double_t GetPredictedChi2(const AliCluster *cluster) const;
51 Bool_t PropagateTo(Double_t xr, Double_t rho=0.9e-3, Double_t x0=28.94);
52 Bool_t Update(const AliCluster *c, Double_t chi2, Int_t i);
53 Bool_t Rotate(Double_t alpha) {
54 return AliExternalTrackParam::Rotate(GetAlpha()+alpha);
55 }
56
57 Bool_t PropagateToVertex(const AliESDVertex *v,
58 Double_t rho=1.2e-3, Double_t x0=36.66);
59 void ResetClusters() {SetNumberOfClusters(0); SetChi2(0.);}
60 void UpdatePoints();//update points
61 Float_t* GetPoints() {return fPoints;}
62
63 Float_t Density(Int_t row0, Int_t row1); //calculate cluster density
64 Float_t Density2(Int_t row0, Int_t row1); //calculate cluster density
65 Double_t GetD(Double_t x=0, Double_t y=0) const {
66 return AliExternalTrackParam::GetD(x,y,GetBz());
67 }
68 AliExternalTrackParam & GetReference(){ return fReference;}
69 void UpdateReference(){ new (&fReference) AliExternalTrackParam(*this);}
70 Int_t GetKinkIndex(Int_t i) const{ return fKinkIndexes[i];}
71 Int_t* GetKinkIndexes() { return fKinkIndexes;}
72 Int_t GetV0Index(Int_t i) const{ return fV0Indexes[i];}
73 Int_t* GetV0Indexes() { return fV0Indexes;}
74
75 void SetFirstPoint(Int_t f) {fFirstPoint=f;}
76 void SetLastPoint(Int_t f) {fLastPoint=f;}
77 void SetRemoval(Int_t f) {fRemoval=f;}
78 void SetLab2(Int_t f) {fLab2=f;}
79 void SetKinkIndex(Int_t i, Int_t idx) {fKinkIndexes[i]=idx;}
80 void SetBConstrain(Bool_t b) {fBConstrain=b;}
81 void SetNFoundable(Int_t n) {fNFoundable=n;}
82 void SetNShared(Int_t s) {fNShared=s;}
83
84 Int_t GetFirstPoint() const {return fFirstPoint;}
85 Int_t GetLastPoint() const {return fLastPoint;}
86 Int_t GetRemoval() const {return fRemoval;}
87 Int_t GetLab2() const {return fLab2;}
88 Bool_t GetBConstrain() const {return fBConstrain;}
89 Int_t GetNShared() const {return fNShared;}
90 Int_t GetNFoundable() const {return fNFoundable;}
91
92protected:
93 Double_t GetBz() const;
94 Double_t fdEdx; // dE/dx
95
96 Int_t fIndex[kMaxRow]; // indices of associated clusters
97 Float_t fPoints[4]; //first, max dens row end points of the track and max density
98 // MI addition
99 Float_t fSdEdx; // sigma of dedx
100 //
101 Int_t fNFoundable; //number of foundable clusters - dead zone taken to the account
102 Bool_t fBConstrain; // indicate seeding with vertex constrain
103 Int_t fLastPoint; // last cluster position
104 Int_t fFirstPoint; // first cluster position
105 Int_t fRemoval; // removal factor
106 Int_t fTrackType; // track type - 0 - normal - 1 - kink - 2 -V0 3- double found
107 Int_t fLab2; // index of corresponding track (kink, V0, double)
108 Int_t fNShared; // number of shared points
109 AliExternalTrackParam fReference; // track parameters at the middle of the chamber
110 Float_t fKinkPoint[12]; //radius, of kink, dfi and dtheta
111 Int_t fKinkIndexes[3]; // kink indexes - minus = mother + daughter
112 Int_t fV0Indexes[3]; // kink indexes - minus = mother + daughter
113
114 ClassDef(AliTPCtrack,3) // Time Projection Chamber reconstructed tracks
115};
116
117#endif
118