TH1 Y axis mean

I am trying to get the mean of the Y axis in a TH1 histograms like
hist->GetMean(2), but I am always getting zero. I do not know what is the problem.

I guess GetMean() on the Y axis has sense for 2D histo only.

Ok, I misunderstood.