ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided
Hi
I wrote a small script to check recursively if any of the existing .root files in a given dir is corrupted, basically just printing the entries on screen. However, the script exits on the very first corrupted file. How it would be possible to continue looping for the rest of the files as well?
Thanks
Alex
import ROOT as root
import sys
import glob
dir=sys.argv[1]
txtfiles = []
for file in glob.glob(dir+"/*.root"):
f = root.TFile(file)
myTree = f.Get("AC1B")
print 'the filename is ',file, myTree.GetEntries()