I can draw histograms through the Histo1D method in RDataFrame, but how do I save the
histograms to a root file using RDataFrame methods? I just couldn’t figure out how to save it.
Snapshot method does not seem to do it.
Hi Suyong,
the Histo1D method returns a (smart) pointer to TH1D (a RResultPtr<TH1D> to be more precise). You can do anything you would do with a pointer to TH1D with it, including calling histo_result->Write() to save the histogram in a file.