In other words, I would like to be able to have the equivalent of the pseudocode above in an interactive ROOT session in order to retried the sum of all values that the variable_in_tree takes in my tree.