Hi,
I have several root files of which I’d like to merge a tree
in a subdirectory.
Eg, one file looks like:
root [1] TFile f(“myfile.root”)
root [2] TDirectory subdir = mysubdir
root [3] subdir.cd()
root [4] .ls
TDirectory mysubdir
KEY: TTree mytree;1 Tuple
root [5] mytree->Print()
*Tree :mytree : Tuple
*
*Entries : 1000 : Total = 1359880 bytes File Size =
646381 *
-
: : Tree compression factor = 2.09
etc
However, I tried several examples on the web (expecially several
versions of hadd) and I didn’t manage to get a
final merged file with the merged mytree from all the files.
I mean, I manage to get a merged file with all the subdirectories, but
then if I look at the subdirectory I am interested in (namely mysubdir) I
don’t see mytree filled.
I am using ROOT Version 5.04/00.
Any suggestion on how I can proceed?
Thanks.
Francesca
PS I can send a private link to my root files to whom asks me