]>
Commit | Line | Data |
---|---|---|
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 | ||
83d73500 | 32 | class AliESDtrack; |
006b5f7f | 33 | |
34 | //_____________________________________________________________________________ | |
8676d691 | 35 | class AliITStrackV2 : public AliKalmanTrack { |
006b5f7f | 36 | public: |
22b13da0 | 37 | AliITStrackV2(); |
67c3dcbe | 38 | AliITStrackV2(AliESDtrack& t,Bool_t c=kFALSE) throw (const Char_t *); |
006b5f7f | 39 | AliITStrackV2(const AliITStrackV2& t); |
880f41b9 | 40 | Int_t PropagateToVertex(Double_t d=0., Double_t x0=0.); |
a9a2d814 | 41 | Int_t Propagate(Double_t alpha, Double_t xr); |
15dd636f | 42 | virtual Int_t CorrectForMaterial(Double_t d, Double_t x0=21.82); |
a9a2d814 | 43 | Int_t PropagateTo(Double_t xr, Double_t d, Double_t x0=21.82); |
c7bafca9 | 44 | Double_t PropagateToDCA(AliKalmanTrack *p, Double_t d=0., Double_t x0=0.); |
7f6ddf58 | 45 | Int_t Update(const AliCluster* cl,Double_t chi2,UInt_t i); |
8676d691 | 46 | Int_t Improve(Double_t x0,Double_t xyz[3],Double_t ers[3]); |
7f6ddf58 | 47 | void SetdEdx(Double_t dedx) {fdEdx=dedx;} |
a9a2d814 | 48 | void SetSampledEdx(Float_t q, Int_t i); |
49 | void CookdEdx(Double_t low=0., Double_t up=0.51); | |
006b5f7f | 50 | void SetDetectorIndex(Int_t i) {SetLabel(i);} |
7f6ddf58 | 51 | void ResetCovariance(); |
52 | void ResetClusters() { SetChi2(0.); SetNumberOfClusters(0); } | |
15dd636f | 53 | void UpdateESDtrack(ULong_t flags) const; |
e43c066c | 54 | |
1aedd96e | 55 | AliESDtrack *GetESDtrack() const {return fESDtrack;} |
e43c066c | 56 | |
006b5f7f | 57 | Int_t GetDetectorIndex() const {return GetLabel();} |
58 | Double_t GetX() const {return fX;} | |
59 | Double_t GetAlpha()const {return fAlpha;} | |
7f6ddf58 | 60 | Double_t GetdEdx() const {return fdEdx;} |
83d73500 | 61 | Double_t GetPIDsignal() const {return GetdEdx();} |
006b5f7f | 62 | Double_t GetY() const {return fP0;} |
63 | Double_t GetZ() const {return fP1;} | |
64 | Double_t GetSnp() const {return fP2;} | |
65 | Double_t GetTgl() const {return fP3;} | |
67c3dcbe | 66 | Double_t GetC() const {return fP4;} |
5773defd | 67 | Double_t Get1Pt() const; |
a6a6f799 | 68 | Double_t GetD(Double_t x=0, Double_t y=0) const; |
791f9a2a | 69 | void GetDZ(Double_t xv, Double_t yv, Double_t zv, Float_t dz[2]) const; |
babd135a | 70 | Double_t GetZat(Double_t x=0) const; |
71 | ||
006b5f7f | 72 | Double_t GetSigmaY2() const {return fC00;} |
73 | Double_t GetSigmaZ2() const {return fC11;} | |
006b5f7f | 74 | Int_t Compare(const TObject *o) const; |
006b5f7f | 75 | void GetExternalParameters(Double_t& xr, Double_t x[5]) const ; |
76 | void GetExternalCovariance(Double_t cov[15]) const ; | |
006b5f7f | 77 | Int_t GetClusterIndex(Int_t i) const {return fIndex[i];} |
78 | Int_t GetGlobalXYZat(Double_t r,Double_t &x,Double_t &y,Double_t &z) const; | |
006b5f7f | 79 | Double_t GetPredictedChi2(const AliCluster *cluster) const; |
ef7253ac | 80 | Int_t Invariant() const; |
81 | ||
82 | void SetExtraCluster(Int_t i, Int_t idx) {fIndex[kMaxLayer+i]=idx;} | |
83 | Int_t GetExtraCluster(Int_t i) const {return fIndex[kMaxLayer+i];} | |
006b5f7f | 84 | |
235b705f | 85 | protected: |
c84a5e9e | 86 | void GetXYZ(Float_t r[3]) const; |
87 | ||
006b5f7f | 88 | Double_t fX; // X-coordinate of this track (reference plane) |
89 | Double_t fAlpha; // rotation angle | |
90 | ||
91 | Double_t fdEdx; // dE/dx | |
92 | ||
93 | Double_t fP0; // Y-coordinate of a track | |
94 | Double_t fP1; // Z-coordinate of a track | |
95 | Double_t fP2; // sine of the track momentum azimuthal angle | |
96 | Double_t fP3; // tangent of the track momentum dip angle | |
97 | Double_t fP4; // track curvature | |
98 | ||
99 | Double_t fC00; // covariance | |
100 | Double_t fC10, fC11; // matrix | |
101 | Double_t fC20, fC21, fC22; // of the | |
102 | Double_t fC30, fC31, fC32, fC33; // track | |
103 | Double_t fC40, fC41, fC42, fC43, fC44; // parameters | |
15dd636f | 104 | |
ef7253ac | 105 | Int_t fIndex[2*kMaxLayer]; // indices of associated clusters |
106 | Float_t fdEdxSample[4]; // array of dE/dx samples b.b. | |
15dd636f | 107 | |
ef7253ac | 108 | AliESDtrack *fESDtrack; //! pointer to the connected ESD track |
109 | ClassDef(AliITStrackV2,5) //ITS reconstructed track | |
006b5f7f | 110 | }; |
111 | ||
112 | inline | |
113 | void AliITStrackV2::GetExternalParameters(Double_t& xr, Double_t x[5]) const { | |
114 | //--------------------------------------------------------------------- | |
83d73500 | 115 | // This function return external ITS track representation |
006b5f7f | 116 | //--------------------------------------------------------------------- |
117 | xr=fX; | |
5773defd | 118 | x[0]=GetY(); x[1]=GetZ(); x[2]=GetSnp(); x[3]=GetTgl(); |
119 | x[4]=(TMath::Sign(1e-9,fP4) + fP4)*GetLocalConvConst(); | |
006b5f7f | 120 | } |
a9a2d814 | 121 | |
23efe5f1 | 122 | inline |
123 | void AliITStrackV2::SetSampledEdx(Float_t q, Int_t i) { | |
124 | //---------------------------------------------------------------------- | |
a9a2d814 | 125 | // This function stores dEdx sample corrected for the track segment length |
126 | // Origin: Boris Batyunya, JINR, Boris.Batiounia@cern.ch | |
23efe5f1 | 127 | //---------------------------------------------------------------------- |
a9a2d814 | 128 | if (i<0) return; |
129 | if (i>3) return; | |
23efe5f1 | 130 | Double_t s=GetSnp(), t=GetTgl(); |
23efe5f1 | 131 | q *= TMath::Sqrt((1-s*s)/(1+t*t)); |
132 | fdEdxSample[i]=q; | |
23efe5f1 | 133 | } |
c84a5e9e | 134 | |
135 | inline void AliITStrackV2::GetXYZ(Float_t r[3]) const { | |
136 | //--------------------------------------------------------------------- | |
137 | // Returns the position of the track in the global coord. system | |
138 | //--------------------------------------------------------------------- | |
139 | Double_t cs=TMath::Cos(fAlpha), sn=TMath::Sin(fAlpha); | |
140 | r[0]=fX*cs - fP0*sn; r[1]=fX*sn + fP0*cs; r[2]=fP1; | |
141 | } | |
142 | ||
006b5f7f | 143 | #endif |
144 | ||
145 |