Hi!
is it possible to save an histogramm created with ROOT into the ASCII format??
Thanks for the answer,
Tom
Hi!
is it possible to save an histogramm created with ROOT into the ASCII format??
Thanks for the answer,
Tom
You can save a histogram to an ascii C++ file with SavePrimitive, eg
{
TH1F h("h","test",100,-3,3);
h.FillRandom("gaus",10000);
ofstream out;
out.open("myhisto.C",ios::out);
h.SavePrimitive(out,"");
out.close();
}
Instead of h.savePrimitive, you can do:
Rene