// if the same Grid is alreay active, skip connection
if (!gGrid || fGridUrl != gGrid->GridUrl()
- || fUser != gGrid->GetUser()) {
+ || (( fUser != "" ) && ( fUser != gGrid->GetUser() )) ) {
// connection to the Grid
+ AliInfo("Connection to the Grid!!!!");
+ if(gGrid){
+ AliInfo(Form("gGrid = %x; fGridUrl = %s; gGrid->GridUrl() = %s",gGrid,fGridUrl.Data(), gGrid->GridUrl()));
+ AliInfo(Form("fUser = %s; gGrid->GetUser() = %s",fUser.Data(), gGrid->GetUser()));
+ }
TGrid::Connect(fGridUrl.Data(),fUser.Data());
}
dirName += query.GetPath(); // dirName = fDBFolder/idPath
if (!gGrid->Cd(dirName,0)) {
- AliError(Form("Directory <%s> not found", (query.GetPath()).Data()));
- AliError(Form("in DB folder %s", fDBFolder.Data()));
+ AliDebug(2,Form("Directory <%s> not found", (query.GetPath()).Data()));
+ AliDebug(2,Form("in DB folder %s", fDBFolder.Data()));
return kFALSE;
}
if (!query.HasVersion()){ // look for highest version
if(result.GetVersion() > aVersion) continue;
if(result.GetVersion() == aVersion) {
- AliError(Form("More than one object valid for run %d, version %d!",
+ AliDebug(2,Form("More than one object valid for run %d, version %d!",
query.GetFirstRun(), aVersion));
return kFALSE;
}
} else { // look for specified version
if(query.GetVersion() != aVersion) continue;
if(result.GetVersion() == aVersion){
- AliError(Form("More than one object valid for run %d, version %d!",
+ AliDebug(2,Form("More than one object valid for run %d, version %d!",
query.GetFirstRun(), aVersion));
return kFALSE;
}
TString filename;
if (!IdToFilename(dataId.GetAliCDBRunRange(), dataId.GetVersion(),filename)) {
- AliError("Bad data ID encountered! Subnormal error!");
+ AliDebug(2,Form("Bad data ID encountered! Subnormal error!"));
return NULL;
}
filename.Prepend("/alien" + fDBFolder + queryId.GetPath() + '/');
filename += "?se="; filename += fSE.Data();
- AliInfo(Form("Opening file: %s",filename.Data()));
+ AliDebug(2,Form("Opening file: %s",filename.Data()));
TFile *file = TFile::Open(filename);
if (!file) {
- AliError(Form("Can't open file <%s>!", filename.Data()));
+ AliDebug(2,Form("Can't open file <%s>!", filename.Data()));
return NULL;
}
TObject* anObject = file->Get("AliCDBEntry");
if (!anObject) {
- AliError("Bad storage data: NULL entry object!");
+ AliDebug(2,Form("Bad storage data: NULL entry object!"));
return NULL;
}
if (AliCDBEntry::Class() != anObject->IsA()) {
- AliError("Bad storage data: Invalid entry object!");
+ AliDebug(2,Form("Bad storage data: Invalid entry object!"));
return NULL;
}
level0Dir += level0;
if (!gGrid->Cd(level0Dir,0)) {
- AliError(Form("Level0 directory <%s> not found", level0Dir.Data()));
+ AliDebug(2,Form("Level0 directory <%s> not found", level0Dir.Data()));
return;
}
level1Dir += level1;
if (!gGrid->Cd(level1Dir,0)) {
- AliError(Form("Level1 directory <%s> not found", level1Dir.Data()));
+ AliDebug(2,Form("Level1 directory <%s> not found", level1Dir.Data()));
return;
}