What is gStyle?

Hello guys,
I don’t know how you guys work when programming, but usually, you must create variables to use them, otherwise, it doesn’t compile. The documentation says the styles of an histogram can be changed using gStyle->SetOptStat(111111); …
but, obviously, if I write that in my program, the compiler refuses to compile it, since gStyle doesn’t existe…

How does that stuff work ?

The header to include to get the declaration of gStyle is:

#include <TStyle.h>

1 Like

Thank you, it works