//Merges the tags and stores the merged tag file
//locally if fStorage=0 or in the grid if fStorage=1
AliInfo(Form("Merging tags....."));
TChain *fgChain = new TChain("T");
//Merges the tags and stores the merged tag file
//locally if fStorage=0 or in the grid if fStorage=1
AliInfo(Form("Merging tags....."));
TChain *fgChain = new TChain("T");
-
- TGridResult *tagresult = gGrid->Query(alienLocation,"*tag.root","","");
+ TString queryPattern = "*."; queryPattern += tagPattern;
+ TGridResult *tagresult = gGrid->Query(alienLocation,queryPattern.Data(),"","");
Int_t nEntries = tagresult->GetEntries();
for(Int_t i = 0; i < nEntries; i++) {
TString alienUrl = tagresult->GetKey(i,"turl");
Int_t nEntries = tagresult->GetEntries();
for(Int_t i = 0; i < nEntries; i++) {
TString alienUrl = tagresult->GetKey(i,"turl");
fgChain->SetBranchAddress("AliTAG",&tag);
fgChain->GetEntry(0);
TString localFileName = "Run"; localFileName += tag->GetRunId();
fgChain->SetBranchAddress("AliTAG",&tag);
fgChain->GetEntry(0);
TString localFileName = "Run"; localFileName += tag->GetRunId();
//Merges the tags that are listed in the TGridResult
AliInfo(Form("Merging tags....."));
TChain *fgChain = new TChain("T");
//Merges the tags that are listed in the TGridResult
AliInfo(Form("Merging tags....."));
TChain *fgChain = new TChain("T");