Hi, I wrote a macro (see attachment). In this macro I open a root file and I plot some graphs. As you can see by the macro, I plot 20 graphs, and I have to use the macro for more root files.
I’d like to simplify the use by:
To write just one time the root file name (in the macro I used si-500330 and to write a code so that if for example I use the file si-500314, I just change the name in a row, and it automatically changes the name in each other ones.
In each part of the canvas I wrote somthing like this
Then if I want to change something (for example the label font), I’ve to change it in all the canvas parts…I’d like to write a code so that I just write this code at the begin of the macro and after it will change for all the plots.
thanks
ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided
Hi couet, thanks for your reply. You are right…I forgot to add the attachment!
Now I’m adding it.
What I mean is
In the code you can read a lot of time the “si-500330” , if I change the data file, I’ve to change the name each one that I wrote it (for example writing “si-500314”)…I’d like to use a code so that I just write the name one time, it stores the name in a variable and it change the name in each row!
in each part of the canvas I wrote something like this