but I’m having problems using it, because I don’t get error in the code but, sometimes ROOT runs the macro, other times it closes automatically without running it. How should it be possible?
As it is on Windows may be @bellenot have some idea about it.
I ran your macro on mac with ROOT 6. I got many C++ errors.
I fixed them and now it runs fine, always, on my machine.
In the attachment there is the macro that I used on saturday and it worked (I got plots) …now I’m trying to run it and I’ve the same problems due to the for cycle
for (b=0;b<=23;++b){
...
}
…It’ s strange that it worked on saturday, but it isn’t working today
To run with ACLiC, you need to have the Microsoft compiler to be installed and run from a Developer Command Prompt for VS2013, or call the vcvars32.bat batch script to properly set the environment variables.
Also have a look at the mods i did. in particular the declaration of timenamesuba … you declare it several in if statements and use it outside the if. It goes out of scope. that’s not valid C++. I will try (again) to modify your new macro.
@couet you are right for the declaration int c_YTitleOffset=1.55, the reason is that I first setted the values 1, later I changed to 1.55 and I forgot to change from int to double
Anyway, if I don’t use the for cycle the macro works…it looks like some problem due to the for cycle (especially because I get same problem with your macro).
No, you need the complete Visual Studio, not only the redistributable. And the version depends on which version of the ROOT binaries you installed on your system…