ROOT Version: 6.08/06
Platform, Compiler: x86_64-slc6-gcc62
Hi,
I’m trying to take two TTrees with the same name, each in a different TDirectory in a file, and merge them. I am having trouble figuring out how to do this, either with TChain or hadd. TChain doesn’t like wildcards like
TChain ch("*/TreeName")
ch.Add("file1.root")
ch.Add("file2.root")
ch.Draw("x")
and using hadd doesn’t work given the different directory names.
How would I achieve this? Apologies if this is duplicated somewhere.
Edit: to clarify, the structure is
- file.root
1.1 directory1
1.1.1 TreeName
1.2 directory2
1.2.1 TreeName
Many thanks,
George