Reading through the ROOT manual, I see that I can write my histogram data to a .root file like this (pg. 39)
TH1F h1("hgaus","histo from a gaussian",100,-3,3);
Is there any way to write the histogram to an ascii file directly? I would like to use Gnuplot on the histogram data later. Right now, I loop through the bin contents and use fprintf. Is there any other way like the one shown above?