ROOT Version: 6.14.00 Platform: Ubuntu 18.04 Compiler: Not Provided
Hi,
I have 4 files, each containing a TTree and each has a different weight which I need to apply to it. I wish to create a new TTree (or the relevant leaves, so I have access to individual entries after applying the weight) which contains all the TTrees\leaves with the weights applied. What is the best way to do it?
I think the easiest is to use RDataFrame.
Basically the steps, if I understand correctly, would be to build a data frame on top of a tree (each of the four), create the columns holding the weighted quantities and then snapshot them to disk.