I am performing analysis over a dataset and it usually entails creating a load of histograms (atleast 30-40). I wish to be able to group/bunch these histograms into branches like we do in trees->braches->leafs structure so as to have a one branch for each category of histograms.
Could you suggest any suitable approach if such a thing is possible. A pseudo code will help in case there is a solution for this query.
Unless you have multiple version of these histograms, TTree would not be beneficial. In this case, you would be better serve organizing the TFile in sub-directories (see TFile::mkdir) for each categories.
Alternative you could also store the raw data of the histograms in branches.
Also you can simply store the histogram in unsplit branches: