It is likely that your Tree is a memory resident Tree, you should fix this problem first, please.
Moving to 5.24 you could connect each Tree file and do
TFile f(file1.root,"update");
TTree *T = (TTree*)f.Get("name of your tree");
T->FlushBaskets();
T->Write();
and repeat this opetartion for each file, then you can use hadd.
You mean this operation is only available for “5.24”? How about other versions like v5.22?
[quote=“brun”]It is likely that your Tree is a memory resident Tree, you should fix this problem first, please.
Moving to 5.24 you could connect each Tree file and do
TFile f(file1.root,"update");
TTree *T = (TTree*)f.Get("name of your tree");
T->FlushBaskets();
T->Write();
and repeat this opetartion for each file, then you can use hadd.
these files are on a local computer in my office -
I would need to copy them to elsewhere,
and I will do so, but it’s not clear to me there is
enough room on afs at CERN for that.
There is one more piece of info:
when I was (successfully) merging my huge TTrees using hadd
(64bit ROOT) I noticed that the trees were definitely being
merged in memory: my machine has 24 real GB, and, when the
total size of files to be merged approached approx. 20-22 GB,
the machine started swappping like crazy and, after an hour of
not even being able to log in, I was able to recover by Ctrl/C
ROOT session that was doing the merging. My interpretation is
that ROOT was trying to merge my TTrees in RAM, though I tried
the prescription suggested by Rene earlier in this thread -
as soon as the files are at CERN, I will let you know -
thanks,
v
[quote=“pcanal”]Hi,
If you tell me where to find those 2 files, I will attempt to reproduce the problem.
[quote]btw, now, this is how I “fixed” them before trying to hadd:[/quote]Is the problem happening before or after you did the fix? Are the log before or after you did the fix?
[quote]btw, now, this is how I “fixed” them before trying to hadd:[/quote]Is the problem happening before or after you did the fix? Are the log before or after you did the fix?
Philippe.[/quote]
the problem happens regardless of me “fixing” or not “fixing” the files.
(I am “fixing” copies, not the originals) -
the results
of
map and print are shown after “fixing” the files -
btw, I expected this “fixing” to take a lot of time, but “fixing” each file takes just a few seconds…
[quote]Philippe, the files are huge, but I can let you log in to this computer, if you could help that way - please let me know[/quote]So this seems like the only way to make progress. My email is pcanal@fnal.gov.
Thank you very much for reporting this problem (a significant memory in the TTreeClone in the development release v5.27/06) which is now fixed by revision 37405 of the trunk.
Philippe,
thank you very much for fixing this bug!
Just for fun, earlier today I used the new hadd
to merge two sets of files and successfully did
so for output file size exceeding 30GB!
thanks!
v