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 bbced5f..359b493 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();