+
+
+
+
+//_________________________________________________________________________
+//Function AliHFEtools::GetHFEResultList() - opens file from argument and returns TList Object containing String "Results"
+//_________________________________________________________________________
+TList *AliHFEtools::GetHFEResultList(const TString str){
+
+ TFile *f = TFile::Open(str.Data());
+ if(!f || f->IsZombie()){
+ printf("Could not read file %s\n",str.Data());
+ return NULL ;
+ }
+ gROOT->cd();
+ TKey *k;
+ TIter next(f->GetListOfKeys());
+ while ((k = dynamic_cast<TKey *>(next()))){
+ TString s(k->GetName());
+ if(s.Contains("Results")) break;
+ }
+ if(!k){
+ printf("Output container not found\n");
+ f->Close(); delete f;
+ return NULL;
+ }
+ TList *returnlist = dynamic_cast<TList *>(k->ReadObj());
+ f->Close(); delete f;
+ return returnlist;
+}