thank you for reading and employ your time helping a beginner like me.
I have an ascii file with 4 columns comma separated: The first column is made of characters, the other three are double.
I am trying to open the file and then I need to compare a number (in my code called xpeak) with the second column of my file and as soon as xpeak = #of the 2 column, I need to print the entire row.
I don’t know if it is clearly explained, but to be more specific:
if xpeak=a number of the second column
print the string, double, double, double corresponding to that.
could anyone please give me some hint to do this? I know that I need a for loop, but I can’t figure out how to loop on a single column and then make me print the entire row. I am stuck and I don’t know how to go ahead with this.
thank you very much
ROOT Version: latest 6.
Compiler: Not Provided