I have a large number of root files, with various trees and histograms. One of the trees has an entry (branch) called weight which is always between 0 and 1.
I would like to add these files into one file, but select only those files for which weight < 1, so to remove those files which have any entries with weight==1.
Yes, you are right, I just did that over the weekend. I was just hoping there is an easy and quicker way to add files with selection cuts in hadd. It would be useful I think to add it sometime in the future. I actually found this link heplife.blogspot.co.uk/2012/12/b … trees.html but it works only with histograms, and not trees… Still there might be people who find it useful.