Clearing instead of Deleting TClone
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 17 Oct 2009 09:10:49 +0000 (09:10 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 17 Oct 2009 09:10:49 +0000 (09:10 +0000)
ITS/AliITStrackerMI.cxx

index 11a1499..f05cfb9 100644 (file)
@@ -373,7 +373,7 @@ Int_t AliITStrackerMI::LoadClusters(TTree *cTree) {
 
         fgLayers[i].InsertCluster(new AliITSRecPoint(*c));
       }
-      clusters->Delete();
+      clusters->Clear();
       // add dead zone "virtual" cluster in SPD, if there is a cluster within 
       // zwindow cm from the dead zone      
       if (i<2 && AliITSReconstructor::GetRecoParam()->GetAddVirtualClustersInDeadZone()) {
@@ -415,8 +415,6 @@ Int_t AliITStrackerMI::LoadClusters(TTree *cTree) {
     fgLayers[i].SortClusters();
   }
 
-  dummy.Clear();
-
   // check whether we have to skip some layers
   SetForceSkippingOfLayer();