Making a .dat file from a .root file?

What is the simplest way to make a data file from a .root file ?

What is “a data file” exactly?

I have a .root file and I contains 3 histograms. I want to convert this into a data file?

.DAT File Extension

yes . exactly. the .dat file extension. :smiley:

rename yourfile.root yourfile.dat

But when I rename it, the data file shows only random symbols. It doesn’t show anything I can read.

asc.root (23.1 KB)

You still don’t understand, do you.
I know what a root file and what a histogram is.
I have no idea what YOU WANT TO GET out of it (maybe you want to dump your histograms).

1 Like

If you want to eye ball is content, you could try to convert the ROOT file to the Yoda format with this command:

https://go-hep.org/x/hep/cmd/root2yoda

But, yeah, to be able to provide meaningful further assistance we would need to know what you want to do once that ROOT file has been converted to some ASCII format…

1 Like

Because only ASCII format is compatible with the model I am working on.

Then,what is this ASCII format (there are many of those) ?
What is this model?

AMPT model. and the format is .dat

yes. I didn’t knew the exact word. Thank you so much.

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