In UpdateTrack(): fixing a small bug in the tracking algorithms that might cause
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Jul 2007 12:27:17 +0000 (12:27 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 Jul 2007 12:27:17 +0000 (12:27 +0000)
reconstruction crash
(Philippe P.)

MUON/AliMUONTrackReconstructor.cxx
MUON/AliMUONTrackReconstructorK.cxx

index 32002e0..e7198f0 100644 (file)
@@ -600,6 +600,10 @@ void AliMUONTrackReconstructor::UpdateTrack(AliMUONTrack &track, AliMUONTrackPar
   Double_t localChi2 = deltaX*deltaX / hit->GetNonBendingReso2() +
                       deltaY*deltaY / hit->GetBendingReso2();
   
+  // Flag hit as being not removable
+  trackParamAtHit.SetRemovable(kFALSE);
+  trackParamAtHit.SetLocalChi2(0.); // --> Local chi2 not used
+  
   // Update the chi2 of the new track
   track.SetFitFMin(track.GetFitFMin() + localChi2);
   
index 5cf67eb..7bde1b5 100644 (file)
@@ -709,6 +709,10 @@ void AliMUONTrackReconstructorK::UpdateTrack(AliMUONTrack &track, AliMUONTrackPa
   /// Add 1 hit to the track candidate
   /// Update chi2 of the track 
   
+  // Flag hit as being not removable
+  trackParamAtHit.SetRemovable(kFALSE);
+  trackParamAtHit.SetLocalChi2(0.); // --> Local chi2 not used
+  
   // Update the track chi2 into TrackParamAtHit
   trackParamAtHit.SetTrackChi2(track.GetFitFMin() + addChi2);