]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Implementing SetTreeAddress
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Aug 2003 16:02:29 +0000 (16:02 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Aug 2003 16:02:29 +0000 (16:02 +0000)
ZDC/AliZDC.cxx
ZDC/AliZDC.h

index 809ad7199ab6edf8a4a83de1285bdb35cc9c077e..ef9f121bf9ec735c3731cd80ba193e2bfc47ca88 100644 (file)
@@ -714,4 +714,21 @@ void AliZDC::Digits2Reco()
   treeR->Reset();
 }
 
+//______________________________________________________________________
+void AliZDC::SetTreeAddress(){
+  // Set branch address for the Trees.
+  // Inputs:
+  //      none.
+  // Outputs:
+  //      none.
+  // Return:
+  //      none.
+  if (fLoader->TreeH() && (fHits == 0x0))
+    fHits   = new TClonesArray("AliZDCHit",1000);
+      
+  if (fLoader->TreeD() && (fDigits == 0x0))
+    fDigits = new TClonesArray("AliZDCDigit",1000);
+      
+  AliDetector::SetTreeAddress();
+}
  
index e3db9c8b2e853465c2a811e77dbe79558ba02ab9..4992d45277f187f3de014b02c8399e606e5a7e9f 100644 (file)
@@ -28,6 +28,7 @@ public:
   virtual Int_t IsVersion() const =0;
   virtual Float_t ZMin() const;        // Minimum overall dimension of the ZDC
   virtual Float_t ZMax() const;        // Maximum overall dimension of the ZDC
+  virtual void  SetTreeAddress();
   virtual void  MakeBranch(Option_t* opt, const char *file=0);
   virtual void  MakeBranchInTreeS(TTree *treeS, const char *file=0);
   virtual void  MakeBranchInTreeD(TTree *treeD, const char *file=0);