Tuesday, August 05, 2014

opening multiple files in ROOT

If the filenames (or pathnames in this case) are sequential, this method in the ROOT forums would work.

while (i1<50) {
   
 sprintf(filename1,"pathnameTemplete_%d.txt",i1);
    f1 = new TFile(filename1,"READONLY");


and so on.

Otherwise this glob based solution might be useful.

No comments:

Post a Comment