]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct treatment of clusters with multiple labels (T.Kuhr)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Apr 2003 14:12:56 +0000 (14:12 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Apr 2003 14:12:56 +0000 (14:12 +0000)
STEER/AliTracker.cxx

index fe08e72cb5b1d09bbb04ca6c96123e5c67ae8de0..61a197bb8819df417d04384769da585bfeb1d338 100644 (file)
@@ -67,9 +67,11 @@ void AliTracker::CookLabel(AliKalmanTrack *t, Float_t wrong) const {
   Int_t max=0;
   for (i=0; i<noc; i++) if (mx[i]>max) {max=mx[i]; lab=lb[i];}
     
+  max=0;
   for (i=0; i<noc; i++) {
     AliCluster *c=clusters[i];
-    if (TMath::Abs(c->GetLabel(1)) == lab ||
+    if (TMath::Abs(c->GetLabel(0)) == lab ||
+        TMath::Abs(c->GetLabel(1)) == lab ||
         TMath::Abs(c->GetLabel(2)) == lab ) max++;
   }