Hi David,
A short example showing how to connect all files in the current directory.
See Directory tools in the class TSystem.
{
//open all ROOT files in the current directory
void *dirp = gSystem->OpenDirectory(".");
const char *afile;
TFile *files[1000];
Int_t nfiles = 0;
while(afile = gSystem->GetDirEntry(dirp)) {
if (strstr(afile,".root")) {
printf("file: %s\n",afile);
files[nfiles] = new TFile(afile);
nfiles++;
}
}
}
Rene Brun
On Fri, 21 Sep 2001, [iso-8859-1] Lindelöf David wrote:
> Hi rooters,
>
> Is there some easy way to tell root to load all files located in a given
> folder and its subfolders?
>
> Help much appreciated,
>
> David Lindelof
> EP-Division
> CERN
> 1211 Geneva 23
> Switzerland
>
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET