]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Create fHits in SetTreeAddress only if it was not created before
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Aug 2003 15:21:19 +0000 (15:21 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Aug 2003 15:21:19 +0000 (15:21 +0000)
PMD/AliPMD.cxx

index bbced5f45e9eaf068e355412eb0ed5e4f10049d3..359b4937542866f1d8f253720fab8674b79cd4b1 100644 (file)
@@ -267,7 +267,7 @@ void AliPMD::SetTreeAddress()
   // Set branch address for the TreeR
     char branchname[30];
     
-    if (fLoader->TreeH())
+    if (fLoader->TreeH() && fHits==0x0)
       fHits   = new TClonesArray("AliPMDhit",  405);
       
     AliDetector::SetTreeAddress();