How to print selected rows and column of Scan output in txt file

Hi All,

Using this piece of code :

tree->Scan("run:event:Sum$(x && y)", "Sum$(x $$ y");

I got abc. txt file (attached) . I want to convert abc.txt to xyx.txt(attached) using same .C root script. Just want to extract numbers of certain rows and columns of Scan output file.
abc.txt (7.5 KB) xyx.txt (521 Bytes)

Welcome to the ROOT forum.

That’s a simple ascii file reading and writing in C/C++. I guess you can find many examples on the web.

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