]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
use the minimum error point on the tracklet (x ref) also for inward track fit
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Jan 2009 14:14:29 +0000 (14:14 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Jan 2009 14:14:29 +0000 (14:14 +0000)
TRD/AliTRDtrackerV1.cxx

index c24a1f3aa441bc8416a269ddaa098465df00d886..d33d9d10ee1b75cfd0686ef4eb98eff7f69d1109 100644 (file)
@@ -513,7 +513,7 @@ Int_t AliTRDtrackerV1::FollowProlongation(AliTRDtrackV1 &t)
     if(!tracklet) continue;
     if(!tracklet->IsOK()) AliWarning("tracklet not OK");
     
-    Double_t x  = tracklet->GetX0();
+    Double_t x  = tracklet->GetXref();//GetX0();
     // reject tracklets which are not considered for inward refit
     if(x > t.GetX()+fgkMaxStep) continue;
 
@@ -1505,9 +1505,7 @@ Int_t AliTRDtrackerV1::PropagateToX(AliTRDtrackV1 &t, Double_t xToGo, Double_t m
     if(AliTracker::MeanMaterialBudget(xyz0, xyz1, param)<=0.) return 0;
 
     // Propagate the track to the X-position after the next step
-    if (!t.PropagateTo(x,param[1],param[0]*param[4])) {
-      return 0;
-    }
+    if (!t.PropagateTo(x, param[1], param[0]*param[4])) return 0;
 
     // Rotate the track if necessary
     AdjustSector(&t);