I wrote a little program that generate random numbers and I calculated the covariance and the correlation factor, I compare my values with those calculated by ROOT.
How do I write all these values on the graphic?
use a TPaveText object. See examples in tutorials
can I use TPaveText also if I want to print a variable calculated in the program?
If yes, how do I it?
see example (and also read the tutorials).
TH1F *h = new TH1F("h","test",100,-3,3);
TCanvas *c1 = new TCanvas("c1");
TPaveText *pt = new TPaveText(0.15,0.7,0.30,0.85,"brNDC");
Thank you very much.