is there a script or method available in pyROOT or ROOT that inspects all the objects (one by one) written in a ROOT file and ensures that everything is ok (no corrupt objects, no nan histograms, etc…)
and if not gives you a list of all the problematic ones?
thank you for the reply. I am guessing there has to be something of that effect, so @Axel, @pcanal or anyone that knows please let me know. Otherwise, I guess I might need to write one by myself.
A “read everything” would me a nice tool, it’s a good idea! In principle it’s easily done by simply reading all TKeys in all TDirectorys, recursively.
NaN-histograms are a very different beast, though: they might be “just fine” in certain use cases; it’s a fairly personal definition of what’s “broken”…
yes, I agree. I am actually surprised that this does not exist (?) yet! And my thoughts of such a script were also based on using objKeys = GetListOfKeys() and FindObjectAny(objKey) in a loop. But of course the complexity arises from having different ROOT object types etc… T