echo "Usage: $0 \$inputFile \$flag \$outputFile"
return 1
fi
+ export ALIROOT_FORCE_COREDUMP=1
local inFile=${1}
local inFlag=${2}
local outFile=${3}
# $3 type of the dump (XML or MI recursive dump )
# Output:
# $4 output file name
+ export ALIROOT_FORCE_COREDUMP=1
if [ $# -lt 4 ] ; then
echo "Usage: $0 \$inputFile \$object_name \$dump_type [XML/MI] \$outfile"
return 1
# $4 type of the dump (xml or MI recursive dump )
# Output:
# $5 output diff file name
+ export ALIROOT_FORCE_COREDUMP=1
if [ $# -lt 5 ] ; then
echo "Usage: $0 \$inputFile1 \$inputFile2 \$object_name \$dump_type [XML/MI] \$outfile"
return 1
# $2 - list 2
# Output:
# difference is stdout
-
+ export ALIROOT_FORCE_COREDUMP=1
list1=$1
list2=$2
shift 2
}
else if(fType.EqualTo("ESD",TString::kIgnoreCase)){
file = TFile::Open(fInput.Data());
+ if (!file) {
+ printf("Input file does not exist %s. Exiting\n",fInput.Data());
+ return;
+ }
TList *listESD = ((TTree*)file->Get("esdTree"))->GetUserInfo();
cdbMap = (TMap*)listESD->FindObject("cdbMap");
if (!cdbMap){
if(!ostr) ostr = (TObjString*)cdbMap0->GetValue("default");
cdbPath = ostr->GetString();
if(cdbPath.Contains("local://"))cdbPath=cdbPath(8,cdbPath.Length()).Data();
-
- cdbEntry = (AliCDBEntry*) man->Get(*CDBId,kTRUE);
+ try {
+ cdbEntry = (AliCDBEntry*) man->Get(*CDBId,kTRUE);
+ }catch(const exception &e){
+ cerr << "OCDB retrieval failed!" << endl;
+ cerr << "Detailes: " << e.what() << endl;
+ }
if (!cdbEntry) {
printf("Object not avaliable\n");
CDBId->Print();