]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITStrackV2.h
fading out dependent helper (AliPWG0depHelper)
[u/mrichter/AliRoot.git] / ITS / AliITStrackV2.h
index bf7c174105f9415ce6416d2ac8b393f853a96e51..b5b3bc59eded44b8c3e4d12772b6ee09f3e92207 100644 (file)
@@ -11,7 +11,8 @@
 //-------------------------------------------------------------------------
 
 #include <AliKalmanTrack.h>
-#include "AliITSrecoV2.h"
+#include "AliITSRecoParam.h"
+#include "AliITSgeomTGeo.h"
 
 class AliESDtrack;
 
@@ -21,17 +22,27 @@ public:
   AliITStrackV2();
   AliITStrackV2(AliESDtrack& t,Bool_t c=kFALSE) throw (const Char_t *);
   AliITStrackV2(const AliITStrackV2& t);
+  ~AliITStrackV2(){fESDtrack=0;}
 
-  Bool_t CorrectForMaterial(Double_t d, Double_t x0=21.82) {
+  Bool_t CorrectForMeanMaterial(Double_t xOverX0, Double_t xTimesRho,
+                               Bool_t anglecorr=kFALSE) {
+    return AliExternalTrackParam::CorrectForMeanMaterial(xOverX0,xTimesRho,GetMass(),anglecorr);
+  }
+  Bool_t CorrectForMaterial(Double_t d, Double_t x0=AliITSRecoParam::GetX0Air()) {
+    // deprecated: use CorrectForMeanMaterial instead
     return AliExternalTrackParam::CorrectForMaterial(d,x0,GetMass());
   }
-  Bool_t PropagateTo(Double_t xr, Double_t d, Double_t x0=21.82);
+  Bool_t PropagateTo(Double_t xr, Double_t d, Double_t x0=AliITSRecoParam::GetX0Air());
+  Bool_t PropagateToTGeo(Double_t xToGo, Int_t nstep, Double_t &xOverX0, Double_t &xTimesRho);
+  Bool_t PropagateToTGeo(Double_t xToGo, Int_t nstep=1) {
+    Double_t dummy1,dummy2; return PropagateToTGeo(xToGo,nstep,dummy1,dummy2);
+  }
   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 PropagateToVertex(const AliESDVertex *v,Double_t d=0.,Double_t x0=0.);
   Bool_t Propagate(Double_t alpha, Double_t xr);
+  Bool_t MeanBudgetToPrimVertex(Double_t xyz[3], Double_t step, Double_t &d) const;
   Bool_t Improve(Double_t x0,Double_t xyz[3],Double_t ers[3]);
 
   void SetdEdx(Double_t dedx) {fdEdx=dedx;}
@@ -55,15 +66,16 @@ public:
     return AliExternalTrackParam::GetDZ(xv,yv,zv,GetBz(),dz);
   }
 
-  Bool_t GetGlobalXYZat(Double_t r,Double_t &x,Double_t &y,Double_t &z) const;
+  Bool_t GetGlobalXYZat(Double_t xloc,Double_t &x,Double_t &y,Double_t &z) const;
   Bool_t GetPhiZat(Double_t r,Double_t &phi,Double_t &z) const;
+  Bool_t GetLocalXat(Double_t r,Double_t &xloc) const;
 
   Int_t Compare(const TObject *o) const;
   Int_t GetClusterIndex(Int_t i) const {return fIndex[i];}
   Bool_t Invariant() const;
 
-  void  SetExtraCluster(Int_t i, Int_t idx) {fIndex[kMaxLayer+i]=idx;}
-  Int_t GetExtraCluster(Int_t i) const {return fIndex[kMaxLayer+i];}
+  void  SetExtraCluster(Int_t i, Int_t idx) {fIndex[AliITSgeomTGeo::kNLayers+i]=idx;}
+  Int_t GetExtraCluster(Int_t i) const {return fIndex[AliITSgeomTGeo::kNLayers+i];}
 
 protected:
   Double_t GetBz() const ;
@@ -72,7 +84,7 @@ protected:
   static const Int_t fgkWARN; //! used for debugging purposes
   Float_t fdEdxSample[4];    // array of dE/dx samples b.b.
 
-  Int_t fIndex[2*kMaxLayer]; // indices of associated clusters 
+  Int_t fIndex[2*AliITSgeomTGeo::kNLayers]; // indices of associated clusters 
 
   AliESDtrack *fESDtrack;    //! pointer to the connected ESD track