Hadd empty trees

Hi all !

I’m currently using ~150 data files, each one containing a tree called CollectionTree. I usually use ‘hadd’ to merge the .root files. However, in this specific case, some of the trees are empty (simply because there are no events kept in that file) and when I use ‘hadd’, the tree CollectionTree in the target file is empty.

Anyone knows how to avoid this issue ?

Cheers,
Tommy

This should happen only if the empty file is listed first (and the TTree has no entry and no branches).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.