ROOT creating multiple trees

ROOT Version: 6.32.04
Platform: WSL2 Ubuntu

Hello! I am generating 1E5 events in Pythia and storing particle data into a ROOT file. However, as shown below, why does ROOT make more than one tree?

image

The tree_raw;1 stores 55901 entries and the tree_raw;2 stores 1E5 entries. Is there a memory limit of one tree? And does this affect the reading process?

Thanks in advance. Cheers.

Hi @phylmath, thank you for your question.

The default max size is 100 Gigabytes (and you can increase the limit!) - ROOT: TTree Class Reference

I’m adding @pcanal in the loop.

Cheers,
Dev

those are two cycles of the same tree. It’s like a backup history.
You can use Write(TObject::kOverwriteDelete) to only store the last cycle.