We intend to include an automatic facility to merge histogram files. Meanwhile, you can use this macro as an example.
To merge Root files containing Trees, use TTree::Merge.