// ==================================================================== TList *GetResults(const Char_t *testfile,const Char_t *plus){ // // read output // TFile *f = TFile::Open(testfile); if(!f || f->IsZombie()){ printf("File not readable\n"); return 0x0; } TString name(plus); name += "HFE_Results"; printf("Name of TList %s\n",(const char*)name); TList *l = dynamic_cast<TList *>(f->Get((const char*)name)); if(!l){ printf("Output container not found\n"); f->Close(); delete f; return 0x0; } TList *returnlist = dynamic_cast<TList *>(l->Clone()); f->Close(); delete f; return returnlist; }