I’m running root v5.34/09 on f19 x86_64, compiled with gcc v4.8.1.
I have TTrees containing a vector. When using TTree::Draw(var, cut) to fill a histogram
- either with values from this vector,
- or using the values in a cut and filling another variable
my memory usage peaks. I cannot figure out how to release this used memory without closing the entire ROOT session. Closing the root file from which I read the tree doesn’t make a difference. Calling the TTree destructor doesn’t make a (significant) difference.
What is it that has been loaded into memory and how do I get rid of it?
Basic start would be:
TFile *f = TFile::Open("filename") TTree *t = (TTree*)f->Get("treename") t->Draw("variable") f->Close()
Anyone up to telling me what I’m missing?