TEventList *fEventList = new TEventList();
TString guid = 0x0;
TString turl = 0x0;
+ TString lfn = 0x0;
//Defining tag objects
AliRunTag *tag = new AliRunTag;
evTag = (AliEventTag *) tagList->At(i);
guid = evTag->GetGUID();
turl = evTag->GetTURL();
+ lfn = turl(8,turl.Length());
if(EvTagCuts->IsAccepted(evTag)) fEventList->Enter(i);
}//event loop
- collection->WriteBody(iTagFiles+1,guid,turl,fEventList);
+ collection->WriteBody(iTagFiles+1,guid,lfn,turl,fEventList);
fEventList->Clear();
}//run tag cuts
}//tag file loop
TEventList *fEventList = new TEventList();
TString guid = 0x0;
TString turl = 0x0;
+ TString lfn = 0x0;
//Defining tag objects
AliRunTag *tag = new AliRunTag;
evTag = (AliEventTag *) tagList->At(i);
guid = evTag->GetGUID();
turl = evTag->GetTURL();
+ lfn = turl(8,turl.Length());
if(fEventFormula->EvalInstance(i) == 1) fEventList->Enter(i);
}//event loop
- collection->WriteBody(iTagFiles+1,guid,turl,fEventList);
+ collection->WriteBody(iTagFiles+1,guid,lfn,turl,fEventList);
fEventList->Clear();
}//run tag cuts
}//tag file loop
// Open the output stream
fout.open(xmlName);
fout<<"<?xml version=\"1.0\"?>\n";
- fout<<"<tags>\n";
+ fout<<"<alien>\n";
fout<<" "<<collectionHeader<<"\n";
return kTRUE;
}
//___________________________________________________________________________
-Bool_t AliXMLCollection::WriteBody(Int_t counter, const char* guid, const char* turl, TEventList *list) {
+Bool_t AliXMLCollection::WriteBody(Int_t counter, const char* guid, const char* lfn, const char* turl, TEventList *list) {
//Writes the body of the xml collection
TString listline;
for(Int_t i = 0; i < list->GetN(); i++) {
line1 += "guid=\"";
line1 += guid;
line1 += "\" ";
+ line1 += "lfn=\"";
+ line1 += lfn;
+ line1 += "\" ";
line1 += "turl=\"";
line1 += turl;
line1 += "\" ";
Bool_t AliXMLCollection::Export() {
//Closes the stream
fout<<" "<<"</collection>\n";
- fout<<"</tags>\n";
+ fout<<"</alien>\n";
fout.close();
//____________________________________________________//
Bool_t WriteHeader();
- Bool_t WriteBody(Int_t counter, const char* guid, const char *turl, TEventList *fEventList);
+ Bool_t WriteBody(Int_t counter, const char* guid, const char *lfn, const char *turl, TEventList *fEventList);
Bool_t Export();
void SetCollectionName(const char* name) {fCollectionName = name;}