Commit e7865159 authored by Nikola Hardi's avatar Nikola Hardi
Browse files

Fix TJAlienCollection according to TAlienCollection

parent dd11c464
......@@ -780,9 +780,6 @@ const char *TJAlienCollection::GetTURL(const char *filename)
if (obj) {
if (obj->GetValue("turl")) {
TString result = TString(((TObjString *) obj->GetValue("turl"))->GetName());
// we are in JAliEn and collection can be created by Alien, so we change plugin in turl
if (result.BeginsWith("alien://"))
SetTag("turl",(TString(TString("j")+result)).Data(),obj);
Info("GetTUrl", "%s", ((TObjString *) obj->GetValue("turl"))->GetName());
return ((TObjString *) obj->GetValue("turl"))->GetName();
}
......@@ -1120,7 +1117,7 @@ void TJAlienCollection::ParseXML(UInt_t maxentries)
if (!xfile)
continue;
// Bool_t firstfile = kTRUE;
Bool_t firstfile = kTRUE;
do {
// here we have an event file
// get the attributes;
......@@ -1176,13 +1173,13 @@ void TJAlienCollection::ParseXML(UInt_t maxentries)
fExportUrl = ossexporturl->GetName();
}
files->Add(new TObjString(xml.GetAttr(xfile, "name")), attributes);
// we add the first file always as a file without name to the map
/* if (firstfile) {
// we add the first file always as a file without name to the map
if (firstfile) {
files->Add(new TObjString(""), attributes);
firstfile = kFALSE;
} else*/
files->Add(new TObjString(xml.GetAttr(xfile, "name")), attributes);
} else
if (fNofGroups == 1)
fNofGroupfiles++;
} while ((xfile = xml.GetNext(xfile)));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment