You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems hadd is confused by the zero length TTree as a first file. Pls find dummy root files in the attached ZIP to reproduce the issue. In dummyFile0.root, there're 1000 events in the dummyTree; While in dummyFile1.root, the tree is empty. So when hadd 2 files, like
The dummyVariable is definitely non-sense. It should be 0.261287 as it is in the dummyFile0.root. I guess if put the empty tree at the first in merging, ROOT is trying get a variable from an empty pointer?
So far I can not reproduce this issue. I tried master on macos, 6.20 on macos. master on Linux and 6.26.06 on Linux.
Would be able to try with a newer version of ROOT? Or can you try on Linux? If neither are an option, can you provide the file dummyFile??.root that you can produce?
@dpiparo We are running into this problem and were wondering If there is an example on how to change the merge function for TTree to avoid the corrupt target file? Our issue is that the files we Hadd contain many trees, so it is not guaranteed that we always find a file where all the trees are non-empty.
Describe the bug
It seems
hadd
is confused by the zero length TTree as a first file. Pls find dummy root files in the attached ZIP to reproduce the issue. IndummyFile0.root
, there're 1000 events in thedummyTree
; While indummyFile1.root
, the tree is empty. So whenhadd
2 files, likeEverything is okay. While if you do like
And you open the merged
dummyFile10.root
to get entries likeIt looks okay. But if you show the first event, like
The
dummyVariable
is definitely non-sense. It should be0.261287
as it is in thedummyFile0.root
. I guess if put the empty tree at the first in merging, ROOT is trying get a variable from an empty pointer?Expected behavior
Setup
dummyFiles.zip
The text was updated successfully, but these errors were encountered: