]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITStrackV2.h
Updated Linkdef and libTOF.pkg
[u/mrichter/AliRoot.git] / ITS / AliITStrackV2.h
CommitLineData
006b5f7f 1#ifndef ALIITSTRACKV2_H
2#define ALIITSTRACKV2_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//-------------------------------------------------------------------------
7// ITS Track Class
8//
9// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
a9a2d814 10// dEdx analysis by: Boris Batyunya, JINR, Boris.Batiounia@cern.ch
006b5f7f 11//-------------------------------------------------------------------------
12
13
14/*****************************************************************************
15 * December 18, 2000 *
16 * Internal view of the ITS track parametrisation as well as the order of *
17 * track parameters are subject for possible changes ! *
18 * Use GetExternalParameters() and GetExternalCovariance() to access ITS *
19 * track information regardless of its internal representation. *
20 * This formation is now fixed in the following way: *
21 * external param0: local Y-coordinate of a track (cm) *
22 * external param1: local Z-coordinate of a track (cm) *
23 * external param2: local sine of the track momentum azimuthal angle *
24 * external param3: tangent of the track momentum dip angle *
25 * external param4: 1/pt (1/(GeV/c)) *
26 *****************************************************************************/
27
28#include <AliKalmanTrack.h>
29
30#include "AliITSrecoV2.h"
31
32class AliTPCtrack;
33
34//_____________________________________________________________________________
35class AliITStrackV2 : public AliKalmanTrack {
36public:
37 AliITStrackV2():AliKalmanTrack(){}
38 AliITStrackV2(const AliTPCtrack& t) throw (const Char_t *);
39 AliITStrackV2(const AliITStrackV2& t);
a9a2d814 40 Int_t PropagateToVertex(Double_t d=1.2e-3*3., Double_t x0=36.66);
41 Int_t Propagate(Double_t alpha, Double_t xr);
42 Int_t CorrectForMaterial(Double_t d, Double_t x0=21.82);
43 Int_t PropagateTo(Double_t xr, Double_t d, Double_t x0=21.82);
7f6ddf58 44 Int_t Update(const AliCluster* cl,Double_t chi2,UInt_t i);
45 Int_t Improve(Double_t x0,Double_t yv,Double_t zv);
46 void SetdEdx(Double_t dedx) {fdEdx=dedx;}
a9a2d814 47 void SetSampledEdx(Float_t q, Int_t i);
48 void CookdEdx(Double_t low=0., Double_t up=0.51);
006b5f7f 49 void SetDetectorIndex(Int_t i) {SetLabel(i);}
7f6ddf58 50 void ResetCovariance();
51 void ResetClusters() { SetChi2(0.); SetNumberOfClusters(0); }
006b5f7f 52
53 void *operator new(size_t s,void *p) { return p; }
54 void *operator new(size_t s) { return ::operator new(s); }
55
56 Int_t GetDetectorIndex() const {return GetLabel();}
57 Double_t GetX() const {return fX;}
58 Double_t GetAlpha()const {return fAlpha;}
7f6ddf58 59 Double_t GetdEdx() const {return fdEdx;}
006b5f7f 60 Double_t GetY() const {return fP0;}
61 Double_t GetZ() const {return fP1;}
62 Double_t GetSnp() const {return fP2;}
63 Double_t GetTgl() const {return fP3;}
9b280d80 64 Double_t Get1Pt() const {return fP4*GetConvConst();}
006b5f7f 65 Double_t GetD() const;
006b5f7f 66 Double_t GetSigmaY2() const {return fC00;}
67 Double_t GetSigmaZ2() const {return fC11;}
006b5f7f 68 Int_t Compare(const TObject *o) const;
006b5f7f 69 void GetExternalParameters(Double_t& xr, Double_t x[5]) const ;
70 void GetExternalCovariance(Double_t cov[15]) const ;
006b5f7f 71 Int_t GetClusterIndex(Int_t i) const {return fIndex[i];}
72 Int_t GetGlobalXYZat(Double_t r,Double_t &x,Double_t &y,Double_t &z) const;
006b5f7f 73 Double_t GetPredictedChi2(const AliCluster *cluster) const;
7f6ddf58 74 Double_t
75 GetPredictedChi2(const AliCluster *cluster, Double_t *m, Double_t x0) const;
006b5f7f 76 Int_t Invariant() const;
006b5f7f 77
78private:
79 Double_t fX; // X-coordinate of this track (reference plane)
80 Double_t fAlpha; // rotation angle
81
82 Double_t fdEdx; // dE/dx
83
84 Double_t fP0; // Y-coordinate of a track
85 Double_t fP1; // Z-coordinate of a track
86 Double_t fP2; // sine of the track momentum azimuthal angle
87 Double_t fP3; // tangent of the track momentum dip angle
88 Double_t fP4; // track curvature
89
90 Double_t fC00; // covariance
91 Double_t fC10, fC11; // matrix
92 Double_t fC20, fC21, fC22; // of the
93 Double_t fC30, fC31, fC32, fC33; // track
94 Double_t fC40, fC41, fC42, fC43, fC44; // parameters
95
96 UInt_t fIndex[kMaxLayer]; // indices of associated clusters
97
a9a2d814 98 Float_t fdEdxSample[4]; // array of dE/dx samples b.b.
23efe5f1 99
006b5f7f 100 ClassDef(AliITStrackV2,1) //ITS reconstructed track
101};
102
103inline
104void AliITStrackV2::GetExternalParameters(Double_t& xr, Double_t x[5]) const {
105 //---------------------------------------------------------------------
106 // This function return external TPC track representation
107 //---------------------------------------------------------------------
108 xr=fX;
109 x[0]=GetY(); x[1]=GetZ(); x[2]=GetSnp(); x[3]=GetTgl(); x[4]=Get1Pt();
110}
a9a2d814 111
23efe5f1 112inline
113void AliITStrackV2::SetSampledEdx(Float_t q, Int_t i) {
114 //----------------------------------------------------------------------
a9a2d814 115 // This function stores dEdx sample corrected for the track segment length
116 // Origin: Boris Batyunya, JINR, Boris.Batiounia@cern.ch
23efe5f1 117 //----------------------------------------------------------------------
a9a2d814 118 if (i<0) return;
119 if (i>3) return;
23efe5f1 120 Double_t s=GetSnp(), t=GetTgl();
23efe5f1 121 q *= TMath::Sqrt((1-s*s)/(1+t*t));
122 fdEdxSample[i]=q;
23efe5f1 123}
006b5f7f 124#endif
125
126