TFile max size

Hello,

I cannot find a way to increase the maximum size of a TFile from 2 GB. Is this functionality allowed?

I am filling a tree in a file and get two files, file.root and file_1.root which I have to hadd afterward. I would like to avoid the hadd part and just have one file output.

Also, in the program I do outfile->Close() when all is said and done but this will crash if a second file has been created due to size constraints. If I have one file this is avoided, but out of curiosity, how would one avoid this? How do I get a pointer to the second file?

Thanks!

see TTree::SetMaxTreeSize
root.cern.ch/root/html/TTree.htm … axTreeSize

Rene

Thanks! I was looking in TFile!