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