]>
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 | |
10 | //------------------------------------------------------------------------- | |
11 | ||
12 | ||
13 | /***************************************************************************** | |
14 | * December 18, 2000 * | |
15 | * Internal view of the ITS track parametrisation as well as the order of * | |
16 | * track parameters are subject for possible changes ! * | |
17 | * Use GetExternalParameters() and GetExternalCovariance() to access ITS * | |
18 | * track information regardless of its internal representation. * | |
19 | * This formation is now fixed in the following way: * | |
20 | * external param0: local Y-coordinate of a track (cm) * | |
21 | * external param1: local Z-coordinate of a track (cm) * | |
22 | * external param2: local sine of the track momentum azimuthal angle * | |
23 | * external param3: tangent of the track momentum dip angle * | |
24 | * external param4: 1/pt (1/(GeV/c)) * | |
25 | *****************************************************************************/ | |
26 | ||
27 | #include <AliKalmanTrack.h> | |
28 | ||
29 | #include "AliITSrecoV2.h" | |
30 | ||
31 | class AliTPCtrack; | |
32 | ||
33 | //_____________________________________________________________________________ | |
34 | class AliITStrackV2 : public AliKalmanTrack { | |
35 | public: | |
36 | AliITStrackV2():AliKalmanTrack(){} | |
37 | AliITStrackV2(const AliTPCtrack& t) throw (const Char_t *); | |
38 | AliITStrackV2(const AliITStrackV2& t); | |
39 | Int_t | |
40 | PropagateToVertex(Double_t x0=36.66,Double_t rho=1.2e-3,Double_t pm=0.139); | |
41 | void SetdEdx(Float_t dedx) {fdEdx=dedx;} | |
42 | void SetDetectorIndex(Int_t i) {SetLabel(i);} | |
43 | ||
44 | void *operator new(size_t s,void *p) { return p; } | |
45 | void *operator new(size_t s) { return ::operator new(s); } | |
46 | ||
47 | Int_t GetDetectorIndex() const {return GetLabel();} | |
48 | Double_t GetX() const {return fX;} | |
49 | Double_t GetAlpha()const {return fAlpha;} | |
50 | Float_t GetdEdx() const {return fdEdx;} | |
006b5f7f | 51 | Double_t GetY() const {return fP0;} |
52 | Double_t GetZ() const {return fP1;} | |
53 | Double_t GetSnp() const {return fP2;} | |
54 | Double_t GetTgl() const {return fP3;} | |
9b280d80 | 55 | Double_t Get1Pt() const {return fP4*GetConvConst();} |
006b5f7f | 56 | Double_t GetD() const; |
006b5f7f | 57 | Double_t GetSigmaY2() const {return fC00;} |
58 | Double_t GetSigmaZ2() const {return fC11;} | |
59 | ||
60 | Int_t Compare(const TObject *o) const; | |
61 | ||
62 | void GetExternalParameters(Double_t& xr, Double_t x[5]) const ; | |
63 | void GetExternalCovariance(Double_t cov[15]) const ; | |
64 | ||
65 | Int_t GetClusterIndex(Int_t i) const {return fIndex[i];} | |
66 | Int_t GetGlobalXYZat(Double_t r,Double_t &x,Double_t &y,Double_t &z) const; | |
67 | ||
68 | Int_t Propagate(Double_t alpha, | |
69 | Double_t xr,Double_t x0,Double_t rho,Double_t pm=0.139); | |
70 | ||
71 | Double_t GetPredictedChi2(const AliCluster *cluster) const; | |
72 | Int_t Update(const AliCluster* cl,Double_t chi2,UInt_t i); | |
73 | ||
74 | Double_t GetPredictedChi2(const AliCluster *cluster, Double_t *m, | |
75 | Double_t x0, Double_t pm=0.139) const; | |
76 | Int_t Update(const Double_t *m, Double_t chi2, UInt_t i); | |
77 | Int_t Improve(Double_t x0,Double_t yv,Double_t zv); | |
14825d5a | 78 | void ResetCovariance(); |
79 | void ResetClusters() { SetChi2(0.); SetNumberOfClusters(0); } | |
006b5f7f | 80 | |
81 | Int_t Invariant() const; | |
82 | ||
83 | //protected: | |
84 | Int_t | |
85 | PropagateTo(Double_t xr,Double_t x0=21.82,Double_t rho=2.33,Double_t pm=0.139); | |
86 | ||
87 | private: | |
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 | |
104 | ||
105 | UInt_t fIndex[kMaxLayer]; // indices of associated clusters | |
106 | ||
107 | ClassDef(AliITStrackV2,1) //ITS reconstructed track | |
108 | }; | |
109 | ||
110 | inline | |
111 | void AliITStrackV2::GetExternalParameters(Double_t& xr, Double_t x[5]) const { | |
112 | //--------------------------------------------------------------------- | |
113 | // This function return external TPC track representation | |
114 | //--------------------------------------------------------------------- | |
115 | xr=fX; | |
116 | x[0]=GetY(); x[1]=GetZ(); x[2]=GetSnp(); x[3]=GetTgl(); x[4]=Get1Pt(); | |
117 | } | |
118 | ||
119 | #endif | |
120 | ||
121 |