Improving TClonesArray handling - using static dummy TClonesArray.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 May 2008 07:59:34 +0000 (07:59 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 May 2008 07:59:34 +0000 (07:59 +0000)
TOF/AliTOFQADataMakerRec.cxx

index 8368cd2..ceb40f8 100644 (file)
@@ -220,7 +220,9 @@ void AliTOFQADataMakerRec::MakeRecPoints(TTree * clustersTree)
     return;
   }
 
-  TClonesArray dummy("AliTOFcluster",10000), *clusters=&dummy;
+  static TClonesArray dummy("AliTOFcluster",10000);
+  dummy.Clear();
+  TClonesArray *clusters=&dummy;
   branch->SetAddress(&clusters);
 
   // Import the tree