I’m using RDataFrames to do my analysis by defining several different views on the parent tree to divide my large number of events into various control, validation, and signal regions. This is working fine for making histograms in each region and saving them to an output file, but now I’d like to save each smaller view as a TTree with only the events in that region. Snapshot works for this, of course, but I end up with a different file for each region which is pretty annoying. I’d much rather have all my trees in the same file, just with different names.
Is there a snapshot option to update an existing file instead of overwriting it each time? Or some other suggestion for how to do this elegantly?