using the code shown below for reading tree files, how can I find out if _tree actually is a valid TTree object?
Would isinstance(_tree, TTree) do?
Or do I have to resort to a try except around the call to GetEntries()?
_treeFile = TFile( plotDef['file']+'.tree' )
_tree = _treeFile.Get(plotDef['tree'])
logFile.writeln( "plotTree: %s has %d entries" % (plotDef['name'], _tree.GetEntries()) )
TIA & regards,