RDataframe stopre result of VariationsFor() in root file

is there an easy way to store the result of
ROOT::RDF::Experimental::RResultMap hx = ROOT::RDF::Experimental::VariationsFor(nominal_hx);
(see manual ROOT: ROOT::RDataFrame Class Reference)
to a root file ?
I see the solution to loop over the map and explicitly write the histograms. I thought this could be more elegant…

I guess @vpadulan can help.

Hi @tancredi ,

Indeed that’s the current way to do it. Then again I think yours is a very reasonable feature request :slight_smile: Feel free to open a pull request so we do not forget – we’ll see whether we can do anything to improve the situation.