I’m having the following problem:
I have ~8000 root files each containing 8 large histograms (20000 bins, TH1F).
on disk one of the files has 60k and the folder holding all of the files has 60 Mb.
However now I’m trying to load all of these histograms (into my memory).
I open the file, get the hists and do:
TH1F* hist = (TH1F*) rfile->Get((name_+"_reco").c_str());
and than close the file by:
rfile = NULL;
However, the 60 Mb blow up in my memory to more than 20 Gb und my program crashes.
Am I doing something wrong or why are the histograms so much larger in memory than on disk?
Appreciating any help!