How to fiilling a tree

I have root file with histograms in it. I want to put those histograms in a tree. How can I do do. I was trying this using TBranch and Branch() function but unable to do that.Please help me.

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

The following tutorial illustrates how to store histograms in a tree:

Keep in mind that this is storing a set of histograms per event. If your histograms summarize all the events in a tree, it would actually make sense to have them in the ROOT file but not in a tree. If you have many such histograms and you want to group them, you can create directories in the ROOT file and place the histograms in different directories, as shown in

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.