X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITStrackV2.h;h=113d437a3562344278a307cfe354b79309132813;hb=da4d7f1738cb9d54a63dba886718a8482b080072;hp=a625fa7d0967ca8560a6ac530de8cf2e45965f16;hpb=a6a6f7998b003c08bf53adb494494136e91672cb;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITStrackV2.h b/ITS/AliITStrackV2.h index a625fa7d096..113d437a356 100644 --- a/ITS/AliITStrackV2.h +++ b/ITS/AliITStrackV2.h @@ -10,105 +10,74 @@ // dEdx analysis by: Boris Batyunya, JINR, Boris.Batiounia@cern.ch //------------------------------------------------------------------------- - -/***************************************************************************** - * December 18, 2000 * - * Internal view of the ITS track parametrisation as well as the order of * - * track parameters are subject for possible changes ! * - * Use GetExternalParameters() and GetExternalCovariance() to access ITS * - * track information regardless of its internal representation. * - * This formation is now fixed in the following way: * - * external param0: local Y-coordinate of a track (cm) * - * external param1: local Z-coordinate of a track (cm) * - * external param2: local sine of the track momentum azimuthal angle * - * external param3: tangent of the track momentum dip angle * - * external param4: 1/pt (1/(GeV/c)) * - *****************************************************************************/ - #include - #include "AliITSrecoV2.h" -class AliTPCtrack; +class AliESDtrack; //_____________________________________________________________________________ -class AliITStrackV2 : public AliKalmanTrack { +class AliITStrackV2 : public AliKalmanTrack { public: - AliITStrackV2():AliKalmanTrack(){} - AliITStrackV2(const AliTPCtrack& t) throw (const Char_t *); + AliITStrackV2(); + AliITStrackV2(AliESDtrack& t,Bool_t c=kFALSE) throw (const Char_t *); AliITStrackV2(const AliITStrackV2& t); - Int_t PropagateToVertex(Double_t d=1.2e-3*3., Double_t x0=36.66); - Int_t Propagate(Double_t alpha, Double_t xr); - Int_t CorrectForMaterial(Double_t d, Double_t x0=21.82); - Int_t PropagateTo(Double_t xr, Double_t d, Double_t x0=21.82); - Int_t Update(const AliCluster* cl,Double_t chi2,UInt_t i); - Int_t Improve(Double_t x0,Double_t yv,Double_t zv); + + Bool_t CorrectForMaterial(Double_t d, Double_t x0=21.82) { + return AliExternalTrackParam::CorrectForMaterial(d,x0,GetMass()); + } + Bool_t PropagateTo(Double_t xr, Double_t d, Double_t x0=21.82); + Double_t GetPredictedChi2(const AliCluster *cluster) const; + Bool_t Update(const AliCluster *cl, Double_t chi2, Int_t i); + + Bool_t + PropagateToVertex(const AliESDVertex *v,Double_t d=0.,Double_t x0=0.); + Bool_t Propagate(Double_t alpha, Double_t xr); + Bool_t Improve(Double_t x0,Double_t xyz[3],Double_t ers[3]); + void SetdEdx(Double_t dedx) {fdEdx=dedx;} void SetSampledEdx(Float_t q, Int_t i); + Float_t GetSampledEdx(Int_t i) const {return fdEdxSample[i];} void CookdEdx(Double_t low=0., Double_t up=0.51); void SetDetectorIndex(Int_t i) {SetLabel(i);} - void ResetCovariance(); void ResetClusters() { SetChi2(0.); SetNumberOfClusters(0); } + void UpdateESDtrack(ULong_t flags) const; - void *operator new(size_t s,void *p) { return p; } - void *operator new(size_t s) { return ::operator new(s); } - + AliESDtrack *GetESDtrack() const {return fESDtrack;} + Int_t GetDetectorIndex() const {return GetLabel();} - Double_t GetX() const {return fX;} - Double_t GetAlpha()const {return fAlpha;} Double_t GetdEdx() const {return fdEdx;} - Double_t GetY() const {return fP0;} - Double_t GetZ() const {return fP1;} - Double_t GetSnp() const {return fP2;} - Double_t GetTgl() const {return fP3;} - Double_t Get1Pt() const {return fP4*GetConvConst();} - Double_t GetD(Double_t x=0, Double_t y=0) const; - Double_t GetSigmaY2() const {return fC00;} - Double_t GetSigmaZ2() const {return fC11;} + Double_t GetPIDsignal() const {return GetdEdx();} + Double_t GetC() const {return AliExternalTrackParam::GetC(GetBz());} + Double_t GetD(Double_t x, Double_t y) const { + return AliExternalTrackParam::GetD(x,y,GetBz()); + } + void GetDZ(Double_t xv, Double_t yv, Double_t zv, Float_t dz[2]) const { + return AliExternalTrackParam::GetDZ(xv,yv,zv,GetBz(),dz); + } + + Bool_t GetGlobalXYZat(Double_t r,Double_t &x,Double_t &y,Double_t &z) const; + Int_t Compare(const TObject *o) const; - void GetExternalParameters(Double_t& xr, Double_t x[5]) const ; - void GetExternalCovariance(Double_t cov[15]) const ; Int_t GetClusterIndex(Int_t i) const {return fIndex[i];} - Int_t GetGlobalXYZat(Double_t r,Double_t &x,Double_t &y,Double_t &z) const; - Double_t GetPredictedChi2(const AliCluster *cluster) const; - Double_t - GetPredictedChi2(const AliCluster *cluster, Double_t *m, Double_t x0) const; - Int_t Invariant() const; - -private: - Double_t fX; // X-coordinate of this track (reference plane) - Double_t fAlpha; // rotation angle - - Double_t fdEdx; // dE/dx + Bool_t Invariant() const; - Double_t fP0; // Y-coordinate of a track - Double_t fP1; // Z-coordinate of a track - Double_t fP2; // sine of the track momentum azimuthal angle - Double_t fP3; // tangent of the track momentum dip angle - Double_t fP4; // track curvature + void SetExtraCluster(Int_t i, Int_t idx) {fIndex[kMaxLayer+i]=idx;} + Int_t GetExtraCluster(Int_t i) const {return fIndex[kMaxLayer+i];} - Double_t fC00; // covariance - Double_t fC10, fC11; // matrix - Double_t fC20, fC21, fC22; // of the - Double_t fC30, fC31, fC32, fC33; // track - Double_t fC40, fC41, fC42, fC43, fC44; // parameters +protected: + Double_t GetBz() const ; + Double_t fdEdx; // dE/dx + Float_t fdEdxSample[4]; // array of dE/dx samples b.b. - UInt_t fIndex[kMaxLayer]; // indices of associated clusters + Int_t fIndex[2*kMaxLayer]; // indices of associated clusters - Float_t fdEdxSample[4]; // array of dE/dx samples b.b. + AliESDtrack *fESDtrack; //! pointer to the connected ESD track - ClassDef(AliITStrackV2,1) //ITS reconstructed track +private: + AliITStrackV2 &operator=(const AliITStrackV2 &tr); + ClassDef(AliITStrackV2,6) //ITS reconstructed track }; -inline -void AliITStrackV2::GetExternalParameters(Double_t& xr, Double_t x[5]) const { - //--------------------------------------------------------------------- - // This function return external TPC track representation - //--------------------------------------------------------------------- - xr=fX; - x[0]=GetY(); x[1]=GetZ(); x[2]=GetSnp(); x[3]=GetTgl(); x[4]=Get1Pt(); -} - inline void AliITStrackV2::SetSampledEdx(Float_t q, Int_t i) { //---------------------------------------------------------------------- @@ -121,6 +90,7 @@ void AliITStrackV2::SetSampledEdx(Float_t q, Int_t i) { q *= TMath::Sqrt((1-s*s)/(1+t*t)); fdEdxSample[i]=q; } + #endif