// --- Standard library ---
+#include <strstream.h>
// --- AliRoot header files ---
#include "AliPHOS.h"
//____________________________________________________________________________
void AliPHOS::SetTreeAddress()
{
+
// TBranch *branch;
AliDetector::SetTreeAddress();
TBranch * branch ;
+ if(fSDigits)
+ fSDigits->Clear();
+ else
+ fSDigits = new TClonesArray("AliPHOSDigit",1) ;
+
+ if (gAlice->TreeS() && fSDigits ) {
+ branch = gAlice->TreeS()->GetBranch("PHOS");
+ if (branch) branch->SetAddress(&fSDigits) ;
+ }
+
if(fDigits)
fDigits->Clear();
else