Dear Developers,
I would like to suggest adding a third status option to the SetBranchStatus method. Currently, there are only two possibilities:
-
process branch
-
do not process branch
In my opinion, it would be very useful to introduce an additional option: “never process branch”.
Here is the motivation:
In my analysis I sometimes need to process rare events, where the relevant information is stored in the lets call it Trigger branch. Once a valid trigger is found, I have to call TTree::GetEntry(n, 1), which forces loading of all branches — including those that I do not need (for example, hits, when I am only analyzing tracks).
With a “never process branch” option, it would be possible to permanently disable branches that are never needed e.g. those “hits”.
This could significantly improve performance of some analyses.