-
-}
-//__________________________________________________________________
-void AliPHOSSDigitizer::SetSDigitsBranch(const char * title )
-{
- // Setting title to branch SDigits
-
- TString stitle(title) ;
-
- // check if branch with title already exists
- TBranch * sdigitsBranch = (TBranch*)gAlice->TreeS()->GetListOfBranches()->FindObject("PHOS") ;
- TBranch * sdigitizerBranch = (TBranch*)gAlice->TreeS()->GetListOfBranches()->FindObject("AliPHOSSDigitizer") ;
- const char * sdigitsTitle = sdigitsBranch ->GetTitle() ;
- const char * sdigitizerTitle = sdigitizerBranch ->GetTitle() ;
- if ( stitle.CompareTo(sdigitsTitle)==0 || stitle.CompareTo(sdigitizerTitle)==0 ){
- cerr << "ERROR: AliPHOSSdigitizer::SetSDigitsBranch -> Cannot overwrite existing branch with title " << title << endl ;
- return ;
- }
-
- cout << "AliPHOSSdigitizer::SetSDigitsBranch -> Changing SDigits file from " << GetName() << " to " << title << endl ;
-
- SetName(title) ;
-
- // Post to the WhiteBoard
- AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
- gime->PostSDigits( title, GetTitle()) ;
+ //TFile f("out.root","RECREATE");
+ //memwatcher.WriteToFile();
+ //f.Close();