Fix: temporary array expansion
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Jun 2010 16:36:50 +0000 (16:36 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Jun 2010 16:36:50 +0000 (16:36 +0000)
ITS/AliITSMultReconstructor.cxx

index a7c7a26..4c7d5f8 100644 (file)
@@ -694,7 +694,7 @@ void AliITSMultReconstructor::LoadClusterArrays(TTree* itsClusterTree)
       while(nClusters--) {
        AliITSRecPoint* cluster = (AliITSRecPoint*)itsClusters->UncheckedAt(nClusters);
        if (!cluster) continue;
-       clArr[nclLayer++] = cluster;
+       clArr.AddAtAndExpand(cluster,nclLayer++);
        nClustersInChip[ seg.GetChipFromLocal(0,cluster->GetDetLocalZ()) ]++; 
       }
       for(Int_t ifChip=5;ifChip--;) if (nClustersInChip[ifChip]) fNFiredChips[il]++;