-
- Downloads
[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.
Loading
Please register or sign in to comment