// Author: Andreas Morsch, CERN
//-------------------------------------------------------------------------
-
-
-
#include "AliOADBContainer.h"
#include "AliLog.h"
#include <TObjArray.h>
fArray->AddAt(obj, idx);
}
-
void AliOADBContainer::AddDefaultObject(TObject* obj)
{
if (found > 1) {
AliError(Form("More than one (%5d) object found; return last (%5d) !\n", found, index));
} else if (index == -1) {
- AliWarning(Form("No object found for run %5d !\n", run));
+ AliWarning(Form("No object (%s) found for run %5d !\n", GetName(), run));
}
return index;
// no object found, try default
obj = fDefaultList->FindObject(def);
if (!obj) {
- AliError("Default Object not found !\n");
+ AliError(Form("Default Object (%s) not found !\n", GetName()));
return (0);
} else {
return (obj);
file->GetObject(key, cont);
if (!cont)
{
- AliError("Object not found in file \n");
+ AliError(Form("Object (%s) not found in file \n", GetName()));
return 1;
}