]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCtracker.cxx
fix to last commit
[u/mrichter/AliRoot.git] / TPC / AliTPCtracker.cxx
index 5c1219ac20a97ee50fbb548048461c626c3cdc02..b4ff375aa0677f98039fd251649cde5a2393abf4 100644 (file)
@@ -149,8 +149,7 @@ Int_t AliTPCtracker::LoadClusters(TTree *cTree) {
   }
 
   AliClusters carray, *addr=&carray;
-  carray.SetClass("AliTPCcluster");
-  carray.SetArray(0);
+  addr = new AliClusters("AliTPCcluster");
   branch->SetAddress(&addr);
 
   Int_t nentr=(Int_t)cTree->GetEntries();
@@ -401,8 +400,8 @@ Int_t AliTPCtracker::FollowBackProlongation
        const AliTPCRow &krow=fSectors[s][i];
        if (accepted>27)
        if (krow) {
-          for (Int_t i=krow.Find(y-road); i<krow; i++) {
-           AliTPCcluster *c=(AliTPCcluster*)(krow[i]);
+          for (Int_t icl=krow.Find(y-road); icl<krow; icl++) {
+           AliTPCcluster *c=(AliTPCcluster*)(krow[icl]);
            if (c->GetY() > y+road) break;
            if (c->IsUsed()) continue;
         if ((c->GetZ()-z)*(c->GetZ()-z)>16.*(seed.GetSigmaZ2()+sz2)) continue;
@@ -410,7 +409,7 @@ Int_t AliTPCtracker::FollowBackProlongation
            if (chi2 > maxchi2) continue;
            maxchi2=chi2;
            cl=c;
-            index=krow.GetIndex(i);
+            index=krow.GetIndex(icl);
           }
        }
     }