633 |
// |
// |
634 |
TIter next2(contents); |
TIter next2(contents); |
635 |
TChain *questa = 0; |
TChain *questa = 0; |
636 |
while (questa = (TChain*) next2()) { |
while ( (questa = (TChain*)next2()) ) { |
637 |
TString name = questa->GetName(); |
TString name = questa->GetName(); |
638 |
questa->Delete(); |
questa->Delete(); |
639 |
questa = NULL; |
questa = NULL; |
747 |
// |
// |
748 |
TIter next2(contents); |
TIter next2(contents); |
749 |
TChain *questa = 0; |
TChain *questa = 0; |
750 |
while (questa = (TChain*) next2()) { |
while ( (questa = (TChain*) next2()) ) { |
751 |
TString name = questa->GetName(); |
TString name = questa->GetName(); |
752 |
questa->Delete(); |
questa->Delete(); |
753 |
questa = NULL; |
questa = NULL; |
2113 |
if (file.EndsWith(".root")) { |
if (file.EndsWith(".root")) { |
2114 |
TString filedir; |
TString filedir; |
2115 |
cout << ddir << endl; |
cout << ddir << endl; |
2116 |
if (ddir != "") { |
if ( ddir != "" ) { |
2117 |
filedir = ddir; // take the input dir |
filedir = ddir; // take the input dir |
2118 |
} |
} |
2119 |
else { |
else { |
2121 |
filedir = gSystem->DirName(file); // this will take the path if exist in the list otherwise it will return automatically the working dir |
filedir = gSystem->DirName(file); // this will take the path if exist in the list otherwise it will return automatically the working dir |
2122 |
}; |
}; |
2123 |
filedir.Append("/"); |
filedir.Append("/"); |
2124 |
char *fullpath = gSystem->ConcatFileName(gSystem->DirName(filedir), gSystem->BaseName(file)); |
// char *fullpath = gSystem->ConcatFileName(gSystem->DirName(filedir), gSystem->BaseName(file)); |
2125 |
|
char *fullpath = gSystem->ConcatFileName(filedir.Data(), gSystem->BaseName(file)); |
2126 |
contents->Add(new TSystemFile(fullpath, gSystem->DirName(fullpath)));// add file to the list |
contents->Add(new TSystemFile(fullpath, gSystem->DirName(fullpath)));// add file to the list |
2127 |
cout << fullpath << endl; |
cout << fullpath << endl; |
2128 |
delete fullpath; |
delete fullpath; |