I’ve i have been following the example “Creation of a hierarchy of histograms in direrctories” in the root tutorials. I have been successful at creating the histograms, but have problems trying fill them.
As i understand, I have created a TFile containing sub directories, and each sub directory contains a histogram. The question is what is the easiest way to return to those histograms in order to fill and plot them?
void LoopOverFile(const char* filename) {
TFile *file=new TFile(filename);
LoopOverSubDirs(file);
}[/code]
(I’ve only split the code into methods to make it easier to understand what’s happening where).
Axel.