I have been trying to use the TColor options to fill my histograms, but I can’t, when I used for example h->SetLineColor(kOrange); I got ./tools/T1transversemassfinal01colorprobe.cc: In function ‘void prepare(TH1F*)’:
./tools/T1transversemassfinal01colorprobe.cc:45: error: ‘kOrange’ was not declared in this scope
I used #include <Rtypes.h> #include <TColor.h>
I also tried with #include <TNamed.h>, but I got the same, and when I use kRed+3 I got green plots. What do I have to check in order to make it works?
sorry, It appears as commented, but that is because I have been trying a lot of options to get the colors, the fact is that when I compile it says that:
./tools/T1transversemassfinal01colorprobe.cc:47: error: ‘kOrange’ was not declared in this scope
./tools/T1transversemassfinal01colorprobe.cc: In function ‘int main(int, char**)’:
To use kOrange, etc, you must use one of the latest versions of ROOT, eg 5.16
see root.cern.ch/root/Version516.news.html
and look for teh explanation of teh color code in the section TColorWheel.
Yes, it was the ROOT version, now I have ROOT 5.16, now I do not have problems with the compilation, but when I run the executable, I got errors with the branchs