Write histograms to a ROOT file instead of a pdf.