-RecPointsList * AliPHOS::EmcRecPoints(Int_t evt)
-{
- // returns the pointer to the EMCA RecPoints list
- // if the list is empty, get it from TreeR on the disk file
-
- RecPointsList * rv = 0 ;
+void AliPHOS::SetTreeAddress()
+{
+ // TBranch *branch;
+ AliDetector::SetTreeAddress();
+
+ TBranch * branch ;
+
+ if(fDigits)
+ fDigits->Clear();
+ else
+ fDigits = new TClonesArray("AliPHOSDigit",1) ;
+
+ if (gAlice->TreeD() && fDigits ) {
+ branch = gAlice->TreeD()->GetBranch("PHOS");
+ if (branch) branch->SetAddress(&fDigits) ;
+ }
+
+ TTree *treeR = gAlice->TreeR();
+
+ //Branch address for TreeR: EmcRecPoint