I use hadd to merge a few root files, but it complains that it can’t find the named tree:
Error in TChain::LoadTree: Cannot find tree with name TreeS in file ttbar_gentuple_00_ntuple.root
In TBrowser I can see that the tree TreeS is there. I am using Root 5.28 (5.28.00g-slc5-gcc4.3-i686) to create and merge these ntuples. Anyone seen this before? If this has been previously resolved, can you please point me to the right solution? I couldn’t find it. Thanks a lot in advance!
The TTree might be in a different directory in one file vs another. Could you provide the minimum set of files reproducing the problems (at least the result of file->ls() on them)?
All these root files are created by the same code, where I don’t specify any directory structure - just write out the trees. There are 14 files I’d like to merge. It complains at the very first file, no matter which it is. I cannot upload an attachment here.
[quote]All these root files are created by the same code, where I don’t specify any directory structure [/quote]This is the usual case (and thus usually work!). What is the command line you use. Since it fails on the first files, could you produce 2 files each with only 2 entries in the TTree and try again uploading them.