Saving TTree/TBranches in TH1

Hi

I would like to do something similar to root.cern.ch/root/html/tutorials … ee3.C.html but with the difference that I do have too many branches inside the Tree to manually write down all the SetBranchAddress members…

So, is there any way to read a TTree and drop each recursively each TBranch content in one new TH1F ?

Thanks

Alexi

Search for “GetListOf” in the class TTree description.
See also:
ROOT User’s Guide - Chapter 12. Trees - Using TTree::MakeClass and the TTree::MakeClass description
ROOT User’s Guide - Chapter 12. Trees - Using TTree::MakeSelector and the TTree::MakeSelector description