]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix in the calculation of cluster and sharing bitmap (Adam)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Feb 2009 17:39:28 +0000 (17:39 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Feb 2009 17:39:28 +0000 (17:39 +0000)
TPC/AliTPCtrackerMI.cxx

index a244215a5786d6b88ec5f29f686992c0adb88801..11ab62d2739ed7d17d9423f1c0d11d0b93989659 100644 (file)
@@ -6961,11 +6961,14 @@ void AliTPCtrackerMI::MakeBitmaps(AliTPCseed *t)
   Int_t firstpoint = 0;
   Int_t lastpoint = 159;
   AliTPCTrackerPoint *point;
+  AliTPCclusterMI    *cluster;
   
   for (int iter=firstpoint; iter<lastpoint; iter++) {
-    point = t->GetTrackPoint(iter);
-    if (point) {
+    // Change to cluster pointers to see if we have a cluster at given padrow
+    cluster = t->GetClusterPointer(iter);
+    if (cluster) {
       t->SetClusterMapBit(iter, kTRUE);
+      point = t->GetTrackPoint(iter);
       if (point->IsShared())
        t->SetSharedMapBit(iter,kTRUE);
       else