I am very new to ROOT. So please do forgive any obvious mistakes.
I am trying to make a gui for browsing the files on the computer. I need to select several .dat files for plotting and I thought it would easy to make a browser to navigate to the proper files and tell ROOT to plot these but I haven’t been able to find a way.
I would suggest you to start by looking at the GUI tutorials in $(ROOTSYS)/tutorials/gui, and you could also write your own plugin for the ROOT browser…
It returns the selected file name. However, I tried turning on multiple selection using
But when I now select multiple things, it does not return anything. I thought that the file name was stored in fFilename and it could be accessed this way. Does this work differently for multiple selections?
Right, that was silly. I actually just saw that when I looked in the documentation properly… Sorry about that.
On a totally different note, there’s been something I have been struggling with for several days and it’s been very frustrating; so frustrating that I gave up on it in fact (my account was just accepted).
I’ve been reading a .dat file with the >> operator. However, I wanted to read the file line by line (up to every ‘return’), so I thought I 'd use getline(). But for some reason, cint keeps telling me that getline(file_in, line_read) is not defined in current scope. I’m pretty sure I have all the proper header files (iostream, sstream, fstream) but it just won’t work.
I’m currently using ROOT v5.28 on Windows. Would you, by any chance, have any thoughts on that please?
since I’m storing the lines as TStrings and not char and it seems to be more direct this way. Could you please tell me if I’m missing something obvious here?