As discussed in this issue, it seems to be an issue with ROOT when we want to write the same tree with two opened files. I've added two minimal example scripts, one with the current way we fill the CAFs (test_bad.cpp) and one with the fix I propose in this PR.
As discussed in this issue, it seems to be an issue with ROOT when we want to write the same tree with two opened files. I've added two minimal example scripts, one with the current way we fill the CAFs (test_bad.cpp) and one with the fix I propose in this PR.
After the fix we get for the FLAT CAF:
And for the CAF:
test.txt test_bad.txt