Fixed LoadClusters
authormvl <mvl@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 May 2007 22:06:12 +0000 (22:06 +0000)
committermvl <mvl@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 May 2007 22:06:12 +0000 (22:06 +0000)
EMCAL/AliEMCALTracker.cxx

index 54f94ec..b6c8290 100644 (file)
@@ -241,12 +241,11 @@ Int_t AliEMCALTracker::LoadClusters(TTree *cTree)
                return 1;
        }
        
-       TClonesArray dummy("AliEMCALRecPoint", 10000);
-       TClonesArray *clusters = &dummy;
+       TClonesArray *clusters = new TClonesArray("AliEMCALRecPoint", 1000);
        branch->SetAddress(&clusters);
-       Int_t nClusters = (Int_t)clusters->GetEntries();
        
        cTree->GetEvent(0);
+       Int_t nClusters = (Int_t)clusters->GetEntries();
        fClusters = new TObjArray(0);
        for (Int_t i = 0; i < nClusters; i++) {
                AliEMCALRecPoint *cluster = (AliEMCALRecPoint*)clusters->At(i);