- if(gAlice->TreeS() == 0)
- gAlice->MakeTree("S") ;
-
- //check, if this branch already exits?
- TBranch * sdigitsBranch = 0;
- TBranch * sdigitizerBranch = 0;
-
- TObjArray * branches = gAlice->TreeS()->GetListOfBranches() ;
- Int_t ibranch;
- Bool_t phosNotFound = kTRUE ;
- Bool_t sdigitizerNotFound = kTRUE ;
-
- for(ibranch = 0;ibranch <branches->GetEntries();ibranch++){
-
- if(phosNotFound){
- sdigitsBranch=(TBranch *) branches->At(ibranch) ;
- if( (strcmp("PHOS",sdigitsBranch->GetName())==0 ) &&
- (fSDigitsTitle.CompareTo(sdigitsBranch->GetTitle()) == 0) )
- phosNotFound = kFALSE ;
- }
- if(sdigitizerNotFound){
- sdigitizerBranch = (TBranch *) branches->At(ibranch) ;
- if( (strcmp(sdigitizerBranch->GetName(),"AliPHOSSDigitizer") == 0)&&
- (fSDigitsTitle.CompareTo(sdigitizerBranch->GetTitle()) == 0) )
- sdigitizerNotFound = kFALSE ;
- }
- }