Hi -
I have a large dataframe that I would like to split up into small pieces (several thousand, based on an index in each event) by applying a Filter and then making a Snapshot to write out several useful branches to individual files.
I believe it’s most efficient to set up several thousand filters first and then loop over them and invoke “Snapshot” on each of them, but it wasn’t obvious how to automate this. I tried to set up a vector with the return from Filter(): std::vector< ROOT::RDF::RInterface<ROOT::Detail::RDF::RJittedFilter, void> > v but I wasn’t able to successfully add successive return references to it. Is there an obvious trick for this?
- Peter