Obtaining contents of histogram bins

After drawing a Root histogram and writing it to a .root file, how can one retrieve the contents of each bin from the .root file? Even better, how can one write the contents of each bin to another file that can be processed by another program?

Thanks, Phil

You should read page 164 of the User’s Guide about how to read object from a file :slight_smile:

To get a bin content do:

Float_t yp = h->GetBinContent(bin);