The official TF1 class reference says, that there is a public member function of TF1 called GetRange(), which takes two pointers to doubles. For me calling this results an error message of "GetRange() is protected within the context". Is this a bug? There is a version of this very same function taking two variables by reference, that works just fine.
void fun_test(const TF1* t_fun) // This should be fun, but it is not :(
{
double keyMin = 0;
double keyMax = 0;
t_fun -> GetRange(&keyMin, &keyMax);
// According to the ref. I should be able to call this from within const context
}