Output Histogram as Txt

Hello everyone,

I have created a subtracted histogram through an C file that “the histogram is made by getting data from a root file (named A.root), then it is subtracted by data in other two roots (named B.root and C.root).”
Is it possible that the final output is a list of data in txt format, instead of a graph in Canvas?
For example, what should I do to scan the data such that those newly subtracted data are output to a txt file?

Thank you.


What would you like to output to the .txt file? The content of the bins? Please have a look at:


for the available API to extract information from a histogram.

.> h.txt

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.