Retrieve chi2 value from Chisquare()

Hi Everyone,

I am using Chisquare() to compare a TF1 and a TH1. How can I retrieve the chi2 value?

Best and thanks!

Nicolás V.

You mean this one ?

yes, that function

The answer is in the help:

Compute and return the chisquare of this histogram with respect to a function

When I put the function, I have no return of a value, I guess one need to call it

do:

   double chi2 = yourth1->Chisquare(...);

the value will be in chi2

nice!, many thanks