.dat to .root

Hi,

I used that code in a macro for ROOT 6.32.02.

Cheers,
Danilo

This is the version I am working on.

Try:
TFile *f = new TFile("output.root", "RECREATE", "", ROOT::CompressionSettings(ROOT::kLZMA, 9));

1 Like

Thanks. The file size reduced to 191M.

Then try 8, 7, and 6 (instead of 9). Maybe the size will not differ much, but it could be faster.

Also, you can try to play with other compression algorithms and levels → Compression.h