Converting modules.root plots to ascii format

Hello is there a way to get a selected number of plots in ascii format. Or is there a way to convert plots in modules.root in ascii format? I am very new to root. I know that [TextWriter] module is there but I believe it just gives us data.root file into data.txt. However, I need modules.root into ascii.


Hi Sanchit,

you can open the ROOT file and then print it to ASCII like this (using the pixel charge histogram as an example):

$ root -l modules.root
pixelcharge->Print("all"); > pixelcharge.txt

Some more information on this is provided in this thread of the ROOT forum: