Changing X and Y axis of TH2F from GeV to TeV

Hi Rooters
A previous post helped me converting X axis of TH1F from GeV to TeV. I am trying to use similar concept to convert X and Y axis of TH2F histogram from GeV to TeV but no success so far. Please have a look into this piece of code.

// COPYING A 2D HISTOGRAM FROM ROOT FILE HERE
 TH2F *CORRELATION; FILE_DATA -> GetObject ( "CALIBRATED/CORRELATE_J360;1",CORRELATION );
 double Xmin = CORRELATION->GetXaxis()->GetXmin()/1000;
 double Xmax = CORRELATION->GetXaxis()->GetXmax()/1000;
 double Ymin = CORRELATION->GetYaxis()->GetYmin()/1000;
 double Ymix = CORRELATION->GetYaxis()->GetYmax()/1000;
 CORRELATION->GetXaxis()->SetLimits(Xmin, Xmax);
 CORRELATION->GetYaxis()->SetLimits(Ymin, Ymax);

Can you please point out the problem? It gives me following error report:

Error: Can’t call TAxis::GetYmin() in current scope CORRELATION.C:40:
Possible candidates are…
(in TAxis)
Error: non class,struct,union object GetYaxis() used with . or -> CORRELATION.C:40:
*** Interpreter error recovered ***

Cheers
Aatif

double Ymin = CORRELATION->GetYaxis()->GetXmin()/1000;
double Ymax = CORRELATION->GetYaxis()->GetXmax()/1000;