Is there an efficient way to perform arithmetic with the branches of a TNtuple? By this, I mean adding and subtracting branches, multiplying a branch by a scalar, etc.
In my case, I’d like to multiply all entries in one branch by a number (e.g. multiply all elements by, say, 12), and then add this branch to another branch, element-wise (which branch the result is stored in doesn’t matter, afterwards I no longer need the original two branches). The branches in question have hundreds of millions of entries, so doing this entry-by-entry is painfully slow. Is there a better way?
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided