gAlice = 0 ;
}
+//____________________________________________________________________________
+const TFolder * AliEMCALGetter::Folder(const TString what) const {
+
+ // returns the EMCAL folder required by what
+ // what = hits, sdigits, digits
+
+ if ( what == "hits" )
+ return dynamic_cast<const TFolder *>(fHitsFolder->FindObject("EMCAL")) ;
+ else if ( what == "sdigits" )
+ return dynamic_cast<const TFolder *>(fSDigitsFolder->FindObject("EMCAL")) ;
+ else if ( what == "digits" )
+ return dynamic_cast<const TFolder *>(fDigitsFolder->FindObject("EMCAL")) ;
+ else {
+ cerr << "ERROR: AliEMCALGetter::GetFolder -> " << what.Data() << " illegal option (hits, sdigits, digits) " << endl ;
+ return 0 ;
+ }
+}
//____________________________________________________________________________
AliEMCALGetter * AliEMCALGetter::GetInstance()
{
virtual ~AliEMCALGetter() ;
void CloseFile() ;
+ const TFolder * Folder(const TString what) const ;
const Bool_t HasFailed(void) const {return fFailed ;}
Bool_t PostHits(void ) const ;
Bool_t PostSDigits( const char * name, const char * file = 0) const ;
gAlice = 0 ;
}
+//____________________________________________________________________________
+const TFolder * AliPHOSGetter::Folder(const TString what) const {
+
+ // returns the PHOS folder required by what
+ // what = hits, sdigits, digits
+
+ if ( what == "hits" )
+ return dynamic_cast<const TFolder *>(fHitsFolder->FindObject("PHOS")) ;
+ else if ( what == "sdigits" )
+ return dynamic_cast<const TFolder *>(fSDigitsFolder->FindObject("PHOS")) ;
+ else if ( what == "digits" )
+ return dynamic_cast<const TFolder *>(fDigitsFolder->FindObject("PHOS")) ;
+ else {
+ cerr << "ERROR: AliPHOSGetter::GetFolder -> " << what.Data() << " illegal option (hits, sdigits, digits) " << endl ;
+ return 0 ;
+ }
+}
+
//____________________________________________________________________________
AliPHOSGetter * AliPHOSGetter::GetInstance()
{
// read the Digitizer
+ RemoveTask("D", fDigitsTitle) ;
if(!Digitizer(fDigitsTitle))
PostDigitizer(fDigitsTitle) ;
digitizerbranch->SetAddress(DigitizerRef(fDigitsTitle)) ;
virtual ~AliPHOSGetter() ;
void CloseFile() ;
+ const TFolder * Folder(const TString what) const ;
void ListBranches(Int_t event=0) const ;
void NewBranch(TString name, Int_t event = 0) ;
Bool_t NewFile(TString name) ;