]>
Commit | Line | Data |
---|---|---|
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 | // dEdx analysis by: Boris Batyunya, JINR, Boris.Batiounia@cern.ch | |
11 | //------------------------------------------------------------------------- | |
12 | ||
13 | #include <AliKalmanTrack.h> | |
14 | #include "AliITSrecoV2.h" | |
15 | ||
16 | class AliESDtrack; | |
17 | ||
18 | //_____________________________________________________________________________ | |
19 | class AliITStrackV2 : public AliKalmanTrack { | |
20 | public: | |
21 | AliITStrackV2(); | |
22 | AliITStrackV2(AliESDtrack& t,Bool_t c=kFALSE) throw (const Char_t *); | |
23 | AliITStrackV2(const AliITStrackV2& t); | |
24 | ||
25 | Bool_t CorrectForMaterial(Double_t d, Double_t x0=21.82) { | |
26 | return AliExternalTrackParam::CorrectForMaterial(d,x0,GetMass()); | |
27 | } | |
28 | Bool_t PropagateTo(Double_t xr, Double_t d, Double_t x0=21.82); | |
29 | Double_t GetPredictedChi2(const AliCluster *cluster) const; | |
30 | Bool_t Update(const AliCluster *cl, Double_t chi2, Int_t i); | |
31 | ||
32 | Bool_t | |
33 | PropagateToVertex(const AliESDVertex *v,Double_t d=0.,Double_t x0=0.); | |
34 | Bool_t Propagate(Double_t alpha, Double_t xr); | |
35 | Bool_t Improve(Double_t x0,Double_t xyz[3],Double_t ers[3]); | |
36 | ||
37 | void SetdEdx(Double_t dedx) {fdEdx=dedx;} | |
38 | void SetSampledEdx(Float_t q, Int_t i); | |
39 | void CookdEdx(Double_t low=0., Double_t up=0.51); | |
40 | void SetDetectorIndex(Int_t i) {SetLabel(i);} | |
41 | void ResetClusters() { SetChi2(0.); SetNumberOfClusters(0); } | |
42 | void UpdateESDtrack(ULong_t flags) const; | |
43 | ||
44 | AliESDtrack *GetESDtrack() const {return fESDtrack;} | |
45 | ||
46 | Int_t GetDetectorIndex() const {return GetLabel();} | |
47 | Double_t GetdEdx() const {return fdEdx;} | |
48 | Double_t GetPIDsignal() const {return GetdEdx();} | |
49 | Double_t GetC() const {return AliExternalTrackParam::GetC(GetBz());} | |
50 | Double_t GetD(Double_t x, Double_t y) const { | |
51 | return AliExternalTrackParam::GetD(x,y,GetBz()); | |
52 | } | |
53 | void GetDZ(Double_t xv, Double_t yv, Double_t zv, Float_t dz[2]) const { | |
54 | return AliExternalTrackParam::GetDZ(xv,yv,zv,GetBz(),dz); | |
55 | } | |
56 | ||
57 | Bool_t GetGlobalXYZat(Double_t r,Double_t &x,Double_t &y,Double_t &z) const; | |
58 | ||
59 | Int_t Compare(const TObject *o) const; | |
60 | Int_t GetClusterIndex(Int_t i) const {return fIndex[i];} | |
61 | Bool_t Invariant() const; | |
62 | ||
63 | void SetExtraCluster(Int_t i, Int_t idx) {fIndex[kMaxLayer+i]=idx;} | |
64 | Int_t GetExtraCluster(Int_t i) const {return fIndex[kMaxLayer+i];} | |
65 | ||
66 | protected: | |
67 | Double_t GetBz() const ; | |
68 | Double_t fdEdx; // dE/dx | |
69 | Float_t fdEdxSample[4]; // array of dE/dx samples b.b. | |
70 | ||
71 | Int_t fIndex[2*kMaxLayer]; // indices of associated clusters | |
72 | ||
73 | AliESDtrack *fESDtrack; //! pointer to the connected ESD track | |
74 | ||
75 | private: | |
76 | AliITStrackV2 &operator=(const AliITStrackV2 &tr); | |
77 | ClassDef(AliITStrackV2,6) //ITS reconstructed track | |
78 | }; | |
79 | ||
80 | inline | |
81 | void AliITStrackV2::SetSampledEdx(Float_t q, Int_t i) { | |
82 | //---------------------------------------------------------------------- | |
83 | // This function stores dEdx sample corrected for the track segment length | |
84 | // Origin: Boris Batyunya, JINR, Boris.Batiounia@cern.ch | |
85 | //---------------------------------------------------------------------- | |
86 | if (i<0) return; | |
87 | if (i>3) return; | |
88 | Double_t s=GetSnp(), t=GetTgl(); | |
89 | q *= TMath::Sqrt((1-s*s)/(1+t*t)); | |
90 | fdEdxSample[i]=q; | |
91 | } | |
92 | ||
93 | #endif | |
94 | ||
95 |