Bug fix in ITS standalone tracking when reusing all clusters
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Jan 2010 14:17:00 +0000 (14:17 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Jan 2010 14:17:00 +0000 (14:17 +0000)
ITS/AliITStrackerSA.cxx

index 961b76f..1e693dc 100644 (file)
@@ -365,6 +365,18 @@ Int_t AliITStrackerSA::FindTracks(AliESDEvent* event, Bool_t useAllClusters){
        }
       }
     }
+  }else{
+    while (nentr--) {
+      AliESDtrack *track=event->GetTrack(nentr);
+      if ((track->GetStatus()&AliESDtrack::kITSin) == AliESDtrack::kITSin){
+       Int_t idx[12];
+       Int_t ncl = track->GetITSclusters(idx);
+       for(Int_t k=0;k<ncl;k++){
+         AliITSRecPoint* cll = (AliITSRecPoint*)GetCluster(idx[k]);
+         cll->ResetBit(kSAflag);
+       }
+      }
+    }
   }
   //Get primary vertex
   Double_t primaryVertex[3];