Skip to content
Snippets Groups Projects
Commit 16c691d8 authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra
Browse files

[ROOT-9797] Properly apply exclusion of branches and cut

The previous version of the code in rooteventselector first applied
the cut by invoking CopyTree on the input TTree, getting an output
tree as a result. After that, it deactivated the branches to exclude
and called CloneTree on the aforementioned output tree, thus getting
the final tree. When following this strategy, the final tree is
bigger than the input tree, probably because the intermediate tree
data (before the cloning) is also stored.

In order to successfully combine the exclusion of branches and a cut
we need to reverse the order of operations: first deactivate branches
and clone the tree, then apply the cut with CopyTree.

Note that keeping the initial solution, only changing the call
to Write on the final tree with Write("", ROOT.TObject.kOverwrite)
does not work either.
parent 893168f7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment