This example shows a simple way to merge the root tree files or to use the root tree files made by the previous example to make histograms. The example to download will allow you to add as may histogram as you like in a header file named test.h. If you would like to put result in a file instead you can do something like the following (run these on the previous example out put file called output.root).