2 Gb. file size limit

Hello,
We are using ROOT in GATE to create "list-mode"
data from PET and SPECT simulations.
The files we generate are usually larger than 2 Gigabytes,
and then GATE crashes because it cannot keep writting to
the files. I do not know whether this is a GATE
problem or a ROOT problem.

Can ROOT create files larger than 2 Giga bytes?

Thanks a lot
Fernando Rannou
UCLA

ROOT can write files bigger than 2 GBytes. Use version 4.01/02.
If you want to write a TTree bigger than 2 GBytes, you must call
the static function
TTree::SetMaxTreeSize(Long64_t maxsize)

see:
root.cern.ch/root/htmldoc/TTree. … axTreeSize
root.cern.ch/root/htmldoc/TTree. … ChangeFile

Rene

Thanks Rene for your prompt answer.

I assume the Long64_t maxsize represents the size in
bytes, isn’t it?

Fernando

yes the size is in bytes

Rene