Reading very big event files

Hi all,

I’m trying to read a very big event file (lets saay 5 million events). I created an Event structure to read my data file and fill the tree. But since i have to many events i’m having memory problems. I’m sure there is a way to avoid this. I’m reading the manual right now. What should i use? IS there any example?

Thanks a lot.

I have used in the past the following:

TChain::SetMaxTreeSize(10*Long64_t(2000000000));

seems to work, I would also like to know if it’s ok :wink:

Cheers,
Step0ut