Print on screen the name of a RooRealVar

Dear RooFit support,
can you please tell me which member function shall i use to get the name of a RooRealVar ?
In other words, my function receives a RooRealVar as input argument, I would like to print on screen simply the name of the RooRealVar variable. Can you please tell me how to do it ?

I was not able to find the right member function

Many thanks,

  • Mauro.

RooRealVar x("x","x",10); std::cout << x.GetName( ) << std::endl;