]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 8368cd21221fc7ff0780033f37f4f3cd7d4da099..ceb40f86e427119bf12e45a0623fe60c385e7904 100644 (file)
@@ -220,7 +220,9 @@ void AliTOFQADataMakerRec::MakeRecPoints(TTree * clustersTree)
     return;
   }
 
     return;
   }
 
-  TClonesArray dummy("AliTOFcluster",10000), *clusters=&dummy;
+  static TClonesArray dummy("AliTOFcluster",10000);
+  dummy.Clear();
+  TClonesArray *clusters=&dummy;
   branch->SetAddress(&clusters);
 
   // Import the tree
   branch->SetAddress(&clusters);
 
   // Import the tree