Hi,
I want to open a Tree, loop over it creating histograms, close the histo
file, close the Tree. Without leaving Root, I want to repeat the entire
process with a different Tree and make a separate histo file.
I have most of what I need I think, but I don't know how to close the
Tree when I'm done with it. I do:
// Write histos to disk. Close all files.
histofile->Write();
histofile->Close();
delete histofile;
fChain->Delete();
And this works as I expect with the histofile but not with the Tree. I
get through my loop twice and then seg fault. When I check the
TBrowser, I see both the first and second trees in there, which would
cause a seg fault in my code all right. Can anybody tell me how to get
rid of the first Tree?
- John
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET