[TTree] Enable importing all (filled) branches from all the files, not just the first one#17650
[TTree] Enable importing all (filled) branches from all the files, not just the first one#17650ferdymercury wants to merge 1 commit intoroot-project:masterfrom
Conversation
Test Results 22 files 22 suites 3d 13h 37m 35s ⏱️ For more details on these failures, see this check. Results for commit 102e2cb. ♻️ This comment has been updated with latest results. |
|
I believe I was wrongfully accused for #14558. 😛 But happy to receive any bugfixes for ATLAS too. 😄 |
I thought you reported https://its.cern.ch/jira/browse/ROOT-4716 (which was moved to 14558), but anyway it doesn't matter hehe. |
😛 I just looked at the author of that issue here on GitHub, didn't read it properly. Yes, you were correct, I was wrong. 😄 |
tree/tree/src/TTree.cxx
Outdated
| Long64_t nentries = tree->GetEntries(); | ||
| if (nentries == 0) continue; | ||
|
|
||
| ImportBranches(tree); |
There was a problem hiding this comment.
This is a significant new feature and should probably not be enabled by default. In addition (compare to RNTuple which has a similar feature) we do not offer a clear way to select the value used for backfillin. (It is not clear if the current code use a 'default' value, the first value from the new tree or a random value).
72e1fa0 to
afa323e
Compare
ec48ba4 to
780d328
Compare
780d328 to
e4b19ea
Compare
…merging TTrees Fixes root-project#14558 Fixes root-project#12510
0374625 to
102e2cb
Compare
This is a new feature, only turned on if selected.
This relates to #14558 by @krasznaa
and maybe #12510 by @MoAly98 and @rankunlin
and also: https://root-forum.cern.ch/t/hadd-not-working-when-missing-branches-in-one-of-the-root-files/62957
Checklist: