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();
+}
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);