Root Fitting Histograms

Hi,

What is the command for weighted fitting in Root?
Can anyone help?

thanks

e.g.: TH1::Fill(Double_t x, Double_t w)