| 999 |
// char *fullpath; |
// char *fullpath; |
| 1000 |
// const char *fullpath; |
// const char *fullpath; |
| 1001 |
|
|
| 1002 |
// if no input file list is given: |
// if input file list is given: |
| 1003 |
if ( flisttxt != "" ){ |
if ( flisttxt != "" ){ |
| 1004 |
|
|
| 1005 |
// if( !gSystem->IsFileInIncludePath(flisttxt,&fullpath) ){ |
// if( !gSystem->IsFileInIncludePath(flisttxt,&fullpath) ){ |
| 1009 |
// } |
// } |
| 1010 |
// flisttxt = fullpath; |
// flisttxt = fullpath; |
| 1011 |
|
|
| 1012 |
|
if ( !flisttxt.EndsWith(".root") ){ |
| 1013 |
flisttxt = gSystem->ConcatFileName(gSystem->DirName(flisttxt),gSystem->BaseName(flisttxt)); |
flisttxt = gSystem->ConcatFileName(gSystem->DirName(flisttxt),gSystem->BaseName(flisttxt)); |
| 1014 |
|
|
| 1015 |
if( !gSystem->ChangeDirectory(ddir) ){ |
if( !gSystem->ChangeDirectory(ddir) ){ |
| 1050 |
// }; |
// }; |
| 1051 |
}; |
}; |
| 1052 |
in.close(); |
in.close(); |
| 1053 |
|
} else { |
| 1054 |
|
char *fullpath = gSystem->ConcatFileName(gSystem->DirName(flisttxt),gSystem->BaseName(flisttxt)); |
| 1055 |
|
contents->Add(new TSystemFile(fullpath,gSystem->DirName(fullpath)));// add file to the list |
| 1056 |
|
delete fullpath; |
| 1057 |
|
}; |
| 1058 |
}else{ |
}else{ |
| 1059 |
|
|
| 1060 |
cout << "No input file list given."<<endl; |
cout << "No input file list given."<<endl; |