]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/UPGRADE/AliITSUTrackerGlo.cxx
1) fix in the AliITSUTrackerGlo for track hypothesis w/o winner
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSUTrackerGlo.cxx
index 719493c12ce79bb983b020cc7ecbf3ece11260d6..bc6aa5770b68abe8666dcd0471683c08ec185f6e 100644 (file)
@@ -818,8 +818,7 @@ void AliITSUTrackerGlo::FinalizeHypotheses()
   int nh = fHypStore.GetEntriesFast();
   for (int ih=0;ih<nh;ih++) {
     AliITSUTrackHyp* hyp = (AliITSUTrackHyp*) fHypStore.UncheckedAt(ih); 
-    if (!hyp) continue;
-    hyp->DefineWinner();  // TODO
+    if (!hyp || !hyp->DefineWinner()) continue; // TODO
     CookMCLabel(hyp);
     UpdateESDTrack(hyp,AliESDtrack::kITSin);
   }