Is there any chance of getting a thread-safe
TTree::SetBranchAddress, perhaps one which can take a thread ID argument?
I currently have an object I use with RDataFrame’s
Book function, which deals with this by creating a separate in-memory
TTree per slot, then merges these before writing. I’d really rather not have these trees be in-memory since this leads to memory use linear in the size of the input, but don’t want to clutter the output file with all the unmerged trees either.